/* Overview+ website. Colours are the app's own (AppSettings / CalendarModels). */
:root {
  --bg: #F5F1EC;
  --paper: #FFFDFA;
  --ink: #253247;
  --muted: #626B78;
  --accent: #344C74;
  --rule: rgba(37, 50, 71, 0.16);
  --bezel: #1B2130;
  --shadow: 0 30px 70px -20px rgba(37, 50, 71, 0.35), 0 8px 20px -8px rgba(37, 50, 71, 0.18);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151B; --paper: #1B1F27; --ink: #EEF0F4; --muted: #9AA2AF;
    --accent: #9DB2D8; --rule: rgba(255, 255, 255, 0.12); --bezel: #000;
    --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --bg: #12151B; --paper: #1B1F27; --ink: #EEF0F4; --muted: #9AA2AF;
  --accent: #9DB2D8; --rule: rgba(255, 255, 255, 0.12); --bezel: #000;
  --shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden; }
a { color: var(--accent); }
img, video { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
section, header { scroll-margin-top: 64px; }

/* Type */
h1, h2, .display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(52px, 8.5vw, 104px); line-height: 0.95; margin: 0 0 24px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(50px, 7.4vw, 92px); line-height: 0.98; margin: 0 0 22px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
          display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.kicker::before { content: ""; width: 40px; height: 1.5px; background: var(--accent); }
.kicker { color: var(--accent); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 32em; margin: 0 0 30px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
       backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .get { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* App Store button */
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg);
         text-decoration: none; border-radius: 14px; padding: 12px 22px 12px 18px; }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: .8; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fine { color: var(--muted); font-size: 15px; margin-top: 16px; }
.fine b { color: var(--ink); font-weight: 600; }

/* Devices: real screenshots in a drawn bezel */
.iphone { position: relative; border-radius: 13% / 6%; background: var(--bezel); padding: 2.6%;
          box-shadow: var(--shadow); }
.iphone img, .iphone video { border-radius: 11% / 5.1%; width: 100%; height: auto; }
.iphone.land { border-radius: 6% / 13%; padding: 1.2%; }
.iphone.land img { border-radius: 5.1% / 11%; }
.ipad { position: relative; border-radius: 4.5%; background: var(--bezel); padding: 2%; box-shadow: var(--shadow); }
.ipad img { border-radius: 2.8%; width: 100%; }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-shots { position: relative; height: 640px; }
.hero-shots .iphone { position: absolute; width: 290px; }
.hero-shots .front { right: 8%; top: 0; z-index: 2; }
.hero-shots .back { right: 46%; top: 70px; transform: rotate(-6deg); opacity: .96; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-shots .iphone { width: 250px; }
  .hero-shots .front { right: 4%; }
  .hero-shots .back { right: auto; left: 4%; }
}
@media (max-width: 480px) {
  .hero-shots { height: 470px; }
  .hero-shots .iphone { width: 205px; }
}

/* Sections */
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Three views */
.views { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.views-list { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: v; }
.views-list li { counter-increment: v; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 18px 0;
                 border-top: 1px solid var(--rule); opacity: .45; transition: opacity .35s ease; }
.views-list li:last-child { border-bottom: 1px solid var(--rule); }
.views-list li::before { content: "0" counter(v); font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); }
.views-list li.on { opacity: 1; }
.views-list p { margin: 0; color: var(--muted); }
.views .iphone { width: 100%; max-width: 340px; margin: 0 auto; }
@media (max-width: 860px) { .views { grid-template-columns: 1fr; gap: 40px; } .views .iphone { max-width: 280px; order: -1; } }

/* Feature spreads */
.spread { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spread.flip > :first-child { order: 2; }
.spread .iphone { width: 100%; max-width: 330px; margin: 0 auto; }
.notes { margin: 28px 0 0; padding: 0; list-style: none; }
.notes li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; gap: 14px; }
.notes li:last-child { border-bottom: 1px solid var(--rule); }
.notes li::before { content: "—"; color: var(--accent); }
.quote { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--accent); margin-top: 24px; }
@media (max-width: 860px) {
  .spread, .spread.flip { grid-template-columns: 1fr; gap: 40px; }
  .spread.flip > :first-child { order: 0; }
  .spread .iphone { max-width: 290px; }
}

/* Live Activity band */
.band { background: #1E2A40; color: #EEF0F4; margin: 40px 0; }
.band .kicker, .band h2 em { color: #A9BEE3; }
.band .kicker::before { background: #A9BEE3; }
.band .lead, .band .notes li { color: rgba(238, 240, 244, 0.78); }
.band .notes li { border-color: rgba(255, 255, 255, 0.14); }
.band .notes li::before { color: #A9BEE3; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.lock-card { background: radial-gradient(120% 90% at 30% 0%, #3C5A8C 0%, #1B253A 70%); border-radius: 36px;
             padding: 40px 28px 32px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); text-align: center; }
.lock-time { font-size: clamp(64px, 9vw, 96px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 28px; color: #fff; }
.lock-card img { border-radius: 20px; width: 100%; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.6); }
.lock-caption { margin: 18px 0 0; color: rgba(238, 240, 244, 0.7); font-size: 15px; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Landscape */
.wide { text-align: center; }
.wide .iphone.land { max-width: 900px; margin: 40px auto 0; }
.wide .lead { margin-left: auto; margin-right: auto; }

/* iPad */
.ipads { position: relative; margin-top: 48px; }
.ipads { padding-bottom: 9%; }
.ipads .land { width: 80%; }
.ipads .port { position: absolute; width: 30%; right: 0; bottom: 0; }
.ipad-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.ipad-notes p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .ipad-notes { grid-template-columns: 1fr; gap: 20px; } }

/* Index of smaller features */
.index { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; margin-top: 40px; }
.index div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--rule); }
.index h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; }
.index p { margin: 0; color: var(--muted); }
@media (max-width: 780px) { .index { grid-template-columns: 1fr; } .index div { grid-template-columns: 1fr; gap: 6px; } }

/* The trial's two promises, as on the app's last setup page */
.promises { list-style: none; padding: 0; margin: 0 0 30px; }
.promises li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.promises li:last-child { border-bottom: 1px solid var(--rule); }
.promises b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }

/* Pricing as a receipt */
.pricing { display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: center; }
.receipt { background: var(--paper); color: var(--ink); padding: 36px 32px 44px; box-shadow: var(--shadow);
           font: 15px/1.5 ui-monospace, "SF Mono", Menlo, monospace; transform: rotate(1.5deg); position: relative;
           -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x;
                   mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; }
.receipt .head { text-align: center; border-bottom: 1px dashed var(--rule); padding-bottom: 16px; margin-bottom: 14px; }
.receipt .head img { width: 44px; height: 44px; border-radius: 11px; margin: 0 auto 8px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.receipt .row span:last-child { white-space: nowrap; }
.receipt .muted { color: var(--muted); }
.receipt .total { border-top: 1px dashed var(--rule); margin-top: 12px; padding-top: 12px; font-weight: 700; font-size: 17px; }
.receipt .thanks { text-align: center; margin-top: 22px; color: var(--muted); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; gap: 40px; } .receipt { max-width: 420px; margin: 0 auto; width: 100%; } }

/* Privacy statement */
.privacy-line { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; max-width: 18em; margin: 0; }
.privacy-line em { color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; margin-right: 20px; }
footer a:hover { color: var(--ink); }

/* Text pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.doc h1 { font-size: clamp(44px, 7vw, 68px); }
.doc h2 { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: 0; color: var(--accent); margin: 36px 0 8px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc .muted { color: var(--muted); }
.faq { margin-top: 18px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
