/* 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: linear-gradient(145deg, #A7AEB9, #6B7280 45%, #8D94A0);
    --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: linear-gradient(145deg, #A7AEB9, #6B7280 45%, #8D94A0);
  --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; }
/* The logo's light and dark versions: the picture adds no box of its own. */
picture { display: contents; }
.wrap { max-width: 1320px; 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; }
/* Phones: the brand on its own line, every link in a row under it. */
@media (max-width: 640px) {
  .nav .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; }
  .nav-links a { font-size: 14px; }
}

/* 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 thin drawn frame. On the dark page it's
   titanium grey rather than black, so the phone's edge reads against it. */
.iphone { position: relative; border-radius: 12.4% / 5.7%; background: var(--bezel); padding: 1.3%;
          box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.iphone img, .iphone video { display: block; border-radius: 11.4% / 5.25%; width: 100%; height: auto; }
.iphone.land { border-radius: 5.7% / 12.4%; padding: 0.6%; }
.iphone.land img { border-radius: 5.25% / 11.4%; }
.ipad { position: relative; border-radius: 4%; background: var(--bezel); padding: 1%;
        box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.ipad img { display: block; border-radius: 3.2%; 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; }
/* Narrow laptops: smaller phones, the back one tucked in, so it stays
   clear of the text beside it. */
@media (max-width: 1120px) and (min-width: 921px) {
  .hero-shots { height: 580px; }
  .hero-shots .iphone { width: 236px; }
  .hero-shots .front { right: 4%; }
  .hero-shots .back { right: 40%; top: 60px; }
}
/* The shots' box is as tall as the lower, tilted phone reaches — a
   phone is 2.17 times as tall as it is wide — so they never run over the
   text that follows. */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-shots { height: 640px; 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: 520px; }
  .hero-shots .iphone { width: 205px; }
  .hero-shots .back { top: 50px; }
}

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

/* Three views */
.views { display: grid; grid-template-columns: 1fr 560px; 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); }
/* The recording beside the month with its starred days, the second a
   little lower so the pair doesn't read as one flat row. */
.views-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.views-shots .iphone:last-child { margin-top: 56px; }
.views .iphone { width: 100%; }
@media (max-width: 1080px) { .views { grid-template-columns: 1fr 460px; gap: 48px; } }
@media (max-width: 860px) {
  .views { grid-template-columns: 1fr; gap: 40px; }
  .views-shots { order: -1; width: 100%; max-width: 440px; margin: 0 auto; gap: 14px; }
  .views-shots .iphone:last-child { margin-top: 36px; }
}

/* 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; } }
.duos { position: relative; margin-top: 48px; padding-bottom: 4%; }
.duos img { display: block; height: auto; }
.duos .open { width: 80%; }
.duos .folded { position: absolute; width: 27%; right: 0; bottom: 0; filter: drop-shadow(0 18px 36px rgba(0,0,0,.18)); }

/* 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 h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; margin: 24px 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; }

/* Support: the help page's assistant */
.ask { margin: 28px 0 8px; padding: 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; }
.ask h2 { margin-top: 0; }
.ask-log { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.ask-log:empty { display: none; }
.ask-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-msg.user { align-self: flex-end; background: var(--accent); color: var(--paper); border-bottom-right-radius: 6px; }
.ask-msg.user a { color: inherit; }
.ask-msg.assistant { align-self: flex-start; background: var(--bg); color: var(--ink); border-bottom-left-radius: 6px; }
.ask-msg.pending { color: var(--muted); }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
.ask-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-form button { font: inherit; font-weight: 600; color: var(--paper); background: var(--accent); border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer; }
.ask-form button:disabled { opacity: 0.5; cursor: default; }
.ask-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Support: questions by topic */
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.faq-topics a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; }
.faq-topics a:hover { border-color: var(--accent); }
.doc h3.faq-group { margin: 36px 0 0; scroll-margin-top: 84px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.faq-group + .faq { margin-top: 8px; }

/* A short list of features, each with its icon */
.features { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.feat-icon svg { width: 24px; height: 24px; }
.features strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.features span { color: var(--muted); line-height: 1.45; }

/* Comfortable supporting-page typography. */
p{text-wrap:pretty}h1,h2,h3{text-wrap:balance}.ask-note{font-size:15px}.faq-topics a{font-size:16px;min-height:44px;display:inline-flex;align-items:center}.doc a{overflow-wrap:anywhere}
footer .wrap>div{display:flex;flex-wrap:wrap;gap:12px 20px;max-width:100%}footer a{margin:0;text-decoration:underline;text-underline-offset:4px}.nav-links .get{border:1px solid var(--rule);border-radius:25px;padding:9px 15px;white-space:nowrap}.nav-links a:hover{color:var(--accent)}
@media(max-width:640px){.nav .wrap{flex-wrap:nowrap;height:70px}.nav-links{width:auto}.nav-links .hide-sm{display:none}}
