/* Zone Butler website.
   Layout: light page, full-width bands that alternate white and a cool blue-gray, one navy band for the clock-change
   warning. Real app screens (navy) are the pictures; the page stays quiet around them.
   Color family: navy + amber + day-blue, taken from the app icon. Single light look on purpose (a marketing page). */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --mist: #EBEFF6;        /* cool band; never cream */
  --ink: #0C1120;         /* icon navy */
  --ink-2: #47526B;
  --ink-3: #555F78;
  --line: #D3DAE7;
  --amber: #F5B544;       /* icon sun */
  --amber-row: #E8B65A;   /* the app's day row */
  --amber-ink: #8A5A00;   /* amber that is readable as text on light */
  --sky: #3D74B8;         /* icon day side */
  --sky-ink: #28548F;     /* day-blue that is readable as text on light */
  --evening: #465A85;     /* the app's evening row */
  --night: #1C2552;       /* the app's night row */
  --navy: #0C1120;
  --navy-card: #1D2742;
  --navy-line: #33405F;
  --on-navy: #F2F5FB;
  --on-navy-2: #AEB9D0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r-lg: 22px;
  --r-md: 14px;
  --shadow: 0 30px 60px -28px rgba(12, 17, 32, .45), 0 8px 20px -12px rgba(12, 17, 32, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.022em; line-height: 1.08; }
p { margin: 0; }
/* A heading made of two sentences breaks between them, never in the middle of one that fits on a line. */
h1 .s, h2 .s { display: inline-block; text-wrap: balance; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- Nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav nav { display: flex; gap: 26px; flex-wrap: wrap; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* ---------- Bands ---------- */
.band { padding-top: 104px; padding-bottom: 104px; background: var(--paper); }
.band.mist { background: var(--mist); }
.band.navy { background: var(--navy); color: var(--on-navy); }
.answer { font-size: clamp(22px, 2.2vw, 28px); font-weight: 650; letter-spacing: -0.018em; line-height: 1.3; margin-top: 16px; color: var(--sky-ink); }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 680; }
.intro { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin-top: 18px; }
.navy .intro { color: var(--on-navy-2); }
.head { max-width: 860px; margin-bottom: 52px; }

/* ---------- Hero ---------- */
.hero { padding-top: 72px; padding-bottom: 0; background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 55%, var(--mist) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(40px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--sky-ink); }
.lead { font-size: clamp(19px, 1.75vw, 23px); color: var(--ink-2); margin-top: 24px; max-width: 30em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; }
.button[aria-disabled="true"] { cursor: default; }
.button .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.fine { font-size: 14px; color: var(--ink-3); }

/* The live strip: rows tinted the way the app tints them. */
.live { margin-top: 44px; background: var(--mist); border-radius: var(--r-lg); padding: 16px; }
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 2px 6px 12px; }
.live-head b { font-size: 14px; font-weight: 650; }
.live-head span { font-size: 13px; color: var(--ink-3); }
.live-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zrow { border-radius: 12px; padding: 11px 14px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zrow .city { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zrow .time { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zrow .state { font-size: 12.5px; }
.zrow.day { background: var(--amber-row); color: var(--ink); }
.zrow.edge { background: var(--evening); color: #fff; }
.zrow.night { background: var(--night); color: #fff; }
.zrow.night .state { color: #A9BBF0; }
.zrow.home { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.shot { margin: 0; }
.shot img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.shot figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; text-align: center; }
.navy .shot figcaption { color: var(--on-navy-2); }
.hero .shot { max-width: 440px; justify-self: end; width: 100%; }
.hero .shot .clip { border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; box-shadow: var(--shadow); max-height: 690px;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.hero .shot .clip img { border-radius: 0; box-shadow: none; }

/* ---------- Why another ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.why-grid .head { margin-bottom: 0; }
.question { margin-top: 28px; background: var(--paper); border-radius: var(--r-md); padding: 22px 24px; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.45; }
.question span { color: var(--sky-ink); }
.table-scroll { padding: 10px; overflow-x: auto; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 1px 0 var(--line); }
table.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
table.compare tr:last-child td { border-bottom: 0; }
table.compare thead th { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
table.compare thead th.us { color: var(--ink); background: var(--amber); }
table.compare td.us { background: #FFF4DC; font-weight: 550; }
table.compare td.them { color: var(--ink-2); }
table.compare td.what { font-weight: 650; width: 24%; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .shot { max-width: 440px; width: 100%; justify-self: center; }
.asks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.asks li { background: var(--mist); border-radius: 12px; padding: 13px 16px; font-size: 16.5px; font-weight: 550; display: flex; gap: 12px; align-items: baseline; }
.mist .asks li { background: var(--paper); }
.asks li i { font-style: normal; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); flex: 0 0 44px; }
.listen { margin-top: 18px; }
.listen img { border-radius: 14px; box-shadow: var(--shadow); }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 26px; position: relative; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.points b { color: var(--ink); font-weight: 650; }
.navy .points li { color: var(--on-navy-2); }
.navy .points b { color: var(--on-navy); }

.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.dates div { background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: var(--r-md); padding: 16px 18px; }
.dates b { display: block; font-size: 15px; color: var(--amber); font-weight: 650; }
.dates span { font-size: 15px; color: var(--on-navy-2); }
.navy .shot img { border: 1px solid var(--navy-line); }

.wide-shot { margin-top: 8px; }
.wide-shot img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; }
.wide-shot.fade { max-height: 760px; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.wide-shot.fade img { box-shadow: none; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; margin-bottom: 44px; }
.split-head .points { margin-top: 0; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--paper); border-radius: var(--r-lg); padding: 28px; }
.band:not(.mist) .tile { background: var(--mist); }
.tile h3 { font-size: 20px; font-weight: 660; letter-spacing: -0.012em; line-height: 1.2; }
.tile p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }

/* ---------- Privacy facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--mist); border-radius: var(--r-lg); padding: 30px 28px; }
.fact .big { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.fact p { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.fact p.big { color: var(--ink); margin-top: 0; }

/* ---------- FAQ + closing ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 620; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-ink); font-size: 22px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin-top: -4px; }
.closing-icon { width: 96px; height: 96px; margin-bottom: 22px; margin-left: -10px; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: var(--on-navy-2); padding-top: 44px; padding-bottom: 44px; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
footer .brand { color: var(--on-navy); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--on-navy); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .credits { flex-basis: 100%; border-top: 1px solid var(--navy-line); padding-top: 18px; color: var(--on-navy-2); font-size: 13.5px; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding-top: 64px; padding-bottom: 96px; }
.doc .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.doc h1 { font-size: clamp(36px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.03em; }
.doc h2 { font-size: 24px; font-weight: 660; margin-top: 40px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.updated { font-size: 14.5px; color: var(--ink-3); }
.draft { background: #FFF1D2; border: 1px solid var(--amber); color: #5B3B00; border-radius: var(--r-md); padding: 16px 20px; margin-top: 24px; font-size: 16px; }
.draft strong { color: #3F2900; }
.aside { background: var(--mist); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 90px; }
.aside h2 { margin-top: 0; font-size: 20px; }
.aside ul { padding-left: 20px; }
.back { display: inline-block; margin-bottom: 22px; font-size: 15px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 920px) {
  .band { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 48px; }
  .hero .wrap, .why-grid, .feature, .split-head, .faq-grid, .doc .cols { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .feature.flip .copy { order: 0; }
  .hero .shot { justify-self: center; }
  .tiles, .facts { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 560px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .live-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dates { grid-template-columns: minmax(0, 1fr); }
  .nav nav { gap: 16px; }
  .nav nav a.opt { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The comparison table becomes stacked blocks on a phone, so nothing hides behind a sideways scroll. */
@media (max-width: 560px) {
  table.compare { min-width: 0; }
  table.compare thead { display: none; }
  table.compare tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.compare tr:last-child { border-bottom: 0; }
  table.compare td { display: block; border-bottom: 0; padding: 8px 14px; }
  table.compare td.what { width: auto; font-size: 18px; }
  table.compare td.us { border-radius: 12px; padding: 12px 14px; }
  table.compare td.them::before { content: "A typical world clock: "; font-weight: 650; color: var(--ink); }
  table.compare td.us::before { content: "Zone Butler: "; font-weight: 700; }
}
