/* Waltz Cal website. The app's own palette (Sky theme): warm cream canvas, ink text, Sky accent, New York serif
   headings. Light and dark follow the visitor's system setting. No web fonts, no scripts, no trackers. */

/* Light and dark follow the visitor's system, or the Auto / Light / Dark switch in the header (html[data-site]).
   The app's five themes recolour the accents (html[data-th]); values are the app's own (Shared/WaltzTheme.swift). */
:root {
  color-scheme: light dark;
  --bg: light-dark(#FAF9F6, #141312);
  --surface: light-dark(#FFFFFF, #1E1D1B);
  --card: light-dark(#FFFFFF, #201F1C);
  --elevated: light-dark(#F3F1EC, #292826);
  --ink: light-dark(#23283A, #F2EFE9);
  --muted: light-dark(#5E5C58, #C6C0B6);
  --hairline: light-dark(#E2DED6, #363430);
  --sage: light-dark(#376F5A, #B7E4CB);
  --clay: light-dark(#92521D, #F1C992);
  --iris: light-dark(#6F5FAE, #B9A8E5);
  /* Theme accents: Sky by default */
  --acc: light-dark(#2F6688, #9CCBE8);
  --accf: light-dark(#2F6688, #33698C);
  --tint: light-dark(#E5EEF4, #1C2A33);
  --on: light-dark(#FFFFFF, #FFFFFF);
  --glow: light-dark(#E5EEF4, rgba(74, 132, 170, .34));
  --accent: var(--acc);
  --accent-strong: var(--acc);
  --accent-soft: var(--tint);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root[data-site="light"] { color-scheme: light; }
:root[data-site="dark"] { color-scheme: dark; }
:root[data-th="iris"] { --acc: light-dark(#62529C, #B9A8E5); --accf: light-dark(#62529C, #6A5AAB); --tint: light-dark(#EEEAF5, #272433); --glow: light-dark(#EEEAF5, rgba(111, 95, 174, .38)); }
:root[data-th="sage"] { --acc: light-dark(#2E6A52, #9AD3B8); --accf: light-dark(#2E6A52, #2F6F56); --tint: light-dark(#E3EEE7, #1A2A23); --glow: light-dark(#E3EEE7, rgba(78, 138, 113, .34)); }
:root[data-th="clay"] { --acc: light-dark(#87470F, #F1C992); --accf: light-dark(#9C5418, #E0A660); --tint: light-dark(#FBEEDF, #33281B); --on: light-dark(#FFFFFF, #1E1A10); --glow: light-dark(#FBEEDF, rgba(224, 166, 96, .26)); }
:root[data-th="graphite"] { --acc: light-dark(#24262E, #F2EFE9); --accf: light-dark(#24262E, #E8E4DC); --tint: light-dark(#ECEAE5, #2A2926); --on: light-dark(#FFFFFF, #1A1917); --glow: light-dark(#ECEAE5, rgba(232, 228, 220, .12)); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav a[href$="#features"], .nav a[href$="#pricing"] { display: none; }
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--accf); color: var(--on); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: filter .2s, background .4s var(--ease);
}
.btn:hover { color: var(--on); filter: brightness(1.08); }
.btn.secondary { background: light-dark(var(--tint), transparent); color: var(--acc); box-shadow: inset 0 0 0 1px light-dark(transparent, color-mix(in srgb, var(--acc) 45%, transparent)); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.note { font-size: 14px; color: var(--muted); }

/* Hero: the iPhone Duo, unfolded, with the folded Duo in front of it */
.hero { padding: 72px 0 24px; }
.hero-text { max-width: 760px; }
.duo-stage { position: relative; margin: 56px 0 40px; padding-right: 9%; }
.duo-open, .duo-folded {
  background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: 0 34px 70px -34px rgba(35, 40, 58, .4);
}
.duo-open { width: 100%; border-radius: 28px; }
.duo-folded { position: absolute; right: 0; bottom: -40px; width: 27%; border-radius: 30px; }
@media (max-width: 860px) { .hero { padding-top: 48px; } }
@media (max-width: 600px) {
  .duo-stage { padding-right: 0; margin-top: 40px; }
  .duo-open { border-radius: 16px; }
  .duo-folded { width: 34%; bottom: -28px; right: -6px; border-radius: 18px; }
}
.phone {
  width: min(330px, 80vw); border-radius: 44px; overflow: hidden;
  border: 1px solid var(--hairline); box-shadow: 0 30px 60px -30px rgba(35, 40, 58, .35);
  background: var(--surface);
}

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 46em; margin-bottom: 28px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; margin: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.showcase figure { margin: 0; }
.showcase figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }
.showcase .phone { width: 100%; border-radius: 30px; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

.mac { border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: 0 30px 60px -34px rgba(35, 40, 58, .35); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price { font-family: var(--serif); font-size: 36px; margin: 6px 0 2px; }
.price small { font: 500 16px var(--sans); color: var(--muted); }
.card.pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--ink); font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* Documents (privacy, terms, support) */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 26px; margin-top: 2em; }
.doc h3 { font-size: 19px; margin-top: 1.6em; font-family: var(--sans); font-weight: 650; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .35em 0; }
.doc .meta { color: var(--muted); font-size: 15px; }
.summary {
  background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 8px;
}
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 24px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 8px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--elevated); padding: 2px 6px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Device switcher on the cover: radio buttons and labels, no script. */
.devices { margin: 40px 0 24px; }
.devices > input { position: absolute; opacity: 0; pointer-events: none; }
.device-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--elevated); border: 1px solid var(--hairline); margin-bottom: 28px;
}
.device-tabs label {
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted);
  white-space: nowrap; user-select: none;
}
.device-tabs label:hover { color: var(--ink); }
#d-duo:checked ~ .device-tabs label[for="d-duo"],
#d-ipad:checked ~ .device-tabs label[for="d-ipad"],
#d-mac:checked ~ .device-tabs label[for="d-mac"],
#d-iphone:checked ~ .device-tabs label[for="d-iphone"] {
  background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 40, 58, .14);
}
#d-duo:focus-visible ~ .device-tabs label[for="d-duo"],
#d-ipad:focus-visible ~ .device-tabs label[for="d-ipad"],
#d-mac:focus-visible ~ .device-tabs label[for="d-mac"],
#d-iphone:focus-visible ~ .device-tabs label[for="d-iphone"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.device-panels .panel { display: none; margin: 0; }
#d-duo:checked ~ .device-panels .p-duo,
#d-ipad:checked ~ .device-panels .p-ipad,
#d-mac:checked ~ .device-panels .p-mac,
#d-iphone:checked ~ .device-panels .p-iphone { display: block; }
.device-panels figcaption { margin-top: 56px; color: var(--muted); font-size: 16px; text-align: center; }
.p-ipad figcaption, .p-mac figcaption, .p-iphone figcaption { margin-top: 20px; }
.duo-stage { margin: 0; }
.shot {
  margin-inline: auto; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: 0 34px 70px -34px rgba(35, 40, 58, .4);
}
.shot.ipad { width: min(560px, 100%); border-radius: 26px; }
.shot.mac-shot { width: 100%; border-radius: 14px; }
.shot.phone { width: min(330px, 80vw); border-radius: 44px; }
@media (max-width: 600px) {
  .device-tabs { display: flex; overflow-x: auto; }
  .device-tabs label { padding: 8px 12px; font-size: 14px; }
  .device-panels figcaption { margin-top: 40px; }
}

/* Feature groups */
.feature-groups { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.card.feature h3 { font-size: 20px; margin-bottom: 10px; }
.card.feature ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 15.5px; }
.card.feature li { margin: 6px 0; }
.card.feature li::marker { color: var(--hairline); }

/* App Store pictures, scrolled sideways */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(250px, 62vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; overscroll-behavior-x: contain;
}
.gallery img { width: 100%; border-radius: 22px; scroll-snap-align: start; border: 1px solid var(--hairline); }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
.agents-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .agents-pair { grid-template-columns: 1fr; } }

/* Tips */
.tip-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-right: 10px;
  background: var(--accent-soft); color: var(--accent-strong); font: 700 14px var(--sans); vertical-align: 3px; }
.steps { background: var(--elevated); border-radius: 12px; padding: 12px 16px 12px 34px; margin: 10px 0 14px; }
.steps li { margin: .25em 0; }

/* What AI apps can do over MCP */
.mcp-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px 22px; color: var(--muted); font-size: 16px; }
.mcp-list li { padding-left: 16px; border-left: 2px solid var(--acc); }
.mcp-list b { color: var(--ink); }

/* Header: Auto / Light / Dark */
.site-header .wrap { gap: 14px; }
.head-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.look { display: inline-flex; gap: 2px; background: var(--elevated); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.look button { border: 0; background: none; color: var(--muted); font: 600 13px var(--sans); min-height: 32px; padding: 0 11px; border-radius: 999px; cursor: pointer; }
.look button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 40, 58, .18); }
.look button:focus-visible, .feat:focus-visible, .cust-btn:focus-visible, .chips button:focus-visible, .sw:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.no-js .look, .no-js .cust-btn { display: none; }
@media (max-width: 640px) { .look button { padding: 0 8px; font-size: 12px; } .nav a[href$="/tips/"] { display: none; } }
@media (max-width: 460px) { .site-header .nav { display: none; } .brand span { font-size: 19px; } }

/* Hero glow in the theme's colour */
.hero-band { background: radial-gradient(90% 120% at 88% -20%, var(--glow), transparent 62%), radial-gradient(60% 80% at 0% 110%, color-mix(in srgb, var(--glow) 55%, transparent), transparent 70%); }

/* Tour: tap a feature, the screen beside it follows; Customize picks device, look and theme */
.tour { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.feats { display: grid; gap: 8px; }
.feat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; text-align: left; border: 1px solid transparent; background: none; border-radius: 16px; padding: 14px 16px; cursor: pointer; color: var(--ink); font: inherit; min-height: 44px; transition: background .3s var(--ease), border-color .3s var(--ease); }
.feat:hover { background: var(--elevated); }
.feat .fdot { width: 10px; height: 10px; border-radius: 50%; margin-top: 9px; grid-row: span 2; background: var(--hairline); transition: background .3s; }
.feat b { font: 600 20px/1.25 var(--serif); }
.feat .fx { grid-column: 2; color: var(--muted); font-size: 15px; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s var(--ease), opacity .3s; }
.feat .fx > span { overflow: hidden; }
.feat[aria-selected="true"] { background: var(--tint); border-color: color-mix(in srgb, var(--acc) 25%, transparent); }
.feat[aria-selected="true"] .fdot { background: var(--acc); }
.feat[aria-selected="true"] .fx { grid-template-rows: 1fr; opacity: 1; }
:root[data-site="dark"] .feat[aria-selected="true"] { background: var(--card); border-color: color-mix(in srgb, var(--acc) 40%, transparent); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .8), inset 3px 0 0 var(--acc); }
@media (prefers-color-scheme: dark) { :root:not([data-site="light"]) .feat[aria-selected="true"] { background: var(--card); border-color: color-mix(in srgb, var(--acc) 40%, transparent); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .8), inset 3px 0 0 var(--acc); } }
.shot-col { display: grid; justify-items: center; gap: 14px; position: sticky; top: 84px; }
.dbox { position: relative; width: 100%; display: grid; place-items: center; }
.dbox[data-dev="iphone"] { width: min(300px, 100%); aspect-ratio: 1320 / 2868; }
.dbox[data-dev="ipad"] { width: min(430px, 100%); aspect-ratio: 2064 / 2690; }
.dbox[data-dev="duo"] { aspect-ratio: 2853 / 2007; }
.dbox[data-dev="mac"] { aspect-ratio: 2720 / 1720; }
.dbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s var(--ease), transform .55s var(--ease); border: 1px solid var(--hairline); box-shadow: 0 28px 50px -30px rgba(20, 35, 50, .45); background: var(--surface); }
.dbox img.on { opacity: 1; transform: none; }
.dbox[data-dev="iphone"] img { border-radius: 38px; border: 7px solid #1d2b36; }
.dbox[data-dev="ipad"] img { border-radius: 24px; border: 7px solid #1d2b36; }
.dbox[data-dev="duo"] img { border-radius: 20px; border: 6px solid #1d2b36; }
.dbox[data-dev="mac"] img { border-radius: 12px; }
.under { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: center; }
.dots { display: flex; gap: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline); transition: background .3s, width .3s; }
.dots i.on { width: 22px; border-radius: 9px; background: var(--acc); }
.cust-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.cust-btn svg { width: 16px; height: 16px; stroke: var(--acc); }
.cust { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 20px 40px -28px rgba(20, 35, 50, .5); }
.cust[hidden] { display: none; }
.cust h3 { margin: 0 0 6px; font: 600 13px var(--sans); color: var(--muted); letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; background: var(--elevated); border: 1px solid var(--hairline); border-radius: 16px; padding: 3px; }
.chips button { border: 0; background: none; color: var(--muted); font: 600 13px var(--sans); min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 40, 58, .18); }
.chips button[disabled] { opacity: .4; cursor: not-allowed; }
.sws { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font: 600 12px var(--sans); cursor: pointer; min-width: 52px; padding: 4px 2px; border-radius: 12px; }
.sw i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); display: block; }
.sw[aria-pressed="true"] { color: var(--ink); }
.sw[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--acc); }
.cust small { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) { .tour { grid-template-columns: minmax(0, 1fr); } .shot-col { order: -1; position: static; } .dbox[data-dev="iphone"] { width: 210px; } .dbox[data-dev="ipad"] { width: 270px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
