:root {
  --ink: #09172f;
  --muted: #66738a;
  --paper: #f7f9fd;
  --surface: #ffffff;
  --line: #dce5f1;
  --blue: #1767f6;
  --aqua: #36cfbe;
  --shadow: 0 22px 65px rgb(10 39 91 / 12%);
  color-scheme: light dark;
  font-family: "Avenir Next", Avenir, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
.site-header, .hero, .content-section, .app-gallery, .fit-section, .privacy-summary, .disclosure, .footer-inner, .principle-inner, .legal-page, .calculator-callout, .guide-preview, .beta-banner, .page-shell { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: ui-rounded, "Avenir Next", Avenir, sans-serif; font-size: 22px; font-weight: 850; letter-spacing: -0.065em; }
.brand img { border-radius: 11px; }
.brand span span { color: var(--blue); }
.site-header nav, footer nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 700; }
.nav-button { padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.hero { min-height: 710px; display: grid; grid-template-columns: 1fr 0.95fr; align-items: center; gap: 70px; padding-block: 70px 100px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.kicker span { width: 18px; height: 2px; background: currentColor; }
h1, h2, h3 { letter-spacing: -0.055em; }
h1 { margin: 22px 0 25px; font-size: clamp(56px, 7vw, 88px); line-height: .95; }
h1 em { color: var(--blue); font-style: normal; }
.lede { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 19px; border-radius: 14px; font-size: 14px; font-weight: 800; }
.primary-button { color: white; background: var(--blue); box-shadow: 0 13px 30px rgb(23 103 246 / 25%); }
.secondary-button { border: 1px solid var(--line); background: var(--surface); }
.primary-button:hover, .nav-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.secondary-button:hover, .unit-preview-grid a:hover { border-color: var(--blue); transform: translateY(-2px); }
.primary-button, .secondary-button, .nav-button, .unit-preview-grid a { transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease; }
.text-link { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 13px; font-weight: 800; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 35px 0 0; list-style: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.trust-list li::before { content: "✓"; margin-right: 6px; color: var(--aqua); font-weight: 900; }
.device-stage { min-height: 590px; position: relative; display: grid; place-items: center; }
.device-stage::before { content: ""; position: absolute; inset: 7%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, #dceaff, transparent 70%); }
.device-frame { width: 286px; height: 590px; border: 7px solid #0b1830; border-radius: 44px; background: #fff; overflow: hidden; box-shadow: 0 40px 80px rgb(4 20 60 / 25%); }
.device-frame img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { position: absolute; width: 205px; padding: 17px; display: flex; flex-direction: column; gap: 5px; border: 1px solid rgb(255 255 255 / 75%); border-radius: 17px; background: rgb(255 255 255 / 86%); box-shadow: 0 17px 38px rgb(22 46 96 / 14%); backdrop-filter: blur(14px); font-size: 11px; }
.detail-card span { color: #69768a; font-size: 9px; line-height: 1.5; }
.detail-card-top { right: -8px; top: 92px; }
.detail-card-bottom { left: -16px; bottom: 76px; }
.calculator-callout { margin-bottom: 100px; padding: 42px; display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: center; border: 1px solid #cbdcf5; border-radius: 28px; background: linear-gradient(135deg, #edf4ff, #f7fbff); box-shadow: var(--shadow); }
.calculator-callout h2, .beta-banner h2 { margin: 12px 0; font-size: 36px; }
.calculator-callout p:last-child, .beta-banner p:last-child { max-width: 700px; margin-bottom: 0; color: #5f6e85; font-size: 14px; line-height: 1.75; }
.principle { padding-block: 88px; color: #f7f9ff; background: #09172f; }
.principle-inner { display: grid; grid-template-columns: .55fr 1.2fr .8fr; gap: 60px; align-items: start; }
.section-label { color: var(--aqua); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.principle h2 { margin: 0; font-size: 40px; line-height: 1.1; }
.principle h2 span { color: #8794aa; }
.principle-inner > p:last-child { margin: 0; color: #b3bed0; font-size: 14px; line-height: 1.8; }
.app-gallery { padding-block: 110px 35px; }
.app-gallery .section-heading-row > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.app-gallery h2 { max-width: 670px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.screenshot-grid figure { margin: 0; }
.screenshot-device { width: min(100%, 296px); aspect-ratio: 1206 / 2622; margin-inline: auto; overflow: hidden; border: 6px solid #0b1830; border-radius: 42px; background: white; box-shadow: 0 30px 65px rgb(4 20 60 / 20%); }
.screenshot-device img { width: 100%; height: 100%; display: block; object-fit: cover; }
.screenshot-grid figcaption { max-width: 296px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 5px; }
.screenshot-grid figcaption b { font-size: 16px; }
.screenshot-grid figcaption span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.content-section { padding-block: 115px; }
.content-section > h2, .fit-section h2, .privacy-summary h2 { margin: 18px 0 45px; font-size: 52px; line-height: 1.05; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.steps article { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.steps b { color: var(--blue); font-size: 10px; }
.steps h3 { margin: 50px 0 10px; font-size: 25px; }
.steps p, .fit-section > div > p:last-child, .privacy-summary > div > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.fit-section { width: 100%; max-width: none; padding: 100px max(22px, calc((100vw - 1160px) / 2)); display: grid; grid-template-columns: .85fr 1.15fr; gap: 95px; align-items: center; background: #eaf1fc; }
.fit-section h2 { margin-bottom: 18px; }
.factors { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #c7d3e4; border-left: 1px solid #c7d3e4; }
.factors span { min-height: 100px; display: flex; align-items: end; padding: 18px; border-right: 1px solid #c7d3e4; border-bottom: 1px solid #c7d3e4; font-size: 15px; font-weight: 750; }
.guide-preview { padding-block: 110px 35px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading-row h2 { margin: 16px 0 0; font-size: 48px; }
.unit-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.unit-preview-grid a { min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: end; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.unit-preview-grid b { color: var(--blue); font-size: 38px; letter-spacing: -.06em; }
.unit-preview-grid span { margin-top: 8px; font-weight: 800; }
.unit-preview-grid small { margin-top: 4px; color: var(--muted); }
.privacy-summary { padding-block: 105px; display: grid; grid-template-columns: 80px .95fr 1.05fr; gap: 45px; align-items: start; }
.privacy-summary h2 { margin-bottom: 0; font-size: 40px; }
.shield { width: 64px; height: 64px; display: grid; place-items: center; color: var(--aqua); background: #09172f; border-radius: 20px; font-size: 28px; font-weight: 900; }
.beta-banner { margin-bottom: 28px; padding: 42px; display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: center; color: white; border-radius: 28px; background: linear-gradient(135deg, #0a1a39 0%, #113c88 68%, #1767f6 130%); }
.beta-banner .kicker { color: #5ce3d4; }
.beta-banner p:last-child { color: #c6d5ef; }
.disclosure { margin-bottom: 100px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.disclosure strong { color: var(--blue); }
.disclosure p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; color: var(--muted); font-size: 11px; }
.footer-inner nav { justify-self: end; font-size: 11px; }
.footer-brand { color: var(--ink); font-size: 19px; }

.legal-page { max-width: 780px; padding-block: 70px 110px; }
.legal-page h1 { font-size: 54px; }
.legal-page h2 { margin-top: 38px; font-size: 25px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 14px; line-height: 1.8; }
.legal-page .updated { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.legal-page a:not(.brand), .article-page a:not(.brand) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.page-shell { padding-block: 62px 110px; }
.page-intro { max-width: 830px; margin-bottom: 48px; }
.page-intro h1 { margin-bottom: 22px; font-size: clamp(50px, 7vw, 78px); }
.page-intro p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr); gap: 28px; align-items: start; }
.calculator-panel, .result-panel, .article-card, .size-card, .decision-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.calculator-panel { padding: 28px; }
.calculator-panel h2, .result-panel h2 { margin: 0; font-size: 28px; }
.calculator-panel > p, .result-panel > p { color: var(--muted); line-height: 1.65; }
.inventory-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.inventory-row { min-height: 76px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 16px; }
.inventory-row strong { display: block; font-size: 14px; }
.inventory-row small { display: block; margin-top: 3px; color: var(--muted); }
.stepper { display: grid; grid-template-columns: 34px 35px 34px; align-items: center; }
.stepper button { width: 34px; height: 34px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); border-radius: 9px; font-size: 18px; cursor: pointer; }
.stepper input { width: 35px; border: 0; color: var(--ink); background: transparent; text-align: center; font: inherit; font-weight: 800; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { appearance: none; }
.preference-field { margin-top: 24px; }
.preference-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.preference-field select { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font: inherit; }
.result-panel { position: sticky; top: 20px; padding: 28px; overflow: hidden; box-shadow: var(--shadow); }
.result-panel::before { content: ""; position: absolute; width: 200px; height: 200px; right: -85px; top: -85px; border-radius: 50%; background: var(--blue); opacity: .08; }
.result-size { margin-block: 22px 4px; color: var(--blue); font-size: 64px; font-weight: 850; letter-spacing: -.075em; }
.result-meta { color: var(--muted); font-size: 13px; }
.result-bar { height: 8px; margin-block: 25px 12px; overflow: hidden; border-radius: 999px; background: var(--line); }
.result-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--aqua)); transition: width 220ms ease; }
.result-details { padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.7; }
.result-details li { padding-block: 9px; border-bottom: 1px solid var(--line); }
.result-details b { color: var(--ink); }
.result-panel .primary-button { width: 100%; margin-top: 15px; }
.calculator-note { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.article-page { max-width: 900px; }
.article-page h2 { margin-top: 54px; font-size: 36px; }
.article-page h3 { margin-top: 30px; font-size: 23px; }
.article-page p, .article-page li { color: var(--muted); font-size: 16px; line-height: 1.8; }
.article-page strong { color: var(--ink); }
.article-card { margin-block: 32px; padding: 26px; }
.article-card h2, .article-card h3 { margin-top: 0; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-block: 30px; }
.decision-card { padding: 22px; }
.decision-card h3 { margin: 0 0 8px; font-size: 19px; }
.decision-card p { margin: 0; font-size: 13px; }
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.size-card { scroll-margin-top: 20px; padding: 28px; }
.size-card h2 { margin: 0; color: var(--blue); font-size: 42px; }
.size-card .size-stats { margin: 7px 0 18px; color: var(--ink); font-size: 13px; font-weight: 800; }
.size-card h3 { margin-top: 22px; font-size: 18px; }
.size-card p, .size-card li { font-size: 14px; }
.size-card ul { padding-left: 18px; }
.comparison-table { width: 100%; margin-block: 26px; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison-table th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue), transparent 55%); outline-offset: 3px; }

@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f6ff; --muted: #9ca9bf; --paper: #07101f; --surface: #0e1a2d; --line: #24324a; --blue: #6595ff; --aqua: #3de1cf; }
  .device-stage::before { background: radial-gradient(circle, #10385b, transparent 70%); }
  .detail-card { border-color: rgb(100 128 170 / 25%); background: rgb(14 26 45 / 88%); }
  .detail-card span { color: #9ba9c0; }
  .principle { color: #08142c; background: #edf3ff; }
  .principle h2 span { color: #78869d; }
  .principle-inner > p:last-child { color: #59677e; }
  .fit-section { background: #0a1628; }
  .factors, .factors span { border-color: #263752; }
  .shield { background: #edf3ff; color: #087b72; }
  .calculator-callout { border-color: #253b5d; background: linear-gradient(135deg, #0d1d33, #102542); }
  .calculator-callout p:last-child { color: var(--muted); }
}

@media (max-width: 900px) {
  .hero, .principle-inner, .fit-section, .privacy-summary, .calculator-callout, .beta-banner, .calculator-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 45px; }
  .principle-inner, .privacy-summary { gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .unit-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { gap: 16px; }
  .decision-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .steps h3 { margin-top: 28px; }
  .footer-inner { grid-template-columns: 1fr; padding-block: 28px; }
  .footer-inner nav { justify-self: start; }
  .site-header nav a:not(.nav-button) { display: none; }
}

@media (max-width: 560px) {
  .site-header, .hero, .content-section, .app-gallery, .privacy-summary, .disclosure, .footer-inner, .principle-inner, .legal-page, .calculator-callout, .guide-preview, .beta-banner, .page-shell { width: min(100% - 28px, 1160px); }
  .hero { padding-bottom: 70px; }
  h1 { font-size: 52px; }
  .lede { font-size: 15px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .actions .primary-button, .actions .secondary-button { width: 100%; }
  .detail-card { display: none; }
  .content-section > h2, .fit-section h2 { font-size: 39px; }
  .factors { grid-template-columns: repeat(2, 1fr); }
  .calculator-callout, .beta-banner { padding: 28px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .section-heading-row h2 { font-size: 38px; }
  .unit-preview-grid, .inventory-grid, .size-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 54px; }
  .unit-preview-grid a { min-height: 155px; }
  .calculator-panel, .result-panel { padding: 20px; }
  .result-size { font-size: 54px; }
  .legal-page h1 { font-size: 42px; }
  .site-header nav { gap: 10px; }
  .site-header nav a:not(.nav-button) { display: none; }
  .footer-inner nav { flex-wrap: wrap; gap: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
