/* Her script face. OFL licensed, self-hosted, one small woff2. */
@font-face {
  font-family: "Pacifico";
  src: url("fonts/pacifico.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cue — sendoncue.com
   Tokens mirror Cue/Theme.swift exactly so the site and the app are one object.
   Type uses the system stack, so an iPhone visitor sees New York and SF Pro:
   the literal fonts the app draws with. No webfont request, no layout shift. */

:root {
  --canvas:      #EBE6D8;
  --paper:       #F4EFE2;
  --paper-deep:  #E2DBCA;
  --ink:         #35291A;
  --ink-2:       #7C6C55;
  --ink-muted:   #A5977E;
  --on-ink:      #F1E5CB;
  --accent:      #0089AB;
  --accent-deep: #0A5A70;
  --accent-soft: rgba(0, 137, 171, 0.13);
  --teal:        #0B85A0;
  --terracotta:  #B85C3B;
  --ochre:       #A37B20;
  --sage:        #6D8449;
  --slate:       #3F6E93;
  --hairline:    rgba(53, 41, 26, 0.13);
  --hairline-2:  rgba(53, 41, 26, 0.22);
  --shadow:      0 1px 2px rgba(53, 41, 26, 0.05), 0 8px 24px rgba(53, 41, 26, 0.06);
  --shadow-lift: 0 2px 4px rgba(53, 41, 26, 0.06), 0 16px 34px rgba(53, 41, 26, 0.10);
  --grain:       0.22;

  --serif: ui-serif, "New York", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI",
           Roboto, Helvetica, Arial, sans-serif;
  /* Pacifico is the house script now, self-hosted above. The system cursives
     stay as fallbacks for the instant before the woff2 arrives. */
  --script: "Pacifico", "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;

  --gutter: clamp(20px, 5vw, 40px);
  --measure: 62ch;
  --radius: 16px;
}

/* The site is pinned to the warm paper light look for every visitor, whatever
   their browser theme. Per the brand, "white" is always this cream, never #FFF. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Thick-paper grain, the same 256px tile the app lays over every screen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("grain.png");
  background-size: 256px 256px;
  mix-blend-mode: soft-light;
  opacity: var(--grain);
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: 1060px; margin: 0 inline; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- par avion ---------- */

.airmail {
  height: 4px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--teal) 0 9px,
    var(--paper) 9px 18px,
    var(--terracotta) 18px 27px,
    var(--paper) 27px 36px
  );
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 50px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; }
.brand .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
/* .nav a would otherwise out-specify .btn and paint the pill's label in ink. */
.nav a.btn { color: #FFFDF6; }
.nav a.btn.btn-ghost { color: var(--ink); }
@media (max-width: 620px) { .nav a.hide-sm { display: none; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #FFFDF6;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); color: #FFFDF6; }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); filter: none; }

.btn-sm { min-height: 32px; padding: 0 15px; font-size: 14px; }

/* A badge, not a link. Used for the App Store CTA until the listing exists, so
   nothing invites a click that would go nowhere. */
.btn-static { cursor: default; }
.btn-static:hover { filter: none; }
.btn-static:active { transform: none; }

/* ---------- type ---------- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }

/* Line breaking.
   balance: spreads a heading evenly across its lines instead of leaving a
   single word stranded underneath a full one.
   pretty: keeps body copy from ending on a widow, and avoids starting a new
   sentence one or two words before a wrap.
   Both degrade to normal wrapping where unsupported, so nothing breaks. */
h1, h2, h3, .lede, .thread-cap, .cta-sub, .price-note, summary {
  text-wrap: balance;
}
p, li, dd, .prose li, figcaption {
  text-wrap: pretty;
}
/* Never strand the last word of a link or a price on its own line. */
.occasions strong, .price .per, .fine { text-wrap: pretty; }

h1 {
  font-size: clamp(38px, 6.4vw, 62px);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.018em;
}
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; }

.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 30px;
}
/* The hook stands alone on its line, tight over the paragraph it sets up. */
.lede-hook { margin-bottom: 10px; color: var(--ink); }
/* Mini headers in Pacifico, sentence case. It ships one weight, 400, and its
   loops need line-height, or the descenders clip. */
.eyebrow {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  margin: 0 0 8px;
  padding-bottom: 2px;
}
.script {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-2);
}

/* scroll-margin-top tracks the sticky header, so anchor jumps do not land under it. */
section { padding-block: clamp(56px, 9vw, 92px); scroll-margin-top: 58px; position: relative; }
.section-head { max-width: 40em; margin-bottom: 40px; }

/* One canvas for the entire site. Cards carry the paper tone; the page never
   changes colour under you. */

/* A pigeon tucked into a corner of the content column, decorative only.
   Anchored to .wrap rather than the section, so it tracks the text instead of
   drifting out into the page margin on wide screens. */
.wrap { position: relative; }
.perch {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 8px 16px rgba(53, 41, 26, 0.14));
}
/* Inset by 12px: the rotation swings the bounding box out by roughly 8px, which
   is enough to force a horizontal scrollbar between 820 and 1100 where the wrap
   fills the viewport and there is no page margin to absorb it. */
.perch-right { right: 12px; top: -54px; width: clamp(76px, 9vw, 112px); transform: rotate(5deg); }
.perch-left  { left: 12px; bottom: -34px; width: clamp(70px, 8vw, 96px); transform: rotate(-6deg) scaleX(-1); }
/* Modifier: drop a perch to the foot of its column instead of the head. Low
   enough to clear the card above it rather than being decapitated by it. */
.perch-low   { top: auto; bottom: -66px; }
.wrap > *:not(.perch) { position: relative; z-index: 1; }
@media (max-width: 820px) { .perch { display: none; } }

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

.hero { padding-top: clamp(48px, 8vw, 84px); padding-bottom: clamp(40px, 7vw, 72px); position: relative; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
/* Wordmark centred over its column, everything stacked beneath it. */
.hero-copy { text-align: center; }
.hero-copy .lede { margin-inline: auto; }
.hero-copy .cta-row { justify-content: center; }
.hero-mark { width: min(268px, 60vw); margin: 0 auto 24px; }

/* The app itself, in a bezel, with the mail pigeon peeking out from behind it
   exactly the way it peeks from behind the calendar card inside the app. */
.hero-art { position: relative; justify-self: center; padding-top: 78px; padding-right: 26px; }
.phone {
  position: relative;
  z-index: 1;
  width: min(292px, 60vw);
  border: 9px solid #241B10;
  border-radius: 52px;
  overflow: hidden;
  background: #241B10;
  box-shadow: 0 2px 6px rgba(36, 27, 16, 0.18), 0 24px 48px rgba(36, 27, 16, 0.28);
}
.phone img { width: 100%; height: auto; display: block; }
.hero-pigeon {
  position: absolute;
  z-index: 0;
  top: -14px;
  right: -46px;
  width: min(168px, 34vw);
  transform: rotate(3deg);
  filter: drop-shadow(0 10px 18px rgba(53, 41, 26, 0.18));
}
/* Between 781 and 1140 the wrap fills the viewport, so the poked-out pigeon
   would force a horizontal scrollbar. Tuck it back in that band. */
@media (max-width: 1140px) {
  .hero-pigeon { right: -6px; }
}
.hero-note {
  position: absolute;
  z-index: 2;
  left: -96px;
  top: 6px;
  width: max-content;
  max-width: none;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.hero-note::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -7px;
  width: 12px; height: 12px;
  background: var(--paper);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transform: rotate(45deg);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-sub { font-size: 14px; color: var(--ink-muted); margin: 16px 0 0; }

@media (max-width: 780px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-self: center; margin-bottom: 4px; padding-top: 64px; }
  .phone { width: min(232px, 56vw); border-width: 7px; border-radius: 42px; }
  .hero-pigeon { width: min(116px, 28vw); right: -10px; }
  .hero-note { left: -34px; top: -8px; font-size: 13px; }
}

/* The smallest phones: shrink both ends so the note and the bird cannot meet. */
@media (max-width: 360px) {
  .hero-pigeon { width: 25vw; right: -12px; }
  .hero-note { left: -20px; top: -12px; font-size: 11.5px; }
}

/* "Soon on the App Store" chip */
.store-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}

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

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--hairline-2);
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card-stamped::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--teal) 0 9px,
    var(--paper) 9px 18px,
    var(--terracotta) 18px 27px,
    var(--paper) 27px 36px
  );
}

/* The honest-part callout, in the wordmark's own blue (sampled #0989AA) with
   cream ink at full strength so it reads. Heading centred, body in a column. */
.card-callout {
  background: linear-gradient(165deg, #149DBD, #0989AA);
  border-color: transparent;
  color: var(--on-ink);
}
.card-callout:hover { border-color: transparent; }
.card.card-callout .callout-head { text-align: center; margin-bottom: 18px; }
.card.card-callout h2 { color: #FBF6E8; }
.card.card-callout .eyebrow { color: #F7F1E1; }
.card.card-callout .callout-body { max-width: 640px; margin: 0 auto; }
/* .card.card-callout, or the plain .card p ink rule later in the file ties on
   specificity and wins on order, which is exactly the unreadable brown-on-blue
   the last version shipped. */
.card.card-callout p { color: var(--on-ink); font-size: 17px; }
.card.card-callout a { color: #FBF6E8; }
.card.card-callout a:hover { color: #FFFDF6; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.step .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  margin-bottom: 14px;
}
.card p { color: var(--ink-2); margin: 0; font-size: 16px; }
/* margin:0 above is right for a single paragraph in a card, but it welds
   consecutive ones into one block with no air between the sentences. */
.card p + p { margin-top: 0.9em; }

/* ---------- occasion list ---------- */

.occasions { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.occasions li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 15px 12px;
  margin-inline: -12px;
  border-radius: 12px;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.16s ease;
}
.occasions li:last-child { border-bottom: 0; }
/* .is-lit is driven by the auto-cycle in index.html, and reads identically to a
   hover so the section demonstrates itself without anyone touching it. */
.occasions li:hover,
.occasions li.is-lit { background: var(--paper); }
.occasions li.is-lit .dot {
  transform: translateY(-1px) scale(1.45);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.occasions li.is-lit strong { color: var(--accent); }
/* One palette: every ink dot is the house turquoise. */
.dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--accent);
  transform: translateY(-1px);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.occasions li:hover .dot { transform: translateY(-1px) scale(1.35); }
.occasions strong { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.occasions span { color: var(--ink-2); font-size: 16px; }

/* ---------- split panels ---------- */

/* Headings sit level with the top of the column beside them, which reads more
   deliberate than vertical centering when the two sides differ a lot in length. */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: start; }
/* For pairs where the two halves should read as level, not top-aligned. */
.split-center { align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.thread { display: grid; gap: 10px; }
.bubble {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.4;
}
.bubble.them {
  justify-self: start;
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}
.bubble.you {
  justify-self: end;
  background: var(--accent);
  color: var(--on-ink);
  border-bottom-right-radius: 6px;
}
.thread-cap { font-size: 13px; color: var(--ink-muted); text-align: center; margin: 4px 0 0; }

/* The five-voice demo. The label is her hand; the bubble crossfades between
   real Cue drafts. A min-height keeps the card from breathing as lines change. */
/* The four voice set-up steps. */
.voice-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.voice-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.voice-steps .num {
  flex: none;
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 14px; font-weight: 600;
  transform: translateY(1px);
}

/* Two classes, or .card p (0,1,1) out-specifies this and paints the label ink. */
.voice-card .voice-label {
  font-family: var(--script);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent);
  margin: 0 0 10px;
  transition: opacity 0.26s ease;
}
.voice-card .bubble.you { transition: opacity 0.26s ease; }

/* A little iPhone, open to Messages. */
.mini-phone {
  background: #FFFDF6;
  border: 6px solid #241B10;
  border-radius: 30px;
  padding: 14px 14px 16px;
  max-width: 330px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.mini-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(53, 41, 26, 0.08);
}
.mini-avatar { width: 46px; height: 46px; border-radius: 50%; }
.mini-name { font-size: 12px; color: var(--ink-2); }
.mini-stamp { text-align: center; font-size: 11px; color: var(--ink-muted); margin: 10px 0 8px; }
.mini-thread {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
}
.mini-thread .bubble.you { max-width: 94%; font-size: 15px; }
.mini-delivered { font-size: 11px; color: var(--ink-muted); padding-right: 6px; }

/* ---------- pricing ---------- */

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 720px; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
.price .amount { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 6px 0 4px; }
.price .per { font-size: 15px; color: var(--ink-2); }
.price .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.price-note { font-size: 14px; color: var(--ink-muted); margin-top: 20px; max-width: 46em; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq details { transition: background 0.16s ease; border-radius: 12px; }
.faq details:hover { background: var(--paper); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 12px;
  margin-inline: -12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  position: relative;
  transition: color 0.15s ease;
}
.faq summary:hover { color: var(--accent); }
.faq p { padding-inline: 12px; margin-inline: -12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--ink-2); margin: 0 0 18px; max-width: var(--measure); }

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

.site-foot { background: var(--canvas); }
.site-foot .inner {
  padding-block: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-foot img.mark { width: 68px; margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--ink); }
.fine { font-size: 13px; color: var(--ink-muted); margin: 22px 0 0; }

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

.prose { max-width: 720px; padding-block: clamp(44px, 7vw, 72px); }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.prose .updated { color: var(--ink-muted); font-size: 14px; margin: 0 0 40px; }
.prose h2 { font-size: 23px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 7px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose th { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-2); }
.prose .callout {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
