/* Alfred landing page. Brand from the app (components/theme.ts): blue #0183FF, Figtree, neutral pages. */
:root {
  --blue: #0183FF;
  --blue-deep: #0066CC;
  --ink: #0B0B0F;
  --text: #1D1D22;
  --soft: #5A5A63;
  --page: #FFFFFF;
  --panel: #F4F4F6;
  --line: rgba(11, 11, 15, 0.09);
  --top1: #E8132F;
  --radius: 28px;
  --shadow: 0 40px 80px -30px rgba(1, 40, 90, 0.45), 0 12px 24px -12px rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F5F5F7; --text: #E9E9EE; --soft: #A6A6B0; --page: #000000; --panel: #141416; --line: rgba(255, 255, 255, 0.12);
  }
}
:root[data-theme="dark"] { --ink: #F5F5F7; --text: #E9E9EE; --soft: #A6A6B0; --page: #000000; --panel: #141416; --line: rgba(255, 255, 255, 0.12); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--text); font: 400 19px/1.55 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(46px, 6.6vw, 84px); line-height: 1; font-weight: 900; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.center { text-align: center; }
.muted { color: var(--soft); }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: clamp(19px, 1.9vw, 22px); color: var(--soft); max-width: 520px; margin: 24px 0 0; }
.fine { font-size: 15px; color: var(--soft); margin: 16px 0 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; box-shadow: 0 12px 26px -12px rgba(1, 131, 255, 0.8); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-white { background: #fff; color: var(--blue-deep); box-shadow: none; }
.btn-white:hover { background: #EAF4FF; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); display: grid; place-items: center; }
.mark svg { width: 30px; height: 30px; }
.word { font-weight: 900; font-size: 26px; color: var(--ink); letter-spacing: -0.03em; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--soft); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } .nav-in .btn-small { margin-left: auto; } }

/* Hero: one phone, three real notices floating around it */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-art { position: relative; justify-self: center; padding: 30px 70px; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 131, 255, 0.28), transparent); z-index: -1; }
.phone { width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: #0B0B0F; box-shadow: var(--shadow), inset 0 0 0 2px #2A2A30; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: #0B0B0F; border-radius: 18px; padding: 12px 16px; font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05); }
.float b { color: var(--blue); margin-left: 6px; }
.f1 { top: 70px; left: -10px; }
.f2 { top: 46%; right: -40px; }
.f3 { bottom: 70px; left: -30px; }
.top { background: var(--top1); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.06em; border-radius: 6px; padding: 3px 7px; }
.ok { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; }
.bell { width: 22px; height: 22px; border-radius: 7px; background: #0B0B0F; position: relative; }
.bell::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px solid #fff; }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { padding: 20px 40px; }
  .f2 { right: -10px; }
}
@media (max-width: 480px) {
  .phone { width: 250px; }
  .float { font-size: 13px; padding: 9px 12px; }
  .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 0; }
}

/* Works with */
.works { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.works-in { display: flex; align-items: center; gap: 28px; min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
.works-in > span { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.works li { font-weight: 800; color: var(--ink); opacity: 0.55; font-size: 17px; }
@media (max-width: 700px) { .works-in { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Features: one bento grid, screens peeking up from the bottom of each tile */
.features { padding: 110px 0 90px; }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--radius); height: 520px; padding: 32px 32px 0; display: flex; flex-direction: column; }
.tile p { color: var(--soft); font-size: 17px; margin: 10px 0 0; }
.tile-copy { position: relative; z-index: 1; max-width: 460px; }
.peek { width: 250px; border-radius: 28px 28px 0 0; margin: auto auto 0; box-shadow: 0 -10px 40px -18px rgba(0, 0, 0, 0.35); border: 7px solid #0B0B0F; border-bottom: 0; transform: translateY(0); }
.tile.wide { grid-column: span 2; flex-direction: row; gap: 24px; align-items: flex-start; }
.tile.wide .tile-copy { flex: 1; padding-top: 8px; }
.tile.wide .peek { margin: 30px 10px 0 0; align-self: flex-end; width: 270px; }
.tile.blue { background: linear-gradient(160deg, #0183FF, #0059C2); }
.tile.blue h3, .tile.blue p { color: #fff; }
.tile.blue p { opacity: 0.92; }
.tile.family { grid-column: span 3; height: 480px; background: linear-gradient(160deg, #FFF0F7, #F4F4F6 60%); }
.tile.family .wide-peek { width: 640px; border-radius: 22px 22px 0 0; border-width: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.family { background: linear-gradient(160deg, #2A0F1F, #141416 60%); } }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .tile.family { grid-column: span 2; }
  .tile.family .wide-peek { width: 480px; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.family { grid-column: auto; flex-direction: column; height: 430px; padding: 26px 24px 0; }
  .tile.wide .peek, .peek { margin: auto auto 0; align-self: center; width: 210px; }
  .tile.family .wide-peek { width: 100%; max-width: 420px; }
  .tile.family { height: 440px; }
}
.also { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.also li { background: var(--panel); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 16px; color: var(--ink); }
.tag { font-size: 11px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; background: var(--blue); color: #fff; border-radius: 6px; padding: 3px 7px; margin-left: 4px; vertical-align: 2px; }

/* Tour */
.tour { padding: 40px 0 110px; }
.tour-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tour-copy p:not(.eyebrow):not(.fine) { color: var(--soft); font-size: 20px; margin: 18px 0 0; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0B0B0F; box-shadow: var(--shadow); position: relative; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame video[hidden] { display: none; }
.video-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: rgba(255, 255, 255, 0.85); background: radial-gradient(70% 90% at 50% 40%, #0B3A73, #0B0B0F); }
.video-soon[hidden] { display: none; }
.video-soon p { margin: 0; font-weight: 700; font-size: 18px; }
.play.big { border-left-width: 26px; border-top-width: 17px; border-bottom-width: 17px; color: #fff; margin-left: 8px; filter: drop-shadow(0 0 30px rgba(1, 131, 255, 0.8)); }
@media (max-width: 860px) { .tour-in { grid-template-columns: 1fr; gap: 28px; } }

/* Values: a dark band for the promises */
.values { background: #0B0B0F; color: #fff; padding: 110px 0; }
.values h2 { color: #fff; }
.values-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values h3 { color: #fff; font-size: 22px; }
.values h3::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--blue); margin-bottom: 18px; }
.values p { color: rgba(255, 255, 255, 0.75); font-size: 18px; margin: 10px 0 0; }
.text-link { display: inline-block; margin-top: 48px; color: #6CB8FF; font-weight: 700; text-decoration: none; padding: 8px 0; }
.text-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { padding: 110px 0; }
.faq-in { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 20px; color: var(--ink); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 500; color: var(--blue); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 22px; color: var(--soft); font-size: 18px; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; gap: 24px; } }

/* Final call */
.final { background: linear-gradient(160deg, #0183FF, #0059C2); padding: 100px 0; text-align: center; }
.final-in { display: grid; justify-items: center; gap: 28px; }
.final h2 { color: #fff; }

/* Footer */

/* Shared */
.section-lede { font-size: 20px; color: var(--soft); max-width: 640px; margin: 16px auto 0; }
.section-lede.light { color: rgba(255, 255, 255, 0.75); margin-left: 0; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 7px; background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/15px no-repeat; }
.phone.sm { width: 280px; }

/* How it works: steps on the left, the screen on the right */
.how { padding: 110px 0 40px; }
.how-in { margin-top: 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.how-steps button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; border-radius: 20px; min-height: 64px; }
.how-steps button:hover { background: var(--panel); }
.how-steps button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.how-steps button[aria-selected="true"] { background: var(--panel); box-shadow: inset 4px 0 0 var(--blue); }
.how-steps .n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--line); color: var(--ink); font-weight: 900; }
.how-steps button[aria-selected="true"] .n { background: var(--blue); color: #fff; }
.how-steps b { display: block; font-size: 21px; color: var(--ink); font-weight: 800; }
.how-steps .d { display: none; color: var(--soft); font-size: 17px; margin-top: 6px; }
.how-steps button[aria-selected="true"] .d { display: block; }
.how-art { justify-self: center; position: relative; }
.how-art::before { content: ""; position: absolute; inset: -10% -20%; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 131, 255, 0.2), transparent); z-index: -1; }
@media (max-width: 900px) { .how-in { grid-template-columns: 1fr; gap: 36px; } .how-steps .d { display: block; } }

/* Feature cards under the bento */
.cards { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { background: var(--panel); border-radius: 24px; padding: 26px; }
.fcard h3 { font-size: 20px; margin-top: 16px; }
.fcard p { color: var(--soft); font-size: 16px; margin: 8px 0 0; }
.ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; }
.ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i1 { background: #0183FF; } .i2 { background: #00B3FF; } .i3 { background: #5A48FB; } .i4 { background: #FF339F; }
.i5 { background: #A350FF; } .i6 { background: #0E9AA7; } .i7 { background: #1C1C1F; } .i8 { background: #00BA7F; }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Who it's for: tabs */
.for { padding: 110px 0; background: var(--panel); }
.for-tabs { margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.for-tabs button { font: 700 17px Figtree, sans-serif; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--page); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.for-tabs button[aria-selected="true"] { background: var(--ink); color: var(--page); box-shadow: none; }
.for-panel { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.for-panel[hidden] { display: none; }
.for-panel h3 { font-size: clamp(28px, 3vw, 38px); }
.for-panel .phone, .for-panel .tablet { justify-self: center; }
.tablet { border-radius: 28px; padding: 10px; background: #0B0B0F; box-shadow: var(--shadow); max-width: 560px; }
.tablet img { border-radius: 20px; width: 100%; }
@media (max-width: 900px) { .for-panel { grid-template-columns: 1fr; gap: 36px; } }

/* Works with */
.apps { padding: 110px 0 60px; }
.app-groups { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group { border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.group h3 { font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.group ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.group li { background: var(--panel); border-radius: 12px; padding: 8px 14px; font-weight: 700; font-size: 16px; color: var(--ink); }
@media (max-width: 900px) { .app-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .app-groups { grid-template-columns: 1fr; } }

/* Final + footer */
.final p { color: rgba(255, 255, 255, 0.9); font-size: 20px; margin: -10px 0 0; }
.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--soft); font-size: 16px; margin: 14px 0 0; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col h4 { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.foot-col a { color: var(--soft); text-decoration: none; font-size: 16px; padding: 6px 0; }
.foot-col a:hover { color: var(--ink); }
.foot-base { margin-top: 40px; color: var(--soft); font-size: 14px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: span 2; } }

.video-frame.tall { aspect-ratio: 9 / 16; width: min(360px, 86vw); justify-self: center; border-radius: 40px; border: 10px solid #0B0B0F; background: #0183FF; }
.video-frame.tall video { object-fit: contain; background: #0183FF; }
.tour { background: radial-gradient(900px 500px at 75% 50%, rgba(1, 131, 255, 0.12), transparent 70%); }
