/* ------------------------------------------------------------
   TOKENS — copied verbatim from the Pocket Sized brand system.
   ------------------------------------------------------------ */
:root {
  --ink:      #111111;
  --paper:    #fafaf8;
  --muted:    #8a8a86;

  --gray-100: #e8e8e5;
  --gray-200: #cfcfcb;
  --gray-300: #a9a9a5;
  --gray-500: #5f5f5b;
  --gray-600: #3a3a38;

  --font: ui-sans-serif, system-ui, "Helvetica Neue", Arial, sans-serif;

  --size-meta:    0.8125rem;
  --size-body:    1rem;
  --size-mark:    1.125rem;
  --size-display: clamp(1.75rem, 4.5vw, 2.75rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7.5rem;

  --ease: 150ms ease;

  /* The one colour on the site: the free-trial tag outline. */
  --trial: #00b8b8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #ededea;
    --paper:    #101010;
    --muted:    #6f6f6b;
    --gray-100: #1c1c1b;
    --gray-200: #2e2e2c;
    --gray-300: #4a4a47;
    --gray-500: #8f8f8b;
    --gray-600: #bdbdb9;
    --trial:    #00ffff;
  }
}

/* ------------------------------------------------------------ */

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 3rem;
  max-width: 76rem;   /* wide enough for the three plan cards; everything else caps itself at 64rem */
}

/* Type — one family, two weights, four sizes. */
.wordmark { font-size: var(--size-mark); font-weight: 600; letter-spacing: -0.01em; }

h1 {
  font-size: var(--size-display);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 34rem;
}
h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  max-width: 34rem;
}
h3 { font-size: var(--size-body); font-weight: 400; }
em { font-style: normal; }
.nowrap { white-space: nowrap; }

p { max-width: 34rem; margin-bottom: var(--space-2); }
p.lead { font-size: 1.25rem; letter-spacing: -0.01em; }
.meta { font-size: var(--size-meta); color: var(--muted); }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--muted);
  transition: text-decoration-color var(--ease);
}
a:hover { text-decoration-color: var(--ink); }
.meta a, .label a { color: inherit; }

/* Layout — one column, anchored top-left. */
header.top { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; max-width: 64rem; }
header.top nav { display: flex; gap: var(--space-3); font-size: var(--size-meta); }
header.top nav a { text-decoration-color: transparent; }
header.top nav a:hover { text-decoration-color: var(--ink); }
header.top .cta { margin-left: auto; font-size: var(--size-meta); }

section { margin-bottom: var(--space-6); }
.label { font-size: var(--size-meta); color: var(--muted); margin-bottom: var(--space-3); }

/* Lists — text and line only. */
ul, ol { list-style: none; max-width: 34rem; }
li { padding: var(--space-2) 0; border-top: 1px solid var(--gray-100); }
li:last-child { border-bottom: 1px solid var(--gray-100); }
li p { margin-bottom: 0; }

.actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); flex-wrap: wrap; }

/* Two-column stages: hero (text | phone) and what-it-does (phone | text). */
.hero-grid, .jobs-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; max-width: 64rem; }
.jobs-grid .wa-stage { order: 1; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 21rem; }
  .jobs-grid { grid-template-columns: 21rem 1fr; }
  .jobs-grid .wa-stage { order: 0; }
}

/* ------------------------------------------------------------
   PHONE MOCKUPS — ported verbatim from index.html so they look like the
   real thing. They keep WhatsApp's stock colours and the live page's
   tokens, scoped here so the brand's ink/paper (and dark mode) never
   reach inside the bezel. Only the stage around them is re-skinned.
   ------------------------------------------------------------ */
.wa-stage {
  --ink: #0F1419; --accent: #CC5500;
  --chat-out: #DCF2C8; --chat-in: #ffffff; --chat-bg: #ECE6DC;
  --serif: "Newsreader", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color: #1a1f25;
}
/* Second phone: identical WhatsApp chrome, driven by CSS on a 14s loop —
   voice note → "typing…" in the header → report → reply. */
.wa-voice { min-width: 80%; padding: 6px 8px 4px; }
.wa-vrow { display: flex; align-items: center; gap: 6px; }
.wa-play { width: 0; height: 0; border-left: 15px solid #54656F; border-top: 9px solid transparent; border-bottom: 9px solid transparent; flex-shrink: 0; margin: 0 4px; }
.wa-wave { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 26px; }
.wa-wave span { width: 3px; height: 100%; border-radius: 2px; background: #A5B1B8; transform-origin: center; animation: waveBob 1.2s ease-in-out infinite; }
.wa-wave span:nth-child(-n+7) { background: #53BDEB; }
@keyframes waveBob { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.wa-vav { width: 40px; height: 40px; border-radius: 50%; background: #DFE5E7; flex-shrink: 0; position: relative; margin-left: 2px; }
.wa-vav::after { content: "🎙"; position: absolute; right: -3px; bottom: -2px; font-size: 13px; }
.wa-vfoot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #667781; padding: 2px 2px 0 30px; }
.wa-report i { font-style: italic; color: #667781; }
.wa-report .wa-meta { margin-top: 10px; }
.wa-sub-swap { display: grid; max-width: 150px; }
.wa-sub-swap > span { grid-area: 1 / 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seq-online { animation: seqOnline 14s ease infinite; }
.seq-typing { animation: seqTyping 14s ease infinite; opacity: 0; }
.seq-voice  { animation: seqVoice 14s ease infinite; }
.seq-report { animation: seqReport 14s ease infinite; }
.seq-reply  { animation: seqReply 14s ease infinite; }
@keyframes seqOnline { 0%, 13% { opacity: 1; } 17%, 28% { opacity: 0; } 32%, 100% { opacity: 1; } }
@keyframes seqTyping { 0%, 13% { opacity: 0; } 17%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes seqVoice  { 0%, 4%  { opacity: 0; transform: translateY(10px); } 8%, 90%  { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes seqReport { 0%, 30% { opacity: 0; transform: translateY(10px); } 34%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes seqReply  { 0%, 58% { opacity: 0; transform: translateY(10px); } 62%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
/* Everything inside .wa-screen mimics iOS WhatsApp — system font and
   WhatsApp's stock colors on purpose; brand tokens stay outside the bezel.
   Driven by the script at the end of the page. */
.wa-stage { display: flex; justify-content: center; }
.wa-phone {
  width: 320px; height: 692px;
  background: #0b0e12; border-radius: 54px; padding: 12px;
  box-shadow: 0 24px 70px -30px rgba(15, 20, 25, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative; flex-shrink: 0;
}
.wa-island {
  position: absolute; top: 25px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 25px; background: #0b0e12; border-radius: 13px; z-index: 5;
}
.wa-screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  display: flex; flex-direction: column;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #EFEAE2;
}
.wa-top { background: #F6F6F6; }
.wa-statusbar {
  height: 52px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 28px 4px; font-size: 15px; font-weight: 600; color: #000;
}
.wa-sicons { display: flex; gap: 6px; align-items: center; }
.wa-chathead {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
}
.wa-back { color: #007AFF; font-size: 28px; line-height: 1; padding: 0 2px 3px 0; }
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #0F1419;
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.wa-who { font-weight: 600; font-size: 16px; color: #000; line-height: 1.15; }
.wa-sub { font-size: 12px; color: #8E8E93; }
.wa-hicons { margin-left: auto; display: flex; gap: 20px; align-items: center; padding-right: 6px; }
.wa-hicons svg { width: 22px; height: 22px; stroke: #007AFF; fill: none; stroke-width: 1.8; }
.wa-thread {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px; padding: 14px 14px 10px;
}
.wa-b {
  position: relative; border-radius: 8px; padding: 6px 9px 7px;
  font-size: 15.5px; line-height: 1.3; max-width: 82%; color: #111B21;
  letter-spacing: -0.1px; box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13); opacity: 0;
}
.wa-b .wa-meta {
  float: right; margin: 9px -3px -5px 7px; display: flex; gap: 2px; align-items: center;
  font-size: 11px; color: #667781;
}
.wa-out { background: #D9FDD3; align-self: flex-end; border-top-right-radius: 0; }
.wa-out::after {
  content: ""; position: absolute; top: 0; right: -8px;
  border-left: 8px solid #D9FDD3; border-bottom: 10px solid transparent;
}
.wa-in { background: #fff; align-self: flex-start; border-top-left-radius: 0; }
.wa-in::after {
  content: ""; position: absolute; top: 0; left: -8px;
  border-right: 8px solid #fff; border-bottom: 10px solid transparent;
}
.wa-checks { color: #53BDEB; font-size: 12px; letter-spacing: -2.5px; margin-left: 1px; }
.wa-composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 28px; background: #F6F6F6; }
.wa-plus { color: #007AFF; font-size: 26px; padding: 0 4px; }
.wa-input {
  flex: 1; background: #fff; border: 0.5px solid rgba(0, 0, 0, 0.15); border-radius: 18px;
  min-height: 36px; display: flex; align-items: center; padding: 7px 14px;
  font-size: 15px; color: #111;
}
.wa-ph { color: #8E8E93; }
.wa-cursor { display: none; width: 2px; height: 19px; background: #007AFF; margin-left: 1px; }
.wa-mic { color: #007AFF; font-size: 20px; padding: 0 4px; }
.wa-send {
  width: 34px; height: 34px; border-radius: 50%; background: #25D366;
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
}
.wa-send svg { width: 18px; height: 18px; fill: #fff; }
/* Narrow phones: the bezel is fixed-size, so scale it down as a whole. */
@media (max-width: 379px) {
  .wa-stage { height: 590px; align-items: flex-start; }
  .wa-phone { transform: scale(0.85); transform-origin: top center; }
}
/* Both phones sit on the same stage: fixed-size bezel, scaled to fit. */
.hero-grid .wa-stage, .jobs-grid .wa-stage { height: 592px; align-items: flex-start; }
.hero-grid .wa-phone, .jobs-grid .wa-phone { transform: scale(0.855); transform-origin: top center; }
/* Dark page: a hairline keeps the black bezel from dissolving into the paper. */
@media (prefers-color-scheme: dark) {
  .wa-phone { outline: 1px solid var(--gray-200); outline-offset: -1px; }
}

/* How it works — three rows: when, what, how long. */
.how-list li { display: grid; grid-template-columns: 6rem 1fr auto; gap: var(--space-3); align-items: baseline; }
.how-list small { font-size: var(--size-meta); color: var(--muted); }
@media (max-width: 600px) {
  .how-list li { grid-template-columns: 1fr; gap: var(--space-1); }
}

/* Plans — three cards, same grid as the live page. Hairline cards, the
   middle one in ink. Square corners; the only radius on the page is the phone. */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); align-items: stretch; margin-top: var(--space-4); }
.plan-col { display: flex; flex-direction: column; }
.plan-tag {
  align-self: flex-start; font-size: var(--size-meta); padding: 0.25rem 0.625rem;
  border: 1px solid var(--gray-200); color: var(--gray-500); margin-bottom: var(--space-2);
}
.plan-tag-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan { flex: 1; border: 1px solid var(--gray-100); padding: var(--space-4); display: flex; flex-direction: column; }
.plan-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan .plan-name { font-size: var(--size-meta); color: var(--muted); margin-bottom: var(--space-2); }
.plan-main .plan-name { color: var(--gray-300); }
.plan .plan-price { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: var(--space-3); }
.plan .plan-price span { font-size: var(--size-body); letter-spacing: 0; color: var(--muted); }
.plan-main .plan-price span { color: var(--gray-300); }
.plan ul { margin-bottom: var(--space-3); }
.plan ul li { border: 0; padding: 0.3rem 0 0.3rem 1.25rem; position: relative; font-size: 0.9375rem; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.75rem; height: 1px; background: var(--gray-300); }
.plan-main ul { color: var(--gray-200); }
.plan-main ul li::before { background: var(--gray-500); }
.plan .trial-copy { color: var(--gray-500); font-size: 0.9375rem; margin-bottom: var(--space-3); }
.plan .plan-cta { margin-top: auto; }
.plan-main a { color: var(--paper); text-decoration-color: var(--gray-500); }
.plan-main a:hover { text-decoration-color: var(--paper); }
.plan .plan-fine { margin: var(--space-3) 0 0; font-size: var(--size-meta); color: var(--muted); }
.plan-main .plan-fine { color: var(--gray-300); }
.plan-fine a { color: inherit; }
/* Free-trial tag: the one coloured element on the page. */
.plan-col:first-child .plan-tag { border-color: var(--trial); }
.trial-qr { display: none; align-items: flex-start; gap: var(--space-2); }
.trial-qr svg { width: 5.5rem; height: 5.5rem; flex: 0 0 auto; color: var(--ink); shape-rendering: crispEdges; }
.trial-qr p { margin: 0; }
@media (min-width: 900px) {
  .plan-grid { grid-template-columns: 0.95fr 1.15fr 1.15fr; }
  .trial-btn { display: none; }
  .trial-qr { display: flex; }
  .plan .plan-fine { min-height: 3.75rem; }
}

/* HQ contact form — fields as lines, nothing else. */
.hq-form { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.hq-form input {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--gray-200); padding: var(--space-1) 0;
  border-radius: 0; outline: none; transition: border-color var(--ease);
}
.hq-form input:focus { border-bottom-color: var(--ink); }
.hq-form input::placeholder { color: var(--muted); }
.hq-form .hp { position: absolute; left: -9999px; }
button.link {
  font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--muted);
  transition: text-decoration-color var(--ease); justify-self: start;
}
button.link:hover { text-decoration-color: var(--ink); }

/* FAQ */
details { max-width: 34rem; border-top: 1px solid var(--gray-100); }
details:last-of-type { border-bottom: 1px solid var(--gray-100); }
summary { padding: var(--space-2) 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { padding-bottom: var(--space-2); color: var(--gray-500); }

/* Signup steps */
ol.start li { display: flex; gap: var(--space-3); align-items: baseline; }
ol.start .num { flex: 0 0 2rem; font-size: var(--size-meta); color: var(--muted); }
ol.start p { margin: 0; color: var(--gray-500); }

footer { color: var(--muted); font-size: var(--size-meta); }
footer a { color: inherit; }

@media (max-width: 600px) {
  body { padding: 1.5rem; }
  header.top { gap: var(--space-2); }
  header.top .cta { margin-left: 0; }
  .exchange > div { flex-direction: column; gap: var(--space-1); }
  .plan { padding: var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .seq-voice, .seq-report, .seq-reply { opacity: 1 !important; transform: none !important; }
  .seq-typing { display: none; }
}

/* ------------------------------------------------------------
   Sub-pages: articles (privacy, terms), tables, notes.
   ------------------------------------------------------------ */
.article { max-width: 34rem; }
.article h2 { font-size: 1.25rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.article ul { margin-bottom: var(--space-2); }
.article strong { font-weight: 600; }
table { border-collapse: collapse; width: 100%; max-width: 34rem; margin-bottom: var(--space-2); }
th, td { text-align: left; vertical-align: top; padding: var(--space-1) var(--space-2) var(--space-1) 0; border-top: 1px solid var(--gray-100); }
th { font-weight: 400; color: var(--muted); font-size: var(--size-meta); }
tr:last-child td { border-bottom: 1px solid var(--gray-100); }
.note { border-top: 1px solid var(--gray-100); padding-top: var(--space-2); margin-top: var(--space-5); color: var(--gray-500); }
