/* KEYNEX — homepage v2.1. Editorial structure, real captures, #007AFF as the brand accent. */
.home {
  --brand: #007AFF;
  --brand-text: #007AFF;            /* large text only: 3.8:1 on the light background */
  --brand-soft: #E8F1FF;
  --brand-line: #C9DEFF;
  --stage: #E9EDF2;
  --stage-line: #D6DCE4;
  --ink-soft: #5B6575;
  --frame-edge: #3A414C;
  --rule: #D5DCE6;
  --band: #0B1220;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home { --brand-text: #3D94FF; --brand-soft: #0D1A2E; --brand-line: #1D3352; --stage: #080B10; --stage-line: #1C2430; --ink-soft: #97A3B4; --rule: #222B38; --band: #05080D; } }
:root[data-theme="dark"] .home { --brand-text: #3D94FF; --brand-soft: #0D1A2E; --brand-line: #1D3352; --stage: #080B10; --stage-line: #1C2430; --ink-soft: #97A3B4; --rule: #222B38; --band: #05080D; }

.home .site-header { border-bottom-color: transparent; }
.home main { overflow-x: clip; }

/* Type */
.display { font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -.034em; font-weight: 700; margin: 0; }
.display .line { display: block; }
.display .brand-line { color: var(--brand-text); }
.headline { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 700; margin: 0 0 .45em; }
.kicker { color: var(--ink-soft); }
.kicker.brand { color: var(--brand-text); }
.prose { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-soft); max-width: 34em; }
.prose strong { color: var(--text); font-weight: 600; }
.section-pad { padding: clamp(40px, 4.6vw, 66px) 0; }

/* Hero: title and copy side by side on desktop; on phones the product comes right after the title */
.hero2 { display: grid; grid-template-columns: minmax(16px, 1fr) minmax(0, 640px) minmax(0, 480px) minmax(16px, 1fr); column-gap: 0; padding-top: clamp(24px, 3.5vw, 44px); }
.hero2-title { grid-column: 2; grid-row: 1; padding-right: 40px; }
.hero2-side { grid-column: 3; grid-row: 1; align-self: end; }
.hero2-side p { margin: 0 0 .8em; }
.hero2 .stage { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(22px, 3vw, 36px); }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .hero2-title { grid-column: 2; padding-right: 0; }
  .hero2 .stage { grid-row: 2; margin-top: 22px; }
  .hero2-side { grid-column: 2; grid-row: 3; padding: 24px 0 8px; }
}

/* Device stage */
.stage { position: relative; background: var(--stage); border-top: 1px solid var(--stage-line); border-bottom: 1px solid var(--stage-line); }
.stage-inner { position: relative; width: min(1180px, 100% - 32px); margin-inline: auto; padding: clamp(20px, 2.6vw, 34px) 0 clamp(40px, 5vw, 64px); }
/* The macOS window capture already carries the system shadow. */
.mac-window { width: 74%; margin-left: 13%; }
.mac-window img { display: block; width: 100%; height: auto; }
/* iPhone 16 Pro, drawn in CSS: thin black border, titanium edge, Dynamic Island, side buttons.
   Proportions from the 402 × 874 pt screen; cqw = 1% of the phone's width. */
.phone { container-type: inline-size; position: absolute; left: 0; bottom: clamp(18px, 4vw, 48px); width: 25%; padding: 1.35%; border-radius: 17.5% / 8.1%; background: #050506;
  box-shadow: 0 0 0 1.5px #74777E, 0 0 0 3px #3A3C41, 0 0 0 3.5px #1C1D20, 0 30px 60px -10px rgba(8, 11, 16, .45), 0 10px 20px rgba(8, 11, 16, .18); }
.phone picture { display: block; position: relative; }
.phone img { display: block; width: 100%; height: auto; border-radius: 15.2% / 7%; }
.phone::before { content: ""; position: absolute; z-index: 1; top: 4cqw; left: 50%; transform: translateX(-50%); width: 30.5cqw; height: 9cqw; border-radius: 999px; background: #000; }
.phone::after, .phone picture::before, .phone picture::after { content: ""; position: absolute; width: 1.1cqw; border-radius: 2px 0 0 2px; background: #55585E; }
.phone::after { left: calc(-3.5px - 1.1cqw); top: 37cqw; height: 7cqw; }
.phone picture::before { left: calc(-1.35cqw - 3.5px - 1.1cqw); top: 53cqw; height: 14cqw; }
.phone picture::after { left: calc(-1.35cqw - 3.5px - 1.1cqw); top: 70cqw; height: 14cqw; }

/* Apple Watch, drawn in CSS: aluminium case, black border around the display, Digital Crown, side button, band ends. */
.watch { container-type: inline-size; position: absolute; right: 4%; bottom: clamp(10px, 2.5vw, 30px); width: 13%; isolation: isolate; }
.watch picture { display: block; position: relative; padding: 7% 7.5%; border-radius: 31% / 26%; background: #050506;
  box-shadow: 0 0 0 2px #686B72, 0 0 0 4px #2E3035, 0 0 0 4.5px #17181B, 0 26px 50px -8px rgba(8, 11, 16, .45), 0 8px 16px rgba(8, 11, 16, .18); }
.watch::before { content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); top: -17%; bottom: -17%; width: 72%; border-radius: 9cqw; background: #1B1D22; box-shadow: inset 0 0 0 1px #2A2D33;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.watch::after { content: ""; position: absolute; right: calc(-4.5px - 5.5cqw); top: 24cqw; width: 5.5cqw; height: 17cqw; border-radius: 0 1.6cqw 1.6cqw 0;
  background: repeating-linear-gradient(180deg, #7C7F86 0 1.5px, #484B51 1.5px 3px); }
.watch picture::after { content: ""; position: absolute; right: calc(-4.5px - 2.6cqw); top: 55%; width: 2.6cqw; height: 22cqw; border-radius: 0 1cqw 1cqw 0; background: #484B51; }
.watch img { display: block; width: 100%; height: auto; border-radius: 24% / 20%; background: #000; }

.stage .phone { left: 1%; bottom: clamp(16px, 3vw, 40px); width: 23%; }
.stage .watch { right: 3%; top: 26%; bottom: auto; width: 13.5%; }
.stage-caption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: .8rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) {
  .mac-window { width: 100%; margin-left: 0; }
  .stage .phone { position: relative; left: auto; bottom: auto; width: 46%; margin: -20% 0 0 4%; }
  .stage .watch { top: auto; width: 31%; right: 6%; bottom: 64px; }
  .stage-inner { padding-bottom: 18px; }
  .stage-caption { position: static; margin-top: 20px; padding: 0 8px; }
}

/* Demonstration band: the one tinted surface on the page */
.demo-band { background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.otp-card { background: #141A24; color: #EEF2F7; border-radius: 26px; padding: 24px 24px 22px; box-shadow: 0 0 0 1px #263040, 0 24px 50px -12px rgba(0, 40, 100, .35); }
.otp-head { display: flex; align-items: center; gap: 14px; }
.otp-avatar { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #8A4A26; color: #fff; font-weight: 700; font-size: 1.05rem; }
.otp-name { font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.otp-account { color: #A9B4C4; font-size: .95rem; }
.otp-demo-tag { margin-left: auto; align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #F5DFA6; border: 1px solid #6B5A2A; border-radius: 999px; padding: .25em .7em; }
.otp-row { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.otp-code { font: 600 clamp(2.4rem, 6vw, 3rem)/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin-right: auto; }
.otp-timer { position: relative; width: 48px; height: 48px; flex: none; }
.otp-timer svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.otp-timer circle { fill: none; stroke-width: 3.2; }
.otp-timer .track { stroke: #2A3445; }
.otp-timer .value { stroke: #4C9BFF; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.otp-card.expiring .otp-timer .value { stroke: #F2B53A; }
.otp-timer span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .9rem; font-weight: 600; color: #C9D3E0; font-variant-numeric: tabular-nums; }
.otp-copy { appearance: none; border: 0; width: 48px; height: 48px; border-radius: 14px; background: #1E2838; color: #4C9BFF; display: grid; place-items: center; cursor: pointer; }
.otp-copy:hover { background: #253247; }
.otp-copy svg { width: 22px; height: 22px; }
.otp-copy .done { display: none; }
.otp-card.copied .otp-copy { background: #13321F; color: #4ADE80; }
.otp-card.copied .otp-copy .idle { display: none; }
.otp-card.copied .otp-copy .done { display: block; }
.otp-copy[hidden] { display: none; }
.otp-status { min-height: 1.4em; margin: 12px 0 0; font-size: .88rem; color: #A9B4C4; }
.otp-note { font-size: .85rem; color: var(--ink-soft); margin: 14px 4px 0; }
.otp-card:not(.live) .otp-timer .value { stroke-dasharray: 97.4; stroke-dashoffset: 40; }
@media (prefers-reduced-motion: no-preference) {
  .otp-card.renewed .otp-code { animation: code-in .35s ease both; }
  @keyframes code-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .otp-timer .value { transition: none; } }

/* Principles: three statements in one row */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 28px 0 0; padding: 0; list-style: none; }
.principles li { border-top: 2px solid var(--text); padding-top: 18px; margin: 0; }
.principles li:first-child { border-top-color: var(--brand); }
.principles .big { display: block; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin-bottom: .45em; }
.principles p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; gap: 26px; } }

/* Ecosystem: a composition of real interfaces, each saying what that device is for */
.eco { background: var(--stage); border-top: 1px solid var(--stage-line); border-bottom: 1px solid var(--stage-line); }
.eco-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(20px, 3vw, 40px); align-items: start; margin-top: 26px; }
.eco-item { margin: 0; }
.eco-item h3 { font-size: 1.15rem; margin: 18px 0 .3em; }
.eco-item p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.eco-phone { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.eco-phone .phone { position: relative; left: auto; bottom: auto; width: 86%; }
.eco-mac { grid-column: 4 / span 9; }
.eco-watch { grid-column: 4 / span 5; display: grid; grid-template-columns: 34% 1fr; gap: 20px; align-items: center; }
.eco-watch .watch { position: relative; right: auto; bottom: auto; top: auto; width: 100%; margin: 12% 0; }
.eco-watch h3 { margin-top: 0; }
.eco-ipad { grid-column: 9 / span 4; align-self: center; border-left: 1px solid var(--rule); padding-left: 24px; }
.eco-note { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; margin: 8px 0 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) {
  .eco-phone, .eco-mac, .eco-watch, .eco-ipad, .eco-note { grid-column: 1 / -1; grid-row: auto; }
  .eco-ipad { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; }
  .eco-phone .phone { width: 62%; margin-inline: auto; }
}
.detail { border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--frame-edge), 0 24px 50px -14px rgba(8, 11, 16, .35); background: #0B0F15; }
.detail img { display: block; width: 100%; height: auto; }

/* AutoFill and Browser Bridge, side by side and kept apart */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 22px; }
.paths > div { border-top: 1px solid var(--rule); padding-top: 18px; }
.paths h3 { font-size: 1.25rem; margin: 0 0 .2em; }
.paths .where { display: block; font-size: .85rem; font-weight: 600; color: var(--brand-text); margin-bottom: .8em; letter-spacing: .02em; }
.paths ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.paths li + li { margin-top: .45em; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; gap: 28px; } }

/* Full-bleed band with one enlarged interface detail */
.zoom-band { background: var(--band); color: #EEF2F7; padding: clamp(40px, 4.6vw, 64px) 0; }
.zoom-band .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.zoom-band .shot-card picture { box-shadow: 0 0 0 1px #263040, 0 30px 60px -16px rgba(0, 0, 0, .6); }
.zoom-band figcaption, .zoom-band p { color: #A9B4C4; }
.zoom-band .big-quote { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 650; color: #fff; margin: 0 0 .6em; }
.zoom-band .big-quote em { font-style: normal; color: #4C9BFF; }
@media (max-width: 860px) { .zoom-band .wrap { grid-template-columns: 1fr; } }

/* Text + capture chapters */
.chapter { border-top: 1px solid var(--rule); }
.chapter-grid { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
@media (max-width: 860px) { .chapter-grid { grid-template-columns: 1fr; } }
.crop { border-radius: 22px; overflow: hidden; background: #0B0F15; box-shadow: 0 0 0 1px var(--frame-edge); margin: 0; }
.crop img { display: block; width: 100%; height: auto; }
.inline-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.inline-facts li { margin: 0; color: var(--ink-soft); }
.inline-facts b { color: var(--text); font-weight: 600; }
.shot-card { margin: 0; }
.shot-card picture { display: block; border-radius: 18px; overflow: hidden; background: #0B0F15; box-shadow: 0 0 0 1px var(--frame-edge), 0 24px 50px -14px rgba(8, 11, 16, .3); }
.shot-card img { display: block; width: 100%; height: auto; }
.shot-card figcaption { margin-top: 12px; font-size: .85rem; color: var(--ink-soft); }
.recovery-centered { text-align: left; }
.recovery-centered .shot-card { max-width: 780px; margin: 26px auto 0; padding: 0 16px; }

/* Native by design */
.native { border-top: 1px solid var(--rule); }
.frameworks { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 16px 0 18px; padding: 0; list-style: none; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 650; letter-spacing: -.025em; }
.frameworks li { margin: 0; }
.frameworks li:not(:last-child)::after { content: "·"; color: var(--brand); margin: 0 .45em; font-weight: 700; }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 40px; margin: 18px 0 14px; padding: 0; list-style: none; font-size: .95rem; }
.keys li { margin: 0; color: var(--ink-soft); }
.keys b { display: block; color: var(--text); font-weight: 600; margin-bottom: .15em; }
@media (max-width: 760px) { .keys { grid-template-columns: 1fr; } }

/* Closing, with the honest status in one line */
.closing { padding: clamp(56px, 7vw, 96px) 0; text-align: center; border-top: 1px solid var(--rule); }
.closing .mark { width: 64px; height: 64px; margin: 0 auto 26px; display: block; }
.closing .display { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.closing .display .brand-line { color: var(--brand-text); }
.closing .availability { justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.closing p.more { margin: 12px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .stage .mac-window, .stage .phone, .stage .watch { animation: settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .stage .phone { animation-delay: .12s; }
  .stage .watch { animation-delay: .22s; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Vaults and recovery side by side: one section, two stories */
.pair { border-top: 1px solid var(--rule); }
.pair-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pair-grid article > figure { margin-top: 22px; }
.pair-grid .crop { max-width: 520px; }
.headline.small { font-size: clamp(1.7rem, 3vw, 2.4rem); }
@media (max-width: 860px) { .pair-grid { grid-template-columns: 1fr; } }

/* Ecosystem in one row on wide screens */
@media (min-width: 861px) {
  .eco-phone { grid-column: 1 / span 3; grid-row: 1; }
  .eco-mac { grid-column: 4 / span 6; grid-row: 1; }
  .eco-watch { grid-column: 10 / span 3; grid-row: 1; display: block; }
  .eco-watch .watch { width: 70%; margin: 10% auto 8%; }
  .eco-watch h3 { margin-top: 18px; }
  .eco-ipad { grid-column: 1 / span 4; grid-row: 2; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; align-self: start; }
  .eco-note { grid-column: 5 / span 8; grid-row: 2; border-top: 1px solid var(--rule); margin: 0; padding-top: 14px; }
  .eco-ipad h3 { margin-top: 0; }
}

/* v2.1 rhythm: tighter on every screen */
@media (min-width: 861px) { .eco-phone .phone { width: 74%; } }
.native .prose { margin-bottom: 0; }
.keys { gap: 10px 36px; }
.closing { padding: clamp(48px, 6vw, 84px) 0; }
.closing .mark { width: 56px; height: 56px; margin-bottom: 20px; }
@media (max-width: 860px) {
  .eco-phone .phone { width: 52%; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; font-size: .9rem; }
  .demo-grid { gap: 20px; }
  .demo-grid .prose + .prose { display: none; }
  .otp-note { margin-top: 10px; }
  .principles { gap: 18px; }
  .principles .big { font-size: 1.5rem; }
}
@media (max-width: 600px) { .hero2 .kicker { font-size: .72rem; letter-spacing: .1em; } }
