:root {
  color-scheme: light dark;
  --page: #f4f7f8;
  --surface: #fcfdfd;
  --surface-2: #e9eef2;
  --text: #142022;
  --muted: #58666a;
  --line: #cfd8db;
  --accent: #0f6e63;
  --accent-strong: #0a574f;
  --accent-text: #f7fffd;
  --focus: #21a594;
  --danger: #a33838;
  --success: #0b6b4e;
  --shadow: rgba(27, 55, 61, 0.12);
  --radius-card: 20px;
  --radius-control: 12px;
  --header-h: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 72% 4%, rgba(112, 158, 177, 0.18), transparent 34rem);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, input, textarea, summary, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--page);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(16px) saturate(130%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  letter-spacing: -0.03em;
}

.header-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.header-nav a, .footer-links a { text-decoration: none; color: var(--muted); }
.header-nav a:hover, .footer-links a:hover { color: var(--text); }
.header-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

main > section, .site-footer { width: min(100% - 48px, 1380px); margin-inline: auto; }

.hero {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.35fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 28px 48px;
  padding: 58px 0 28px;
}

.hero-copy { position: relative; z-index: 1; min-width: 0; align-self: center; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(62px, 6.7vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 760;
}

.hero-lead {
  max-width: 450px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.45;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button-primary:hover { background: var(--accent-strong); }
.button:active { transform: scale(0.98); }
.button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent);
  outline-offset: 3px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1586 / 992;
  align-self: center;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-card);
  box-shadow: 0 34px 80px var(--shadow);
}

.hero-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; text-align: right; }

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts > div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-facts > div:first-child { padding-left: 0; border-left: 0; }
.hero-facts dt { color: var(--muted); font-size: 13px; }
.hero-facts dd { margin: 5px 0 0; font-size: clamp(18px, 2vw, 24px); font-weight: 720; font-variant-numeric: tabular-nums; }

.preorder-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 7vw, 112px);
  padding-block: 132px;
  align-items: start;
}

.preorder-intro { position: sticky; top: calc(var(--header-h) + 38px); }

.preorder-section h2, .colors-section h2, .timeline-section h2, .details-section h2, .faq-section h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.preorder-intro > p, .section-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.order-summary { margin-top: 42px; padding-top: 8px; border-top: 1px solid var(--line); }
.order-summary > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-summary span { color: var(--muted); font-size: 14px; }
.order-summary strong { text-align: right; font-variant-numeric: tabular-nums; }

.preorder-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 28px 80px var(--shadow);
}

.form-row.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preorder-form label > span:first-child, .color-fieldset legend { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 680; }
.preorder-form label small { color: var(--muted); font-weight: 450; }

.preorder-form input[type="text"], .preorder-form input[type="tel"], .preorder-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--page);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.preorder-form textarea { resize: vertical; min-height: 92px; }
.preorder-form input::placeholder, .preorder-form textarea::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
.preorder-form input:focus, .preorder-form textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 14%, transparent); outline: none; }
.preorder-form [aria-invalid="true"] { border-color: var(--danger); }

.color-fieldset { min-width: 0; margin: 2px 0 0; padding: 0; border: 0; }
.field-help { margin: -2px 0 12px; color: var(--muted); font-size: 13px; }
.color-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

.color-option {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--page);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.color-option input { position: absolute; opacity: 0; pointer-events: none; }
.color-option:has(input:checked) { border-color: var(--accent); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.color-option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 3px; }
.color-option > span:last-child { margin: 0; font-size: 11px; font-weight: 650; line-height: 1.2; }

.swatch { width: 31px; height: 31px; display: block; border: 1px solid rgba(40, 50, 55, 0.2); border-radius: 50%; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.72); }
.swatch-any { background: conic-gradient(#e5e8e7 0 25%, #353738 0 50%, #6f354a 0 75%, #b7d2e4 0); }
.swatch-silver { background: linear-gradient(145deg, #fafafa, #aeb6b9); }
.swatch-graphite { background: linear-gradient(145deg, #555a5d, #1f2223); }
.swatch-cherry { background: linear-gradient(145deg, #9a5870, #422331); }
.swatch-blue { background: linear-gradient(145deg, #e4f2fa, #8fb6d1); }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 13px; cursor: pointer; }
.consent input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent); }
.consent > span { margin: 0 !important; font-weight: 450 !important; }
.consent a { color: var(--text); text-underline-offset: 2px; }
.submit-button { width: 100%; }
.button-loading { display: none; }
.preorder-form.is-loading .button-label { display: none; }
.preorder-form.is-loading .button-loading { display: inline; }
.preorder-form.is-loading .submit-button { cursor: wait; opacity: 0.82; }
.form-note { margin: -8px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status { min-height: 0; font-size: 14px; font-weight: 620; }
.form-status:not(:empty) { padding: 13px 14px; border-radius: var(--radius-control); }
.form-status.is-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.form-status.is-success { background: color-mix(in srgb, var(--success) 11%, transparent); color: var(--success); }
.form-status:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.colors-section { padding-block: 110px 128px; }
.section-heading { max-width: 820px; }
.color-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.color-line > div { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 22px; border-bottom: 1px solid var(--line); }
.large-swatch { width: min(15vw, 148px); aspect-ratio: 1; margin-bottom: 18px; border-radius: 50%; box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.52), 0 20px 44px var(--shadow); }
.color-line strong { font-size: 17px; }
.color-line small { color: var(--muted); }
.source-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; }

.timeline-section { padding-block: 116px; }
.timeline { max-width: 1000px; margin: 62px 0 0 auto; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: minmax(150px, 0.48fr) 1.52fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--accent); font-weight: 730; font-variant-numeric: tabular-nums; }
.timeline h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.025em; }
.timeline p { max-width: 640px; margin: 0; color: var(--muted); }

.details-section { padding-block: 118px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; grid-auto-rows: minmax(250px, auto); gap: 16px; margin-top: 66px; }
.feature-grid article { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.feature-grid h3 { max-width: 360px; margin: 0; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.05; letter-spacing: -0.035em; }
.feature-grid p { max-width: 420px; margin: 14px 0 0; color: var(--muted); }
.feature-main { grid-row: span 2; background: linear-gradient(160deg, var(--surface), var(--surface-2)) !important; }
.feature-number { margin: auto 0 34px; font-size: clamp(72px, 9vw, 138px); font-weight: 760; line-height: 0.85; letter-spacing: -0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.feature-dark { background: #172024 !important; color: #eef5f5; }
.feature-dark p { color: #b7c4c7; }
.feature-image { min-height: 360px; grid-row: span 2; background: var(--surface) url("../img/iphone-18-pro-concept-v2.webp") 62% center / cover no-repeat !important; }

.faq-section { padding-block: 120px 160px; }
.faq-list { max-width: 900px; margin: 62px 0 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 46px 24px 0; list-style: none; font-size: clamp(18px, 2vw, 23px); font-weight: 680; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 22px; color: var(--accent); font-size: 28px; font-weight: 420; line-height: 1; transition: transform 180ms ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { max-width: 720px; margin: -6px 0 24px; color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 0.8fr 0.7fr 1.2fr; gap: 60px; padding-block: 58px 120px; border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: 13px; }
.footer-links { display: grid; align-content: start; justify-items: start; gap: 11px; font-size: 14px; }
.legal-note { max-width: 640px; margin: 0; }

.sticky-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  width: min(calc(100% - 32px), 760px);
  transform: translate(-50%, calc(100% + 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 20px 60px var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}
.sticky-bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.sticky-bar > div { min-width: 0; display: grid; }
.sticky-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sticky-bar span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sticky-bar .button { min-height: 44px; padding: 11px 18px; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 560ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto; padding-top: 44px; }
  .hero-copy { max-width: 720px; }
  .hero h1 { font-size: clamp(66px, 14vw, 110px); }
  .hero-visual { margin: -20px 0 0; }
  .hero-visual img { min-height: 0; }
  .preorder-section { grid-template-columns: 1fr; gap: 42px; }
  .preorder-intro { position: static; }
  .order-summary { max-width: 680px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-main, .feature-image { grid-row: span 1; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .legal-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; --radius-card: 16px; --radius-control: 10px; }
  .site-header { min-height: var(--header-h); padding-inline: 16px; }
  .brand > span:last-child { display: none; }
  .header-nav { gap: 16px; }
  .header-nav > a:not(.header-phone) { display: none; }
  main > section, .site-footer { width: min(100% - 32px, 1380px); }
  .hero { min-height: auto; gap: 28px; padding: 40px 0 20px; }
  .hero h1 { font-size: clamp(58px, 19vw, 88px); line-height: 0.9; }
  .hero-lead { margin: 22px 0 24px; font-size: 18px; }
  .hero-copy .button { width: 100%; }
  .hero-visual { margin: 0 -16px; }
  .hero-visual img { border-radius: 0; }
  .hero-visual figcaption { padding: 0 16px; text-align: left; }
  .hero-facts { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-facts > div, .hero-facts > div:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero-facts > div:last-child { border-bottom: 0; }
  .hero-facts dd { font-size: 19px; }
  .preorder-section, .colors-section, .timeline-section, .details-section { padding-block: 88px; }
  .faq-section { padding-block: 88px 132px; }
  .preorder-section h2, .colors-section h2, .timeline-section h2, .details-section h2, .faq-section h2 { font-size: clamp(38px, 12vw, 56px); }
  .preorder-intro > p, .section-heading > p:not(.eyebrow) { font-size: 16px; }
  .preorder-form { padding: 22px 16px; }
  .form-row.two-columns { grid-template-columns: 1fr; }
  .color-options { grid-template-columns: repeat(3, 1fr); }
  .color-line { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
  .color-line > div { min-height: 190px; padding: 14px 6px; }
  .large-swatch { width: min(30vw, 126px); }
  .timeline { margin-top: 44px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .feature-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(230px, auto); margin-top: 44px; }
  .feature-main, .feature-image { min-height: 320px; }
  .faq-list { margin-top: 44px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; padding-bottom: 116px; }
  .legal-note { grid-column: auto; }
  .sticky-bar { bottom: 10px; width: calc(100% - 20px); padding-left: 14px; }
  .sticky-bar > div { max-width: 45%; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #11171a;
    --surface: #182125;
    --surface-2: #222d32;
    --text: #eef4f4;
    --muted: #aebdc1;
    --line: #344348;
    --accent: #4bb4a5;
    --accent-strong: #65c5b7;
    --accent-text: #071311;
    --focus: #68d1c1;
    --danger: #ff9898;
    --success: #7bdab8;
    --shadow: rgba(0, 0, 0, 0.28);
  }
  body::before { background: radial-gradient(circle at 72% 4%, rgba(82, 136, 158, 0.2), transparent 34rem); }
  .hero-visual img { filter: brightness(0.86) saturate(0.9); }
  .swatch { border-color: rgba(255, 255, 255, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header, .sticky-bar { background: var(--surface); }
}
