:root {
  --bg: #f7f8fc;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #fff;
  --text: #101114;
  --muted: #686b74;
  --line: rgba(20,22,30,.09);
  --accent: #665cff;
  --accent-2: #31c8b3;
  --pink: #ff5fa3;
  --orange: #ff9f43;
  --blue: #4c8dff;
  --green: #3ccf91;
  --red: #ff6b6b;
  --shadow: 0 24px 70px rgba(33,37,52,.12);
  --radius-xl: 34px;
  --radius-lg: 26px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: rgba(20,23,31,.82);
    --surface-solid: #14171f;
    --text: #f7f8fa;
    --muted: #a5a9b4;
    --line: rgba(255,255,255,.09);
    --shadow: 0 28px 80px rgba(0,0,0,.38);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(102,92,255,.11), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(49,200,179,.10), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(20px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 36px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.02em;
  font-size: 18px;
}
.brand-mark { width: 34px; height: 34px; display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a, .footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-links a:hover, .footer-links a:hover { color: var(--text); }
.language-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: 999px;
}
.language-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.language-switch button.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 2px 7px rgba(0,0,0,.08);
}

.section-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section-shell.compact { width: min(1040px, calc(100% - 36px)); }
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 60px;
  padding: 86px 0 92px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
}
.eyebrow.center { text-align: center; }
.hero h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(48px, 6.1vw, 82px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
}
.hero-lead {
  max-width: 640px;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  letter-spacing: -.015em;
  color: var(--muted);
}
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.store-button {
  min-width: 185px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px 10px;
  border-radius: 14px;
  background: #080808;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.store-button.is-placeholder { cursor: default; }
.store-button .apple-glyph { font-size: 31px; line-height: 1; margin-top: -1px; }
.store-button span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.store-button small { font-size: 9px; letter-spacing: .015em; opacity: .78; }
.store-button strong { margin-top: 2px; font-size: 20px; font-weight: 630; letter-spacing: -.02em; }
.text-link { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 15px; }
.text-link::after { content: " →"; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 13px; }

.hero-visual { display: flex; justify-content: center; align-items: center; perspective: 1100px; }
.phone-frame {
  width: min(390px, 86vw);
  aspect-ratio: 390/795;
  padding: 12px;
  border-radius: 58px;
  background: linear-gradient(145deg,#24262c,#08090c 65%);
  box-shadow: 0 40px 90px rgba(14,16,26,.28), inset 0 0 0 1px rgba(255,255,255,.16);
  position: relative;
  transform: rotateY(-5deg) rotateX(2deg);
}
.phone-top { position: absolute; width: 112px; height: 32px; border-radius: 999px; background: #050506; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3; }
.phone-screen {
  height: 100%;
  padding: 66px 22px 24px;
  border-radius: 47px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(102,92,255,.16), transparent 14rem),
    linear-gradient(180deg, #fbfbfd, #f2f4fa);
  color: #12131a;
}
.mock-header { display: flex; align-items: center; justify-content: space-between; }
.mock-header > div { display: flex; flex-direction: column; gap: 5px; }
.mock-kicker { color: #6f7380; font-size: 11px; font-weight: 650; }
.mock-header strong { font-size: 25px; letter-spacing: -.04em; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#756cff,#41d0b9); color:#fff; font-weight: 800; }
.mock-score { margin-top: 28px; padding: 18px; border-radius: 21px; background: rgba(255,255,255,.85); box-shadow: 0 10px 30px rgba(61,67,88,.08); display: flex; align-items: center; justify-content: space-between; }
.mock-score span { font-size: 12px; color: #6f7380; font-weight: 700; }
.mock-score strong { font-size: 34px; letter-spacing: -.05em; color: #1d8d67; }
.cycle-chart { width: calc(100% + 4px); margin: 26px 0 18px; overflow: visible; }
.chart-axis { stroke: rgba(50,55,70,.14); stroke-width: 1.4; stroke-dasharray: 5 8; }
.curve { fill: none; stroke-width: 4; stroke-linecap: round; }
.curve-a { stroke: var(--orange); }
.curve-b { stroke: var(--pink); }
.curve-c { stroke: var(--blue); }
.curve-d { stroke: var(--accent); }
.chart-marker { stroke: rgba(37,42,55,.28); stroke-width: 1.5; stroke-dasharray: 4 5; }
.dot-a { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.mock-cycles { display: grid; gap: 9px; }
.mock-cycles span { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 9px; padding: 10px 12px; background: rgba(255,255,255,.77); border-radius: 13px; }
.mock-cycles b { font-size: 12px; }
.mock-cycles small { color: #858996; font-weight: 700; }
.cycle-dot { width: 8px; height: 8px; border-radius: 50%; }
.cycle-dot.physical { background: var(--orange); }
.cycle-dot.emotional { background: var(--pink); }
.cycle-dot.intellectual { background: var(--blue); }
.cycle-dot.intuitive { background: var(--accent); }

.intro { padding: 110px 0 40px; }
.section-title { margin: 0; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.section-title.center, .section-lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-lead { max-width: 760px; color: var(--muted); font-size: 19px; line-height: 1.55; margin-top: 20px; }
.cycle-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cycle-card { position: relative; overflow: hidden; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(18px); }
.cycle-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -65px; bottom: -75px; filter: blur(1px); opacity: .2; }
.physical-card::after { background: var(--orange); }
.emotional-card::after { background: var(--pink); }
.intellectual-card::after { background: var(--blue); }
.intuitive-card::after { background: var(--accent); }
.cycle-number { display: inline-grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: color-mix(in srgb, var(--text) 6%, transparent); font-size: 16px; font-weight: 800; }
.cycle-card h3 { margin: 30px 0 8px; font-size: 22px; letter-spacing: -.03em; }
.cycle-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14px; }

.features { padding: 100px 0 40px; }
.feature-row { min-height: 610px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 90px; padding: 66px 0; }
.feature-row.reverse { grid-template-columns: 1.08fr .92fr; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-art { order: 1; }
.feature-copy h2 { margin: 0; max-width: 520px; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -.05em; }
.feature-copy p:last-child { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.feature-art { min-height: 430px; border-radius: var(--radius-xl); display: grid; place-items: center; background: linear-gradient(145deg, rgba(102,92,255,.12), rgba(49,200,179,.11)); border: 1px solid var(--line); overflow: hidden; }
.glass-card { width: 82%; border: 1px solid rgba(255,255,255,.38); background: color-mix(in srgb, var(--surface-solid) 86%, transparent); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.chart-card { padding: 20px 22px 10px; transform: rotate(-2deg); }
.mini-toolbar { display: flex; gap: 6px; margin-bottom: 10px; }
.mini-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--text) 15%, transparent); }
.chart-card svg { width: 100%; }
.calendar-art { background: linear-gradient(145deg, rgba(49,200,179,.11), rgba(255,159,67,.12)); }
.calendar-card { padding: 25px; transform: rotate(2deg); }
.calendar-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.calendar-head b { font-size: 22px; }
.calendar-head span { color: var(--muted); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.calendar-grid i { aspect-ratio: 1; border-radius: 11px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.calendar-grid i.good { background: color-mix(in srgb, var(--green) 45%, transparent); }
.calendar-grid i.warm { background: color-mix(in srgb, var(--orange) 42%, transparent); }
.calendar-grid i.bad { background: color-mix(in srgb, var(--red) 38%, transparent); }
.profiles-art { background: linear-gradient(145deg, rgba(255,95,163,.11), rgba(102,92,255,.13)); }
.profile-stack { position: relative; width: 82%; height: 310px; }
.profile-card { position: absolute; width: 230px; height: 260px; border-radius: 30px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 28px; }
.profile-card span { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; font-size: 27px; background: linear-gradient(135deg,#7469ff,#43cdb8); }
.profile-card b { font-size: 24px; letter-spacing: -.03em; }
.profile-card.one { left: 2%; top: 24px; transform: rotate(-7deg); }
.profile-card.two { right: 2%; top: 12px; transform: rotate(8deg); }
.profile-card.two span { background: linear-gradient(135deg,#ff6ea9,#ffad56); }
.affinity-pill { position: absolute; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); padding: 13px 22px; border-radius: 999px; background: #121318; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.22); display: flex; align-items: center; gap: 9px; }
.affinity-pill strong { font-size: 21px; }
.affinity-pill small { opacity: .75; }

.privacy-section { padding: 110px 0 40px; }
.privacy-card { display: grid; grid-template-columns: 130px 1fr; gap: 34px; padding: 50px; border-radius: var(--radius-xl); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 10%, var(--surface-solid)), var(--surface-solid)); border: 1px solid var(--line); }
.privacy-icon { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 30px; background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: #1ca88f; }
.privacy-icon svg { width: 62px; height: 62px; }
.privacy-card h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1.06; }
.privacy-card p:not(.eyebrow) { max-width: 760px; color: var(--muted); line-height: 1.6; font-size: 17px; }
.privacy-list { margin: 24px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.privacy-list li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 650; }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: #1ca88f; font-weight: 900; }
.policy-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.policy-link::after { content: " ↗"; }

.disclaimer { padding: 48px 0; }
.disclaimer-box { padding: 34px 40px; border-radius: 22px; border: 1px solid var(--line); background: color-mix(in srgb, var(--text) 3.5%, transparent); }
.disclaimer-box h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.disclaimer-box p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.final-cta { padding: 90px 0 130px; }
.final-cta-inner { text-align: center; padding: 74px 30px; border-radius: var(--radius-xl); background: linear-gradient(145deg, rgba(102,92,255,.13), rgba(49,200,179,.13)); border: 1px solid var(--line); }
.final-cta h2 { margin: 0 auto; max-width: 700px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.05em; }
.final-cta p:not(.eyebrow) { color: var(--muted); font-size: 18px; margin: 18px 0 30px; }
.final-cta .store-button { margin: 0 auto; }

.site-footer { border-top: 1px solid var(--line); }
.footer-wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-wrap strong { font-size: 17px; }
.footer-wrap p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.copyright { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .language-switch { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 70px; text-align: center; padding-top: 70px; }
  .hero h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cycle-grid { grid-template-columns: repeat(2,1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-art { order: initial; }
  .feature-copy { text-align: center; }
  .feature-copy h2, .feature-copy p:last-child { margin-left: auto; margin-right: auto; }
  .feature-art { min-height: 390px; }
  .privacy-card { grid-template-columns: 1fr; text-align: center; }
  .privacy-icon { margin: 0 auto; }
  .privacy-card p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .privacy-list { display: inline-grid; text-align: left; }
}

@media (max-width: 620px) {
  .nav-wrap, .section-shell, .section-shell.compact, .footer-wrap { width: min(100% - 24px, 1180px); }
  .hero { min-height: auto; padding: 58px 0 72px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-lead { font-size: 18px; }
  .phone-frame { width: min(340px, 88vw); }
  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-card { min-height: 190px; }
  .intro { padding-top: 85px; }
  .feature-row { min-height: auto; padding: 54px 0; }
  .feature-art { min-height: 330px; }
  .glass-card { width: 90%; }
  .profile-card { width: 190px; height: 225px; padding: 22px; }
  .profile-card span { width: 62px; height: 62px; }
  .privacy-card { padding: 36px 24px; }
  .privacy-section { padding-top: 80px; }
  .disclaimer-box { padding: 28px 24px; }
  .final-cta { padding: 65px 0 90px; }
  .final-cta-inner { padding: 58px 20px; }
  .footer-wrap { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .copyright { grid-column: 1; }
}

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

/* Real Bioritmos app assets */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(24, 31, 60, .16);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.real-phone {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 7px;
  border-radius: 48px;
  background: linear-gradient(145deg, #30323a 0%, #090a0e 58%, #20232d 100%);
  box-shadow:
    0 34px 72px rgba(22, 27, 48, .22),
    inset 0 0 0 1px rgba(255,255,255,.2);
}
.real-phone::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 41px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(13,17,28,.08);
}
.real-phone img.localized-screen {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 41px;
  background: #fff;
}

.hero-visual {
  position: relative;
  min-height: 690px;
  padding: 24px 62px 36px 24px;
}
.hero-phone {
  width: min(355px, 78vw);
  transform: rotateY(-4deg) rotateZ(1deg);
}
.hero-app-badge {
  position: absolute;
  right: 0;
  bottom: 82px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 13px;
  min-width: 240px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow: 0 20px 50px rgba(34, 39, 66, .18);
  backdrop-filter: blur(22px) saturate(140%);
}
.hero-app-badge img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: block;
}
.hero-app-badge div { display: flex; flex-direction: column; gap: 4px; }
.hero-app-badge strong { font-size: 17px; letter-spacing: -.02em; }
.hero-app-badge span { color: var(--muted); font-size: 11px; line-height: 1.35; }

.screenshot-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
}
.screenshot-stage::before,
.screenshot-stage::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: .36;
  z-index: -1;
}
.screenshot-stage::before { left: -150px; top: -90px; background: rgba(102,92,255,.28); }
.screenshot-stage::after { right: -150px; bottom: -100px; background: rgba(49,200,179,.28); }
.feature-phone { width: 260px; }
.tilted-left { transform: rotate(-4deg) translateY(4px); }
.tilted-right { transform: rotate(4deg) translateY(4px); }
.calendar-stage::before { background: rgba(49,200,179,.3); }
.calendar-stage::after { background: rgba(255,159,67,.3); }
.profiles-stage::before { background: rgba(255,95,163,.28); }
.profiles-stage::after { background: rgba(102,92,255,.3); }
.dual-phone-composition {
  position: relative;
  width: 100%;
  min-height: 570px;
  display: grid;
  place-items: center;
}
.phone-back {
  position: absolute;
  width: 225px;
  left: 9%;
  top: 72px;
  transform: rotate(-7deg);
  opacity: .98;
}
.phone-front {
  position: absolute;
  width: 245px;
  right: 8%;
  top: 22px;
  transform: rotate(5deg);
  z-index: 2;
}

.showcase {
  padding: 130px 0 74px;
}
.showcase-heading { max-width: 820px; margin: 0 auto; }
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 22px;
  margin-top: 64px;
}
.screen-card {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.gallery-phone {
  width: 100%;
  max-width: 245px;
  margin: 0 auto;
  padding: 5px;
  border-radius: 37px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.gallery-phone::after { inset: 5px; border-radius: 32px; }
.gallery-phone img.localized-screen { border-radius: 32px; }
.screen-card:nth-child(2) .gallery-phone { transform: translateY(-18px); }
.screen-card:nth-child(3) .gallery-phone { transform: translateY(-8px); }
.screen-card:hover .gallery-phone { transform: translateY(-10px); box-shadow: 0 38px 82px rgba(22,27,48,.28); }
.screen-card:nth-child(2):hover .gallery-phone { transform: translateY(-28px); }
.screen-card:nth-child(3):hover .gallery-phone { transform: translateY(-18px); }
.screen-card figcaption {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.privacy-card {
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 52px;
  overflow: hidden;
}
.privacy-screen-wrap {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
}
.privacy-screen-wrap::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(49,200,179,.18);
  filter: blur(20px);
}
.privacy-phone {
  width: 205px;
  padding: 5px;
  border-radius: 34px;
  transform: rotate(-3deg);
}
.privacy-phone::after { inset: 5px; border-radius: 29px; }
.privacy-phone img.localized-screen { border-radius: 29px; }

.final-app-icon {
  display: block;
  width: 94px;
  height: 94px;
  margin: 0 auto 28px;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(32, 38, 70, .2);
}

@media (max-width: 1080px) {
  .screenshot-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 24px; }
  .gallery-phone { max-width: 260px; }
}

@media (max-width: 920px) {
  .hero-visual { min-height: 660px; padding-right: 24px; }
  .hero-app-badge { right: 7%; bottom: 62px; }
  .screenshot-stage { min-height: 580px; }
  .feature-phone { width: 255px; }
  .privacy-card { grid-template-columns: 1fr; gap: 24px; }
  .privacy-screen-wrap { min-height: 390px; }
  .privacy-phone { width: 190px; }
}

@media (max-width: 620px) {
  .hero-visual { min-height: 610px; padding: 8px 10px 72px; }
  .hero-phone { width: min(325px, 82vw); transform: none; }
  .hero-app-badge {
    right: 50%;
    bottom: 12px;
    transform: translateX(50%);
    min-width: min(272px, 86vw);
  }
  .screenshot-stage { min-height: 520px; }
  .feature-phone { width: min(240px, 65vw); }
  .dual-phone-composition { min-height: 505px; }
  .phone-back { width: 190px; left: 1%; top: 90px; }
  .phone-front { width: 205px; right: 1%; top: 30px; }
  .showcase { padding-top: 92px; }
  .screenshot-strip {
    display: flex;
    gap: 18px;
    margin-left: -12px;
    margin-right: -12px;
    padding: 8px 12px 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .screenshot-strip::-webkit-scrollbar { display: none; }
  .screen-card { flex: 0 0 72vw; scroll-snap-align: center; }
  .screen-card:nth-child(2) .gallery-phone,
  .screen-card:nth-child(3) .gallery-phone { transform: none; }
  .gallery-phone { max-width: 255px; }
  .privacy-screen-wrap { min-height: 350px; }
  .privacy-phone { width: 175px; transform: none; }
}


/* Desktop Safari + multi-device refinements */
.site-header,
.hero-app-badge,
.cycle-card,
.feature-art,
.privacy-card {
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.platform-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
}
@media (prefers-color-scheme: dark) {
  .platform-row span { background: rgba(255,255,255,.045); }
}

/* Explicit desktop composition: tuned for Safari on common Mac displays. */
@media (min-width: 921px) {
  .nav-wrap,
  .section-shell,
  .footer-wrap { width: min(1240px, calc(100% - 72px)); }
  .section-shell.compact { width: min(1080px, calc(100% - 72px)); }

  .hero {
    min-height: min(720px, calc(100vh - 70px));
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: clamp(42px, 5vw, 76px);
    padding: 48px 0 62px;
  }
  .hero h1 { font-size: clamp(52px, 5.2vw, 76px); }
  .hero-visual {
    min-height: 590px;
    padding: 10px 48px 24px 4px;
  }
  .hero-phone { width: clamp(290px, 24vw, 335px); }
  .hero-app-badge { right: 1%; bottom: 52px; min-width: 228px; }

  .intro { padding: 92px 0 28px; }
  .features { padding: 72px 0 24px; }
  .feature-row,
  .feature-row.reverse {
    min-height: 530px;
    gap: clamp(54px, 6vw, 88px);
    padding: 46px 0;
  }
  .screenshot-stage { min-height: 510px; }
  .feature-phone { width: clamp(220px, 18vw, 246px); }
  .dual-phone-composition { min-height: 505px; }
  .phone-back { width: 205px; left: 10%; top: 76px; }
  .phone-front { width: 224px; right: 10%; top: 34px; }

  .showcase { padding: 96px 0 64px; }
  .screenshot-strip { gap: 18px; margin-top: 54px; }
  .gallery-phone { max-width: 220px; }

  .privacy-section { padding-top: 88px; }
  .privacy-card { grid-template-columns: 250px minmax(0,1fr); gap: 46px; padding: 44px; }
  .privacy-screen-wrap { min-height: 405px; }
  .privacy-phone { width: 185px; }
  .final-cta { padding: 76px 0 105px; }
}

@media (min-width: 921px) and (max-height: 900px) {
  .hero { min-height: calc(100vh - 70px); padding-top: 34px; padding-bottom: 42px; }
  .hero-visual { min-height: 515px; }
  .hero-phone { width: clamp(270px, 22vw, 305px); }
  .hero-app-badge { bottom: 30px; }
}

@media (min-width: 1440px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); }
  .hero-copy { padding-left: 14px; }
}

@media (max-width: 920px) {
  .platform-row { justify-content: center; }
}

/* Fallbacks for older Safari versions that do not support color-mix(). */
@supports not (background: color-mix(in srgb, white 50%, black)) {
  .site-header { background: rgba(247,248,252,.88); }
  .language-switch { background: rgba(16,17,20,.055); }
  .language-switch button.active { background: #fff; }
  .cycle-number { background: rgba(16,17,20,.055); }
  .privacy-card { background: rgba(255,255,255,.9); }
  .hero-app-badge { background: rgba(255,255,255,.92); }
  @media (prefers-color-scheme: dark) {
    .site-header { background: rgba(11,13,18,.9); }
    .language-switch { background: rgba(255,255,255,.06); }
    .language-switch button.active { background: #14171f; }
    .cycle-number { background: rgba(255,255,255,.06); }
    .privacy-card, .hero-app-badge { background: rgba(20,23,31,.93); }
  }
}

/* Prevent decorative/transformed elements from creating horizontal scroll in desktop Safari. */
body { overflow-x: hidden; }


/* =========================================================
   V2.1 — Real screenshot sizing / Safari desktop refinement
   ========================================================= */

/* The floating platform badge has been removed from the HTML.
   Keep this as a defensive fallback for cached/older markup. */
.hero-app-badge { display: none !important; }

/* Prevent intrinsic screenshot dimensions from widening grid tracks.
   This is particularly important in Safari on macOS. */
.hero-copy,
.hero-visual,
.feature-copy,
.feature-art,
.screenshot-stage,
.dual-phone-composition,
.screen-card,
.privacy-card > *,
.real-phone {
  min-width: 0;
}

.hero-visual,
.feature-art,
.screenshot-stage,
.dual-phone-composition,
.real-phone {
  max-width: 100%;
}

.localized-screen,
.real-phone img.localized-screen {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.feature-row {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.feature-row.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

/* Avoid forcing a translateZ transform on the whole phone container.
   Backface visibility is enough for transformed screenshots. */
.real-phone,
.real-phone img.localized-screen {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* macOS Safari only. JavaScript adds .safari-desktop to <html>. */
@media (min-width: 921px) {
  html.safari-desktop .hero {
    grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr);
  }

  html.safari-desktop .hero-visual {
    min-height: 540px;
    padding: 4px 26px 18px 0;
  }

  html.safari-desktop .hero-phone {
    width: 278px;
    max-width: 278px;
  }

  html.safari-desktop .feature-row,
  html.safari-desktop .feature-row.reverse {
    gap: clamp(48px, 5vw, 72px);
  }

  html.safari-desktop .screenshot-stage {
    min-height: 470px;
  }

  html.safari-desktop .feature-phone {
    width: 210px;
    max-width: 210px;
  }

  html.safari-desktop .dual-phone-composition {
    min-height: 455px;
  }

  html.safari-desktop .phone-back {
    width: 180px;
    max-width: 180px;
    left: 11%;
    top: 72px;
  }

  html.safari-desktop .phone-front {
    width: 198px;
    max-width: 198px;
    right: 11%;
    top: 28px;
  }

  html.safari-desktop .gallery-phone {
    width: 100%;
    max-width: 190px;
  }

  html.safari-desktop .privacy-phone {
    width: 165px;
    max-width: 165px;
  }

  html.safari-desktop .privacy-screen-wrap {
    min-height: 370px;
  }
}

/* Typical MacBook viewport heights: keep screenshots comfortably inside
   the first viewport and avoid the "oversized" effect. */
@media (min-width: 921px) and (max-height: 900px) {
  html.safari-desktop .hero-visual {
    min-height: 485px;
  }

  html.safari-desktop .hero-phone {
    width: 255px;
    max-width: 255px;
  }

  html.safari-desktop .feature-phone {
    width: 198px;
    max-width: 198px;
  }

  html.safari-desktop .gallery-phone {
    max-width: 180px;
  }
}


/* V2.3 — App Store CTA text is no longer rewritten by JavaScript.
   This also avoids stale cached translations from older releases. */
.store-copy-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store-copy-it {
  display: none;
}

html[lang="it"] .store-copy-en {
  display: none;
}

html[lang="it"] .store-copy-it {
  display: inline;
}

html[lang="en"] .store-copy-en {
  display: inline;
}

html[lang="en"] .store-copy-it {
  display: none;
}
