/* Dialed's colours, from DLDesign's DLColor, light and dark. */
:root {
  --brand: #3D5AFE;
  /* Under white text: brand itself is too light in dark (3.2:1); as DLColor.brandFill. */
  --brand-fill: #3D5AFE;
  --brand-text: #2F4BE0;
  /* Orange words: the flame colour is for graphics, under 4.5:1 as text in light. */
  --flame-text: #A8380A;
  --flame: #FF7A1A;
  --fresh: #22B573;
  --bg: #F4F5FA;
  --surface: #FFFFFF;
  --track: #E3E6F0;
  --text: #12141C;
  --text-2: #565B6B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6F86FF;
    --brand-fill: #4560F0;
    --brand-text: #7F93FF;
    --flame-text: #FF8F3D;
    --flame: #FF8F3D;
    --fresh: #3DD68C;
    --bg: #0E1016;
    --surface: #1A1D26;
    --track: #2A2E3A;
    --text: #F2F3F7;
    --text-2: #A9AEBD;
  }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brand-text); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--track); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
nav ul { display: flex; gap: 22px; list-style: none; }
nav ul a { color: var(--text-2); text-decoration: none; font-weight: 600; }
nav ul a:hover { color: var(--text); }
@media (max-width: 640px) { nav ul li.wide { display: none; } }

.button { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-fill); color: #fff; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 16px; }
/* Apple's own badge (Marketing Tools), kept in img/ so the page loads nothing from elsewhere:
   black in light, white in dark, never redrawn or recoloured. */
.app-store-link { display: inline-flex; border-radius: 10px; }
.app-store-badge { display: block; height: 54px; width: auto; transition: transform 0.2s; }
.app-store-link:hover .app-store-badge { transform: translateY(-2px); }
.button.secondary { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-text); }

.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 1.2rem; color: var(--text-2); margin: 20px 0 28px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }

/* The screens come framed in an iPhone (scripts/frame-website-screens.py), so only a shadow here. */
.phone { width: 100%; max-width: 320px; justify-self: center; }
.phone img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(20, 30, 90, 0.28)); }
.phones { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.phones .phone { max-width: 270px; }

section { padding: 64px 0; }
section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
section .kicker { color: var(--flame-text); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 8px; }
section p.sub { color: var(--text-2); font-size: 1.1rem; max-width: 40em; margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 32px; }
.card { background: var(--surface); border-radius: 22px; padding: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { color: var(--text-2); }
.card .num { font-size: 2.2rem; font-weight: 900; color: var(--brand); line-height: 1; margin-bottom: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
ul.ticks { list-style: none; margin-top: 18px; }
ul.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--text-2); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--fresh); font-weight: 900; }
ul.ticks li b { color: var(--text); }

.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
@media (max-width: 700px) { .tracks { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-text); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 0.9rem; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
@media (max-width: 700px) { .pricing { grid-template-columns: 1fr; } }
.pricing .card.pro { outline: 3px solid var(--brand); }

.cta { text-align: center; background: var(--surface); border-radius: 28px; padding: 56px 24px; margin: 32px 0 64px; }
.cta p { color: var(--text-2); margin: 12px auto 24px; max-width: 32em; }

footer { border-top: 1px solid var(--track); padding: 32px 0 48px; color: var(--text-2); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-2); text-decoration: none; margin-left: 16px; }
footer a:first-child { margin-left: 0; }
footer a:hover { color: var(--text); }

/* Legal and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 24px; }
.doc h1 { font-size: 2.3rem; font-weight: 900; line-height: 1.1; }
.doc .meta { color: var(--text-2); margin: 8px 0 32px; font-size: 0.9rem; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-2); margin-bottom: 12px; }
.doc ul { margin-left: 22px; }
.doc .short { background: var(--surface); border-radius: 20px; padding: 20px 22px; margin-bottom: 8px; }
.doc .short p { margin: 0; color: var(--text); }
details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; }
