:root {
  color-scheme: light dark;
  --background: #f5f2ea;
  --surface: #fffdf8;
  --surface-strong: #ebe4d7;
  --text: #171714;
  --muted: #666158;
  --gold: #cbb896;
  --gold-dark: #78684e;
  --blue: #1f62c5;
  --border: rgba(23, 23, 20, .15);
  --content: 1060px;
  --radius: 22px;
  --shadow: 0 22px 65px rgba(63, 49, 29, .13);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .7rem 1rem; background: var(--text); color: var(--background); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header, footer { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 92px; padding: .75rem 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; row-gap: .2rem; }
.brand { grid-column: 1 / -1; font-weight: 780; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { color: #a3151b; }
.site-identity { display: contents; }
.product-nav { grid-column: 1; }
.page-nav { grid-column: 2; margin-left: auto; }
nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 1.8rem); }
nav a { color: var(--muted); font-size: .9rem; font-weight: 650; line-height: 1.2; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.language-link { padding-left: clamp(.8rem, 3vw, 1.8rem); border-left: 1px solid var(--border); }

main { overflow: hidden; }
.hero, .section, .document-page { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.hero { min-height: 580px; display: grid; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero-copy { max-width: 650px; text-align: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--gold-dark); font-size: .76rem; font-weight: 760; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 1.2rem; font-size: clamp(3rem, 9vw, 5.8rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.15rem, 5vw, 3.8rem); }
h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.lead { max-width: 590px; margin: 0; color: var(--muted); font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
.app-store-cta { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.5rem; text-align: left; }
.app-store-icon { display: block; width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 24px rgba(63, 49, 29, .16); }
.availability { margin: 0 0 .45rem; color: var(--muted); font-size: clamp(.76rem, 3.5vw, .85rem); white-space: nowrap; }
.app-store-badge { display: block; width: 120px; }
.app-store-badge img { display: block; width: 100%; height: auto; }
/* Keep device proportions tied to the screenshots, without cropping UI. */
/* A compact iPad preview with the phone overlapping its lower-right corner. */
.device-composition {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  align-items: end;
  width: min(100%, 520px);
  padding-bottom: 13%;
  justify-self: center;
  isolation: isolate;
}
.device-composition > .device-frame { grid-row: 1; grid-column: 15 / -1; width: 100%; margin: 0; z-index: 1; transform: translateY(18%); }
.device-composition .ipad-inline { grid-column: 1 / 19; width: 100%; z-index: 0; transform: none; }
/* Official Apple PNG bezels. Screen coordinates measured in the source assets. */
.device-frame {
  position: relative;
  min-width: 0;
  aspect-ratio: 1470 / 2970;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .18));
}
.device-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/devices/iphone-16-plus-black.png") center / 100% 100% no-repeat;
  pointer-events: none;
}
.device-frame img {
  position: absolute;
  left: 6.122449%;
  top: 2.929293%;
  width: 87.755102%;
  height: 94.141414%;
  object-fit: cover;
  border-radius: 12% / 5.5%;
}
.device-frame.ipad-inline, .device-frame.ipad-frame { aspect-ratio: 3000 / 2300; }
.device-frame.ipad-inline::after, .device-frame.ipad-frame::after {
  background-image: url("../images/devices/ipad-pro-13-space-black.png");
}
.device-frame.ipad-inline img, .device-frame.ipad-frame img {
  left: 4.133333%;
  top: 5.130435%;
  width: 91.733333%;
  height: 89.739130%;
  border-radius: 1.5% / 2%;
}

.chart-card { width: min(100%, 470px); justify-self: center; padding: clamp(1.3rem, 4vw, 2.1rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--border); }
.chart-heading strong { display: block; font-size: 1.3rem; line-height: 1.25; }
.chart-heading span, .chart-heading div span { color: var(--muted); font-size: .76rem; }
.chart-section { padding-top: 1.4rem; }
.section-label, .mini-charts span { color: var(--muted); font-size: .68rem; font-weight: 760; letter-spacing: .11em; }
.chart-section p { margin: .35rem 0; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: clamp(1.25rem, 4vw, 1.75rem); word-spacing: .18em; }
.chart-section b { color: var(--blue); font-weight: 720; }
.chart-section sup { font-size: .55em; }

.section { padding: clamp(2.5rem, 6vw, 4.25rem) 0; border-top: 1px solid var(--border); }
.section-intro { max-width: 680px; margin-bottom: 2.25rem; text-align: center; }
.feature-grid { display: grid; border-block: 1px solid var(--border); }
.feature-grid article { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .8rem; padding: 1.2rem .25rem; }
.feature-grid article + article { border-top: 1px solid var(--border); }
.feature-grid h3 { grid-column: 2; margin-bottom: .35rem; font-size: 1.15rem; }
.feature-grid p { grid-column: 2; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.48; }
.feature-number { grid-row: 1 / span 2; color: var(--gold-dark); font-size: .72rem; font-weight: 760; letter-spacing: .06em; }
.showcase .section-intro > p:last-child { color: var(--muted); font-size: 1.08rem; }
.keyboard-highlight { padding-top: clamp(2.5rem, 6vw, 4rem); }
.keyboard-highlight .product-story { background: transparent; border: 0; padding-block: 0; }
.keyboard-highlight .story-copy h2 { font-size: clamp(2.15rem, 5vw, 3.8rem); }
.product-stories { display: grid; gap: 1.25rem; }
.product-story { display: grid; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding: clamp(1.5rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.story-copy { max-width: 440px; text-align: center; }
.story-copy p { margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }
.lead, .feature-grid p, .showcase .section-intro > p:last-child, .story-copy > p:last-child, .split p, .values p { text-align: justify; }
.story-visual { display: flex; justify-content: center; align-items: center; gap: clamp(.65rem, 2vw, 1.1rem); min-width: 0; }
.story-visual .device-frame { width: min(100%, 205px); }
.story-visual.device-composition { display: grid; align-items: end; gap: 0; }
.story-visual.device-composition .device-frame { width: 100%; }
.story-visual.device-pair .device-frame { width: min(47%, 240px); }
/* Stagger the two iPad previews in one compact composition. */
.ipad-gallery {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  width: min(100%, 620px);
  aspect-ratio: 1.3;
  margin-inline: auto;
  isolation: isolate;
}
.ipad-gallery .ipad-frame { grid-row: 1; grid-column: 1 / 16; align-self: start; }
.ipad-gallery .ipad-frame + .ipad-frame { grid-column: 7 / -1; align-self: end; z-index: 1; }
.ipad-frame { width: 100%; margin: 0; }
.split, .values { display: grid; gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.split > div:first-child, .values > div { max-width: 550px; }
.split > div, .values > div { text-align: center; }
.split p, .values p { color: var(--muted); font-size: 1.08rem; }
.mini-charts { display: grid; gap: 1rem; }
.mini-charts div { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.mini-charts p { margin: .5rem 0 0; color: var(--blue); font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.values { padding-inline: clamp(1.5rem, 6vw, 5rem); background: var(--text); color: var(--background); border: 0; border-radius: var(--radius); }
.values .eyebrow { color: var(--gold); }
.values p { color: rgba(245, 242, 234, .75); }
.benefit-strip { display: grid; gap: 1px; overflow: hidden; padding: 1px; background: var(--border); border: 0; border-radius: var(--radius); }
.benefit-strip div { display: grid; gap: .15rem; padding: 1.25rem; background: var(--surface); text-align: center; }
.benefit-strip strong { font-size: 1.02rem; }
.benefit-strip span { color: var(--muted); font-size: .82rem; }
.text-link { font-weight: 700; }
.closing { text-align: center; }
.closing .app-store-badge { margin-inline: auto; }
.closing p:not(.eyebrow) { color: var(--muted); }
.button { display: inline-block; margin-top: 1rem; padding: .85rem 1.2rem; background: var(--text); color: var(--background); border-radius: 999px; font-weight: 720; text-decoration: none; }
.placeholder-button { cursor: default; opacity: .58; }

.document-page { max-width: 820px; padding: clamp(3rem, 8vw, 5.5rem) 0; overflow: visible; }
.page-heading { margin-bottom: clamp(2.75rem, 7vw, 4.5rem); text-align: center; }
.page-heading h1 { font-size: clamp(3.2rem, 9vw, 6rem); }
.page-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.faq { margin-top: 3.25rem; }
.faq h2, .legal-copy h2, .contact-card h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.035em; }
.faq > h2, .legal-copy section > h2, .contact-card > h2, .contact-card > .eyebrow { text-align: center; }
.page-heading > p:last-child:not(.status-note), .faq details p, .legal-copy section > p, .contact-card .small, .legal-note { text-align: justify; }
details { border-top: 1px solid var(--border); }
details:last-child { border-bottom: 1px solid var(--border); }
summary { padding: 1.25rem 2.5rem 1.25rem 0; cursor: pointer; font-weight: 700; line-height: 1.4; }
details p { margin: -.25rem 0 1.4rem; color: var(--muted); }
code { padding: .15rem .3rem; background: var(--surface-strong); border-radius: 5px; color: var(--text); }
.contact-card { margin-top: 3.75rem; padding: clamp(1.5rem, 5vw, 3rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin: 1.5rem 0; }
.contact-actions .button { margin-top: 0; }
.support-note { max-width: 680px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; }
.support-note h2 { font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.035em; }
.support-note p:last-child { color: var(--muted); }
.placeholder, .status-note { padding: 1rem; background: var(--surface-strong); border-left: 4px solid var(--gold-dark); border-radius: 5px; }
.small, .legal-note { color: var(--muted); font-size: .88rem; }
.legal-copy section { margin-top: 2.75rem; }
.legal-copy li + li { margin-top: .45rem; }
.legal-note { margin-top: 3.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

footer { min-height: 110px; margin-top: 3rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
footer > span { color: var(--text); font-weight: 750; }

@media (max-width: 759px) {
  .feature-grid { grid-template-columns: max-content minmax(0, 1fr); column-gap: .8rem; }
  .feature-grid article { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .feature-number { white-space: nowrap; }
}

@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(3rem, 5.6vw, 5rem); }
  .showcase .section-intro { max-width: none; }
  .hero-copy, .section-intro, .story-copy, .split > div, .values > div { text-align: left; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid article { display: block; padding: 1.35rem clamp(.9rem, 2vw, 1.4rem); }
  .feature-grid article + article { border-top: 0; border-left: 1px solid var(--border); }
  .feature-grid h3 { margin-bottom: .45rem; }
  .feature-number { display: block; margin-bottom: .8rem; }
  .product-story { grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); }
  .product-story.reverse .story-copy { order: 2; }
  .product-story.reverse .story-visual { order: 1; }
  .split, .values { grid-template-columns: repeat(2, 1fr); }
  .benefit-strip { grid-template-columns: repeat(4, 1fr); }
  .benefit-strip div { text-align: left; }
  .page-heading, .faq > h2, .legal-copy section > h2, .contact-card > h2, .contact-card > .eyebrow { text-align: left; }
}

@media (max-width: 560px) {
  .site-header { grid-template-columns: 1fr; row-gap: .7rem; padding-block: 1rem; }
  .site-identity { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .product-nav { margin-left: auto; }
  .page-nav { grid-column: 1; width: 100%; margin-left: 0; justify-content: flex-end; }
  .site-header nav { gap: .75rem; flex-wrap: wrap; }
  .language-link { padding-left: .75rem; }
  .hero { min-height: auto; }

  footer { align-items: center; flex-direction: column; justify-content: center; text-align: center; }
  footer nav { width: 100%; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #11110f;
    --surface: #1b1b18;
    --surface-strong: #292720;
    --text: #f5f2ea;
    --muted: #bcb6aa;
    --gold-dark: #cbb896;
    --blue: #70a7ff;
    --border: rgba(245, 242, 234, .16);
    --shadow: 0 22px 65px rgba(0, 0, 0, .3);
  }
  .values { background: #f5f2ea; color: #171714; }
  .values .eyebrow { color: #78684e; }
  .values p { color: #666158; }
  .brand-mark { color: #ef5d63; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
