:root {
  --canvas: #F1ECE1;
  --canvas-raised: #FBF8F2;
  --ink: #262019;
  --ink-soft: #6E6455;
  --ink-faint: #8F8471;
  --line: #DCD3C1;
  --line-strong: #C7BBA3;
  --thread: #2E5C97;
  --thread-deep: #1E3E68;
  --thread-soft: #E4ECF6;
  --icloud: #6F7B84;
  --icloud-soft: #E7EBEC;
  --gold: #B9832E;
  --gold-soft: #F3E7D2;
  --danger: #B23B3B;
  --danger-soft: #F5E4E1;
  --shadow: 0 1px 2px rgba(38, 32, 25, 0.05), 0 12px 32px -16px rgba(38, 32, 25, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #1B1712;
    --canvas-raised: #241F18;
    --ink: #F1E9DA;
    --ink-soft: #B5AA96;
    --ink-faint: #8C8172;
    --line: #3A3226;
    --line-strong: #4C4230;
    --thread: #7FADE6;
    --thread-deep: #A9CBF0;
    --thread-soft: #21334A;
    --icloud: #9AA6AC;
    --icloud-soft: #262C2F;
    --gold: #E0AE5C;
    --gold-soft: #3A2C15;
    --danger: #E28B7D;
    --danger-soft: #3A2420;
    --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px -16px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  --canvas: #1B1712;
  --canvas-raised: #241F18;
  --ink: #F1E9DA;
  --ink-soft: #B5AA96;
  --ink-faint: #8C8172;
  --line: #3A3226;
  --line-strong: #4C4230;
  --thread: #7FADE6;
  --thread-deep: #A9CBF0;
  --thread-soft: #21334A;
  --icloud: #9AA6AC;
  --icloud-soft: #262C2F;
  --gold: #E0AE5C;
  --gold-soft: #3A2C15;
  --danger: #E28B7D;
  --danger-soft: #3A2420;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 12px 32px -16px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; text-wrap: balance; margin: 0; }
.eyebrow, .topbar-tag, .cal-head, .cal-dow, .step-num, .problem-index, .form-note {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.stitch {
  height: 1px;
  background-image: linear-gradient(to right, var(--line-strong) 60%, transparent 0%);
  background-position: top; background-size: 10px 1px; background-repeat: repeat-x;
}
.page { display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px;
  padding: 26px clamp(20px, 5vw, 64px) 0;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.wordmark-svg { width: 256px; height: 104px; display: block; }
.wordmark-stitch { width: 229px; height: 18px; display: block; margin-left: 4px; margin-top: -22px; }
.topbar-tag {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px dashed var(--line-strong); border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
main { flex: 1; }
section { padding: 0 clamp(20px, 5vw, 64px); }
.breadcrumb { max-width: 1180px; margin: 18px auto 0; font-size: 13px; color: var(--ink-faint); padding: 0 clamp(20px, 5vw, 64px); }
.breadcrumb a { color: var(--thread); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto;
  padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); position: relative;
}
.hero::before {
  content: ""; position: absolute; left: 50%; top: 6%; bottom: 6%; width: 1px;
  background-image: linear-gradient(to bottom, var(--line-strong) 55%, transparent 0%);
  background-size: 1px 12px; background-repeat: repeat-y;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { display: none; }
}
.eyebrow {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--thread); margin: 0 0 18px;
}
.hero-copy h1 {
  font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em;
}
.lede { margin: 22px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 32px 0 0; }
.cta-primary-btn {
  display: inline-flex; align-items: center; padding: 13px 22px; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--canvas-raised); background: var(--thread); border: 1px dashed var(--thread); border-radius: 8px;
  text-decoration: none; transition: background 120ms ease, transform 120ms ease;
}
.cta-primary-btn:hover { background: var(--thread-deep); border-color: var(--thread-deep); }
.cta-primary-btn:active { transform: translateY(1px); }
.cta-primary-btn:focus-visible, .cta-secondary-link:focus-visible, .cta-link:focus-visible { outline: 2px solid var(--thread); }
.cta-secondary-link { font-size: 14.5px; font-weight: 600; color: var(--thread); text-decoration: none; border-bottom: 1px dashed var(--thread); padding-bottom: 2px; }
.cta-secondary-link:hover { color: var(--thread-deep); border-color: var(--thread-deep); }
.form-note { margin: 16px 0 0; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.01em; max-width: 46ch; }
.privacy-note {
  display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 7px 14px 7px 9px;
  background: var(--thread-soft); color: var(--thread-deep); border-radius: 999px; font-size: 12.5px;
  font-weight: 600; letter-spacing: 0.01em;
}
.privacy-note-icon { position: relative; flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--thread); }
.privacy-note-icon::after {
  content: ""; position: absolute; left: 4px; top: 3px; width: 4px; height: 7px;
  border: solid var(--canvas-raised); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hero-visual {
  background: var(--canvas-raised); border: 1px dashed var(--line); border-radius: 14px;
  padding: 22px clamp(18px, 3vw, 28px) 24px; box-shadow: var(--shadow);
}
.cal-head {
  display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
}
.cal-year { color: var(--ink-faint); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; color: var(--ink-faint); padding-bottom: 6px; }
.cal-cell {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: 7px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.cal-cell--muted { color: var(--ink-faint); opacity: 0.5; }
.cal-cell--today { background: var(--thread); color: var(--canvas-raised); font-weight: 600; }
.cal-cell--both { box-shadow: inset 0 0 0 1px var(--gold); }
.cal-dot { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; }
.cal-dot--google { background: var(--thread); }
.cal-dot--icloud { background: var(--icloud); }
.cal-dot--both { background: var(--gold); width: 5px; height: 5px; }
.cal-legend {
  display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--ink-soft);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .cal-dot { position: static; width: 6px; height: 6px; }
.cal-legend .cal-dot--both { width: 7px; height: 7px; }
.divider-band {
  max-width: 1180px; margin: 0 auto; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px);
  background-image: linear-gradient(to right, var(--line-strong) 60%, transparent 0%);
  background-position: top; background-size: 10px 1px; background-repeat: repeat-x;
}
.divider-band h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; max-width: 32ch; }
.divider-band .section-sub { margin: 14px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-grid article { padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.problem-index { font-size: 12px; color: var(--gold); margin: 0 0 10px; }
.problem-grid p:last-child { margin: 0; font-size: 17px; line-height: 1.45; max-width: 28ch; }
.how h2 { margin-bottom: clamp(28px, 4vw, 40px); }
.how-tag { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); }
.how-steps {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; } }
.how-steps li { padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.step-num { display: block; font-size: 12px; color: var(--thread); margin-bottom: 10px; }
.how-steps h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.how-steps p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ---- scenario block (landing pages) ---- */
.scenario-card {
  margin-top: 8px; padding: clamp(22px, 4vw, 32px); background: var(--canvas-raised); border: 1px dashed var(--line-strong);
  border-radius: 16px;
}
.scenario-card p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 70ch; }
.scenario-card p:first-child { margin-top: 0; }
.scenario-card strong { color: var(--ink); }

/* ---- comparison table ---- */
.compare-table {
  margin-top: clamp(24px, 4vw, 36px); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--canvas-raised);
}
.compare-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px dashed var(--line); }
.compare-row > div { padding: 14px 16px; font-size: 14.5px; line-height: 1.4; }
.compare-row > div:first-child { color: var(--ink-soft); font-size: 13.5px; }
.compare-head { background: var(--canvas); font-family: "JetBrains Mono", monospace; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.compare-head > div:last-child { color: var(--thread); font-weight: 600; }
.compare-row .no { color: var(--ink-faint); }
.compare-row .no::before { content: "— "; }
.compare-row .yes { color: var(--ink); font-weight: 500; }
.compare-row .yes::before { content: "✓ "; color: var(--thread); font-weight: 700; }
@media (max-width: 640px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:first-child { padding-bottom: 4px; font-weight: 600; color: var(--ink); }
  .compare-head { display: none; }
  /* the column headers are hidden here, so each value needs its own label —
     otherwise a bare "—" / "✓" line means nothing without the header row above it */
  .compare-row .no::before { content: "Shared link — "; }
  .compare-row .yes::before { content: "Seam ✓ "; }
}

/* ---- sync diagram ---- */
.sync-diagram-wrap { margin-bottom: clamp(28px, 4vw, 40px); overflow-x: auto; }
.sync-diagram { display: block; min-width: 480px; width: 100%; max-width: 640px; }

/* ---- trust grid ---- */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 20px);
  margin-top: clamp(24px, 4vw, 36px);
}
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { padding: 18px 18px; background: var(--canvas-raised); border: 1px dashed var(--line-strong); border-radius: 12px; }
.trust-card h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 8px; }
.trust-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---- feature spotlight ---- */
.feature-card {
  margin-top: 8px; padding: clamp(24px, 4vw, 40px); background: var(--thread-soft); border: 1px dashed var(--thread);
  border-radius: 16px;
}
.feature-card h2 { max-width: 20ch; color: var(--thread-deep); }
.feature-card p { margin: 14px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---- for whom ---- */
.for-whom .segments { margin: 14px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.team-callout {
  display: inline-block; margin-top: 20px; padding: 12px 18px; background: var(--gold-soft);
  border: 1px dashed var(--gold); border-radius: 10px; font-size: 14.5px; color: var(--ink);
}
.team-callout strong { font-family: "Fraunces", Georgia, serif; font-style: italic; }

/* ---- pricing ---- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 24px);
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; padding: 24px 22px; background: var(--canvas-raised); border: 1px dashed var(--line-strong);
  border-radius: 14px;
}
.price-card--featured { border-color: var(--thread); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -12px; left: 20px; margin: 0; padding: 3px 10px; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; font-family: "JetBrains Mono", ui-monospace, monospace;
  background: var(--thread); color: var(--canvas-raised); border-radius: 999px;
}
.price-card h3 { font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 500; margin: 6px 0 0; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 32px; font-weight: 600; margin: 10px 0 0; color: var(--ink); }
.price span { font-family: "Work Sans", sans-serif; font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.price-desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.pricing-note { margin: 22px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.pricing-note strong { color: var(--ink); }

/* ---- FAQ ---- */
.faq-list { margin: clamp(24px, 3vw, 32px) 0 0; padding: 0; display: grid; gap: clamp(18px, 2.5vw, 26px); }
.faq-item { padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.faq-item dt { font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.faq-item dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.cta-band { padding-bottom: clamp(56px, 8vw, 96px); }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 34px); }
.cta-band p { margin: 16px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.cta-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600;
  color: var(--thread); text-decoration: none; border-bottom: 1px dashed var(--thread); padding-bottom: 2px;
}
.cta-link:hover { color: var(--thread-deep); border-color: var(--thread-deep); }
.related-links { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px); }
.related-links h2 { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.related-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.related-links a { font-size: 14px; color: var(--thread); text-decoration: none; }
.related-links a:hover { text-decoration: underline; }
footer { padding: 22px clamp(20px, 5vw, 64px) 30px; border-top: 1px dashed var(--line); }
footer p { margin: 0; font-size: 13px; color: var(--ink-faint); }
footer a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
footer a:hover { color: var(--thread); text-decoration-color: var(--thread); }
.footer-mark { width: 108px; height: 44px; display: block; }
.footer-stitch { width: 97px; height: 8px; display: block; margin-left: 2px; margin-top: -10px; margin-bottom: 8px; }
.footer-copyright { margin-top: 8px; font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .cta-primary-btn, #chat-toggle, .chat-panel { transition: none; } }
@media (max-width: 480px) {
  .form-note { padding-right: 64px; }
}

/* ---- chat widget ---- */
#chat-toggle {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: 1px dashed var(--thread);
  background: var(--thread); color: var(--canvas-raised); cursor: pointer;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  transition: background 120ms ease, transform 120ms ease;
}
#chat-toggle:hover { background: var(--thread-deep); }
#chat-toggle svg { width: 22px; height: 22px; }
.chat-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 40; width: min(340px, calc(100vw - 40px));
  max-height: min(460px, calc(100vh - 140px)); background: var(--canvas-raised); border: 1px dashed var(--line);
  border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  flex-shrink: 0; padding: 14px 16px; border-bottom: 1px dashed var(--line); font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; align-items: center;
}
.chat-close { background: none; border: none; color: var(--ink-faint); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px; }
.chat-messages { overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.chat-msg { max-width: 85%; padding: 8px 12px; border-radius: 10px; line-height: 1.45; }
.chat-msg--user { align-self: flex-end; background: var(--thread-soft); color: var(--thread-deep); }
.chat-msg--assistant { align-self: flex-start; background: var(--canvas); color: var(--ink); border: 1px dashed var(--line); }
.chat-msg--pending { align-self: flex-start; color: var(--ink-faint); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px dashed var(--line); }
.chat-input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--canvas); border: 1px dashed var(--line-strong); border-radius: 8px;
}
.chat-send {
  flex-shrink: 0; padding: 10px 14px; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--canvas-raised); background: var(--thread); border: 1px dashed var(--thread); border-radius: 8px; cursor: pointer;
}
.chat-send:disabled { opacity: 0.6; cursor: default; }
