/* Shared styles for join.taparcana.com — landing, privacy and terms pages.
 *
 * A real stylesheet rather than three copies of a <style> block: the signup
 * server's CSP allows style-src 'self', so an external file loads fine and the
 * three pages cannot drift apart visually.
 */

:root {
  color-scheme: light;
  --plane: #f6f4ef;
  --surface: #fffefb;
  --surface-2: #f1ede4;
  --ink-1: #14120e;
  --ink-2: #4d483e;
  --ink-muted: #8a8377;
  --border: rgba(20, 18, 14, 0.11);
  --baseline: #ccc5b5;
  --gold: #a8792c;
  --gold-soft: #e9dcc2;
  --link: #2a78d6;
  --good: #0d8a3f;
  --crit: #c0392b;
  --wa: #25d366;
  --tg: #2aabee;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: 0 1px 2px rgba(20, 18, 14, 0.05), 0 12px 32px -12px rgba(20, 18, 14, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --plane: #0e0d0c;
    --surface: #191817;
    --surface-2: #232120;
    --ink-1: #f7f5f1;
    --ink-2: #c4bfb4;
    --ink-muted: #8d877c;
    --border: rgba(255, 255, 255, 0.11);
    --baseline: #3a3835;
    --gold: #d8ac5e;
    --gold-soft: #3a3020;
    --link: #6ba9f0;
    --good: #3ec777;
    --crit: #ef6a5c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

/* Browsers give <figure> a 1em/40px margin by default, which pushes every
 * image placeholder 40px to the right and off the edge on a phone. */
figure { margin: 0; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plane);
  color: var(--ink-1);
  font: 16px/1.62 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* --- top bar --------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--plane) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 15.5px;
  color: var(--ink-1);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .gem { font-size: 19px; }
.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
}
.navlinks a:hover { color: var(--ink-1); }
@media (max-width: 720px) {
  .navlinks a.hide-sm { display: none; }
}

/* --- buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink-1);
  background: var(--ink-1);
  color: var(--plane);
  font: 600 15px system-ui, -apple-system, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent;
  color: var(--ink-1);
  border-color: var(--baseline);
}
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #05320f; }
.btn.tg { background: var(--tg); border-color: var(--tg); color: #04283a; }

/* --- hero ------------------------------------------------------------ */

.hero { padding: 74px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 20px 0 0;
}
h1 em { font-style: italic; color: var(--gold); }
.lede {
  font-size: 18px;
  color: var(--ink-2);
  margin: 20px 0 0;
  max-width: 30em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-muted); }

@media (max-width: 860px) {
  .hero { padding: 46px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* --- image placeholders ---------------------------------------------- */
/* The <img> sits on top of a labelled placeholder box. Until a real file is
 * dropped into public/images/ the box is what shows, which is deliberate —
 * a missing image reads as "not filled in yet", not as a broken page. */

.shot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface-2) 0 10px,
      transparent 10px 20px
    ),
    var(--surface);
  border: 1px dashed var(--baseline);
}
.shot.tall { aspect-ratio: 3 / 4; }
.shot.wide { aspect-ratio: 16 / 10; }
.shot .label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  padding: 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--mono);
  pointer-events: none;
}
.shot .label b { color: var(--ink-2); font-size: 13px; font-family: system-ui, sans-serif; }
.shot img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* app.js sets this when the file 404s, so a not-yet-supplied image shows the
 * placeholder box alone rather than the browser's broken-image icon on top. */
.shot img.missing { display: none; }
.hero .shot { box-shadow: var(--shadow); border-style: solid; border-color: var(--border); }

/* --- sections -------------------------------------------------------- */

section { padding: 62px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { max-width: 44em; margin-bottom: 38px; }
h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 8px 0 0;
}
.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.sec-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 16.5px; }

/* --- feature cards --------------------------------------------------- */

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
section.alt .feature { background: var(--plane); }
.feature .body { padding: 22px 24px 26px; }
.feature .num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--gold-soft);
  color: var(--gold);
  font: 700 13px var(--mono);
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 8px; font-size: 18.5px; font-weight: 640; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature .shot { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }

/* --- channel cards --------------------------------------------------- */

.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } }

.channel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
section.alt .channel { background: var(--plane); }
.channel .head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.channel .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: none;
}
.channel.w .icon { background: rgba(37, 211, 102, 0.16); }
.channel.t .icon { background: rgba(42, 171, 238, 0.16); }
.channel h3 { margin: 0; font-size: 19px; font-weight: 640; }
.channel .sub { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font: 600 16px var(--mono);
  word-break: break-all;
  user-select: all;
}
.handle button {
  flex: none;
  border: 1px solid var(--baseline);
  background: transparent;
  color: var(--ink-2);
  border-radius: 7px;
  padding: 5px 10px;
  font: 600 12px system-ui, sans-serif;
  cursor: pointer;
  user-select: none;
}
.channel ol { margin: 18px 0 0; padding-left: 19px; color: var(--ink-2); font-size: 14.8px; }
.channel ol li { margin-bottom: 7px; }
.channel .qr { margin: 20px 0 0; }
.channel .qr .shot { aspect-ratio: 1 / 1; max-width: 168px; }
.channel .qr .shot .label { font-size: 10.5px; line-height: 1.45; padding: 10px; }
.channel .qr .shot .label b { font-size: 11px; }
.channel .actions { margin-top: auto; padding-top: 22px; }

/* --- steps ----------------------------------------------------------- */

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }
.step { padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
section.alt .step { background: var(--plane); }
.step::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink-1);
  color: var(--plane);
  font: 700 14px system-ui, sans-serif;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 7px; font-size: 17px; font-weight: 640; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* --- signup form ----------------------------------------------------- */

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; gap: 32px; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--plane); }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 640; }
.card .sub { margin: 0 0 20px; font-size: 14px; color: var(--ink-muted); }

label { display: block; font-size: 12.5px; font-weight: 680; margin: 15px 0 6px; letter-spacing: 0.01em; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--baseline);
  background: var(--plane);
  color: var(--ink-1);
  font: 15.5px system-ui, -apple-system, sans-serif;
}
section.alt input[type="text"], section.alt input[type="email"] { background: var(--surface); }
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.consent input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--gold); }
form .btn { margin-top: 20px; }
.err { margin-top: 13px; font-size: 13.5px; color: var(--crit); min-height: 1.2em; }
.hidden { display: none !important; }

.keybox { text-align: center; }
.keybox .k {
  font-family: var(--mono);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: 0.04em;
  background: var(--surface-2);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 17px 10px;
  margin: 16px 0;
  user-select: all;
  word-break: break-all;
}
.keybox ol { text-align: left; font-size: 14.5px; color: var(--ink-2); padding-left: 20px; margin: 18px 0 0; }
.keybox ol li { margin-bottom: 7px; }
.warn {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  text-align: left;
}

/* --- footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--surface);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}
footer .links { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--ink-1); text-decoration: underline; }
footer .copy { font-size: 13.5px; color: var(--ink-muted); }

/* --- legal pages ----------------------------------------------------- */

.legal { padding: 52px 0 76px; }
.legal h1 {
  font-size: clamp(30px, 4vw, 42px);
  margin: 10px 0 0;
}
.legal .updated { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-muted); }
.legal .summary {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.legal .summary h2 { font-family: inherit; font-size: 15px; margin: 0 0 10px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--gold); }
.legal .summary ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.legal .summary li { margin-bottom: 7px; }
.legal h2 { font-size: 22px; margin: 42px 0 0; scroll-margin-top: 80px; }
.legal h3 { font-size: 16.5px; margin: 26px 0 0; font-weight: 650; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.6px; }
.legal p { margin: 13px 0 0; }
.legal ul, .legal ol { margin: 13px 0 0; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink-1); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: 14.6px;
}
.legal table th, .legal table td {
  text-align: left;
  padding: 11px 13px;
  border: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-2);
}
.legal table th { background: var(--surface); color: var(--ink-1); font-weight: 650; }
.table-scroll { overflow-x: auto; }
.toc {
  margin: 30px 0 0;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.toc h2 { font-family: inherit; font-size: 13px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 5px; font-size: 14.6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.placeholder-flag {
  background: var(--gold-soft);
  color: var(--gold);
  padding: 1px 6px;
  border-radius: 5px;
  font: 600 0.92em var(--mono);
}
