/* --------------------------------------------------------------------------
   DugloApps theme system
   Exact palette values are based on the Flutter ColorSchemes supplied by you.
   -------------------------------------------------------------------------- */

:root,
html[data-palette="aegean"][data-theme="light"] {
  --primary: #2F80ED;
  --on-primary: #FFFFFF;
  --primary-container: #D7E7FF;
  --on-primary-container: #072B5C;
  --secondary: #2DC5FF;
  --on-secondary: #00202A;
  --surface: #FFFFFF;
  --surface-high: #F1F5FF;
  --outline: #E3E8F4;
  --surface-tint: #2F80ED;
  --page-bg: #F7F9FF;
  --text: #101828;
  --muted: #5D6778;
  --shadow-color: rgba(7, 43, 92, .13);
  --header-bg: rgba(247, 249, 255, .82);
}

html[data-palette="aegean"][data-theme="dark"] {
  --primary: #7FB3FF;
  --on-primary: #001A3A;
  --primary-container: #12365E;
  --on-primary-container: #CEE3FF;
  --secondary: #64D2FF;
  --on-secondary: #002634;
  --surface: #0F1520;
  --surface-high: #151C28;
  --outline: #2C3950;
  --surface-tint: #7FB3FF;
  --page-bg: #0A101A;
  --text: #F4F7FC;
  --muted: #A9B5C7;
  --shadow-color: rgba(0, 0, 0, .42);
  --header-bg: rgba(10, 16, 26, .82);
}

html[data-palette="olive"][data-theme="light"] {
  --primary: #6AA84F;
  --on-primary: #FFFFFF;
  --primary-container: #E1F1D8;
  --on-primary-container: #15340A;
  --secondary: #9BD770;
  --on-secondary: #0D2200;
  --surface: #FFFFFF;
  --surface-high: #F3F7EE;
  --outline: #E2E9DA;
  --surface-tint: #6AA84F;
  --page-bg: #F8FAF5;
  --text: #172012;
  --muted: #626C5B;
  --shadow-color: rgba(21, 52, 10, .13);
  --header-bg: rgba(248, 250, 245, .82);
}

html[data-palette="olive"][data-theme="dark"] {
  --primary: #D1F27B;
  --on-primary: #152100;
  --primary-container: #2A3B0A;
  --on-primary-container: #E7FFB5;
  --secondary: #9BE15D;
  --on-secondary: #102100;
  --surface: #11140F;
  --surface-high: #171B13;
  --outline: #2D3328;
  --surface-tint: #D1F27B;
  --page-bg: #0C0F0A;
  --text: #F3F8EC;
  --muted: #B1BBA8;
  --shadow-color: rgba(0, 0, 0, .42);
  --header-bg: rgba(12, 15, 10, .82);
}

html[data-palette="sunset"][data-theme="light"] {
  --primary: #FF6F61;
  --on-primary: #FFFFFF;
  --primary-container: #FFE1DD;
  --on-primary-container: #5E0F06;
  --secondary: #FFB199;
  --on-secondary: #3D0C00;
  --surface: #FFFFFF;
  --surface-high: #FFF2EF;
  --outline: #F0D8D4;
  --surface-tint: #FF6F61;
  --page-bg: #FFF9F7;
  --text: #2A1512;
  --muted: #755F5B;
  --shadow-color: rgba(94, 15, 6, .13);
  --header-bg: rgba(255, 249, 247, .82);
}

html[data-palette="sunset"][data-theme="dark"] {
  --primary: #FF9E80;
  --on-primary: #340B05;
  --primary-container: #5A241A;
  --on-primary-container: #FFDBD3;
  --secondary: #FFC4A3;
  --on-secondary: #3B1400;
  --surface: #1A1516;
  --surface-high: #211C1D;
  --outline: #3A2E30;
  --surface-tint: #FF9E80;
  --page-bg: #120E0F;
  --text: #FFF4F1;
  --muted: #C8B2AE;
  --shadow-color: rgba(0, 0, 0, .44);
  --header-bg: rgba(18, 14, 15, .82);
}

html[data-palette="cycladic"][data-theme="light"] {
  --primary: #00BCD4;
  --on-primary: #FFFFFF;
  --primary-container: #CBF6FF;
  --on-primary-container: #002F36;
  --secondary: #6C757D;
  --on-secondary: #0E1113;
  --surface: #FFFFFF;
  --surface-high: #EFF7FB;
  --outline: #E1E6EA;
  --surface-tint: #00BCD4;
  --page-bg: #F6FBFD;
  --text: #102024;
  --muted: #617075;
  --shadow-color: rgba(0, 47, 54, .13);
  --header-bg: rgba(246, 251, 253, .82);
}

html[data-palette="cycladic"][data-theme="dark"] {
  --primary: #B3F0FF;
  --on-primary: #001C22;
  --primary-container: #09333A;
  --on-primary-container: #D6F7FF;
  --secondary: #E3E3E3;
  --on-secondary: #1B1B1B;
  --surface: #0B0D10;
  --surface-high: #121519;
  --outline: #282D33;
  --surface-tint: #B3F0FF;
  --page-bg: #07090C;
  --text: #F1F6F8;
  --muted: #ADB6BC;
  --shadow-color: rgba(0, 0, 0, .45);
  --header-bg: rgba(7, 9, 12, .82);
}

:root {
  --line: var(--outline);
  --shadow: 0 24px 80px var(--shadow-color);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page-bg); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -5%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 29%),
    radial-gradient(circle at 95% 8%, color-mix(in srgb, var(--secondary) 13%, transparent), transparent 24%),
    var(--page-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: color var(--transition), background var(--transition);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.page-glow { position: fixed; width: 420px; height: 420px; border-radius: 999px; filter: blur(100px); opacity: .15; pointer-events: none; z-index: -1; }
.glow-one { background: var(--primary); top: 18%; left: -250px; }
.glow-two { background: var(--secondary); right: -260px; top: 48%; }
.section-shell, .site-header, .footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header and theme picker */
.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 50;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.03em; font-size: 1.18rem; }
.brand-mascot {
  width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 16px; position: relative; isolation: isolate; transition: transform var(--transition);
}
.brand-mascot::before {
  content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 20%, transparent); filter: blur(8px);
}
.brand-mascot img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 70%; animation: mascot-header-bob 3.2s ease-in-out infinite; }
.brand:hover .brand-mascot { transform: rotate(-7deg) scale(1.08); }
.brand:hover .brand-mascot img { animation-play-state: paused; }
.footer-mascot { width: 42px; height: 42px; }

@keyframes mascot-header-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; font-weight: 650; }
.site-nav a:not(.nav-cta) { color: var(--muted); }
.site-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; order: 3; }
.menu-button { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px; font-size: 1.25rem; }
.theme-menu { position: relative; }
.theme-trigger {
  min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 86%, transparent);
  cursor: pointer; font-weight: 750;
}
.theme-trigger-swatch { width: 17px; height: 17px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--surface) 70%, transparent); }
.theme-popover {
  position: absolute; top: calc(100% + 12px); right: 0; width: 310px; padding: 18px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.theme-popover-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 13px; }
.theme-popover-heading small { color: var(--muted); }
.palette-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette-option {
  min-height: 48px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-high); cursor: pointer; text-align: left;
}
.palette-option[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); }
.palette-dot { width: 17px; height: 17px; border-radius: 50%; }
.palette-aegean { background: linear-gradient(135deg, #2F80ED, #2DC5FF); }
.palette-olive { background: linear-gradient(135deg, #6AA84F, #9BD770); }
.palette-sunset { background: linear-gradient(135deg, #FF6F61, #FFB199); }
.palette-cycladic { background: linear-gradient(135deg, #00BCD4, #6C757D); }
.palette-check { opacity: 0; color: var(--primary); font-weight: 900; }
.palette-option[aria-pressed="true"] .palette-check { opacity: 1; }
.theme-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; margin-top: 15px; border-top: 1px solid var(--line); }
.theme-mode-row > span { font-weight: 750; }
.theme-segmented { display: flex; padding: 3px; border-radius: 11px; background: var(--surface-high); }
.theme-segmented button { border: 0; border-radius: 8px; padding: 7px 10px; background: transparent; cursor: pointer; color: var(--muted); }
.theme-segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 4px 13px var(--shadow-color); }

.nav-cta, .primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 780; transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav-cta { color: var(--on-primary); background: var(--primary); padding-inline: 19px; }
.primary-button { color: var(--on-primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary))); box-shadow: 0 15px 35px color-mix(in srgb, var(--primary) 27%, transparent); border: 0; }
.secondary-button { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); }
.primary-button:hover, .secondary-button:hover, .nav-cta:hover { transform: translateY(-2px); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; min-height: 720px; padding: 74px 0 85px; gap: 52px; }
.eyebrow { display: inline-block; color: var(--primary); font-size: .75rem; font-weight: 850; letter-spacing: .13em; margin-bottom: 17px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.3rem, 6.7vw, 6.5rem); line-height: .94; letter-spacing: -.075em; margin-bottom: 28px; }
h2 { font-size: clamp(2.2rem, 4vw, 4.15rem); line-height: 1.02; letter-spacing: -.06em; margin-bottom: 20px; }
.hero-copy > p { max-width: 650px; color: var(--muted); font-size: 1.16rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin: 34px 0 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .88rem; font-weight: 650; }
.hero-badges span { color: var(--muted); }
.hero-visual { min-height: 590px; position: relative; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; }
.orb-one { width: 430px; height: 430px; background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 56%, transparent), color-mix(in srgb, var(--secondary) 27%, transparent)); }
.orb-two { width: 280px; height: 280px; background: linear-gradient(145deg, color-mix(in srgb, var(--secondary) 25%, transparent), color-mix(in srgb, var(--primary-container) 55%, transparent)); right: 15px; bottom: 20px; }
.hero-mascot {
  position: absolute; z-index: 7; left: -44px; top: -4px; width: 205px; aspect-ratio: 1;
  filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--primary) 25%, transparent));
  animation: mascot-float 4.2s ease-in-out infinite; transform-origin: 50% 75%;
}
.hero-mascot img { width: 100%; height: 100%; object-fit: contain; }
.mascot-speech {
  position: absolute; z-index: 2; right: -40px; top: 4px; padding: 10px 14px; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--surface) 91%, transparent);
  border: 1px solid var(--line); border-radius: 17px 17px 17px 5px; box-shadow: var(--shadow);
  font-size: .78rem; font-weight: 850; animation: speech-pop 4.2s ease-in-out infinite;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes speech-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.025); }
}

/* CSS phone fallback */
.phone-shell {
  width: 260px; aspect-ratio: .5; border: 9px solid #15151A; border-radius: 44px; background: #121216;
  box-shadow: 0 42px 90px rgba(10, 15, 30, .30); padding: 7px; position: relative; z-index: 4; transform: rotate(var(--rotate));
}
.phone-speaker { position: absolute; z-index: 8; top: 15px; left: 50%; transform: translateX(-50%); width: 85px; height: 24px; border-radius: 20px; background: #101014; }
.phone-screen { height: 100%; border-radius: 31px; background: linear-gradient(180deg, color-mix(in srgb, var(--device-accent2) 24%, white), white 39%); padding: 42px 18px 20px; overflow: hidden; color: #18181B; }
.mock-top { display: flex; justify-content: space-between; align-items: center; color: #615D69; font-size: .7rem; }
.mock-pill { background: rgba(255,255,255,.72); padding: 6px 9px; border-radius: 99px; font-weight: 700; }
.mock-hero-icon { width: 69px; height: 69px; margin: 28px auto 16px; display: grid; place-items: center; border-radius: 22px; color: white; font-weight: 900; font-size: 1.25rem; background: linear-gradient(145deg, var(--device-accent), var(--device-accent2)); box-shadow: 0 16px 30px color-mix(in srgb, var(--device-accent) 30%, transparent); }
.mock-eyebrow { margin-bottom: 5px; text-align: center; color: var(--device-accent); font-weight: 850; font-size: .6rem; letter-spacing: .1em; }
.phone-screen h3 { text-align: center; font-size: 1.2rem; letter-spacing: -.04em; margin-bottom: 12px; }
.mock-progress { height: 8px; background: #ECEBF0; border-radius: 20px; overflow: hidden; margin-bottom: 18px; }
.mock-progress span { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, var(--device-accent), var(--device-accent2)); border-radius: inherit; }
.mock-list { display: grid; gap: 9px; }
.mock-list > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; padding: 10px; border-radius: 13px; background: rgba(255,255,255,.82); border: 1px solid rgba(24,24,27,.06); }
.mock-list > div > span { grid-row: 1 / span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--device-accent) 12%, white); color: var(--device-accent); font-weight: 900; font-size: .68rem; }
.mock-list strong { font-size: .73rem; }
.mock-list small { color: #817D88; font-size: .56rem; }
.phone-screen > button { width: 100%; margin-top: 14px; border: 0; border-radius: 13px; padding: 11px; color: white; background: linear-gradient(90deg, var(--device-accent), var(--device-accent2)); font-weight: 800; font-size: .72rem; }
.phone-secondary { position: absolute; z-index: 2; right: 9px; top: 76px; transform: scale(.83); opacity: .92; }
.floating-card { position: absolute; z-index: 8; display: grid; padding: 16px 18px; min-width: 180px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.floating-card strong { font-size: .92rem; }
.floating-card small { color: var(--muted); font-size: .7rem; }
.floating-rating { left: -18px; top: 325px; }
.floating-rating > span { color: var(--primary); }
.floating-progress { right: 8px; bottom: 76px; }

/* Shared sections */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 125px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.stats-strip div { padding: 28px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong, .stats-strip span { display: block; }
.stats-strip strong { font-size: 1.4rem; letter-spacing: -.04em; }
.stats-strip span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.intro-section, .apps-section, .screens-section, .app-feature-intro { padding: 125px 0; }
.section-heading { max-width: 790px; margin-bottom: 55px; }
.section-heading > p { color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit-card { min-height: 300px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 18px 55px color-mix(in srgb, var(--shadow-color) 55%, transparent); }
.benefit-card > span { color: var(--primary); font-size: .72rem; font-weight: 900; }
.benefit-card h3 { margin: 70px 0 13px; font-size: 1.35rem; letter-spacing: -.035em; }
.benefit-card p { color: var(--muted); line-height: 1.7; }
.feature-showcase { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; align-items: center; padding: 40px 0 145px; }
.showcase-copy > p { color: var(--muted); line-height: 1.75; }
.check-list { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 13px; }
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list li::before { content: "✓"; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--on-primary-container); background: var(--primary-container); font-weight: 900; }
.showcase-art { min-height: 540px; position: relative; display: grid; place-items: center; }
.lesson-panel { width: min(500px, 88%); padding: 32px; border: 1px solid var(--line); border-radius: 29px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(-3deg); }
.panel-label { color: var(--primary); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.lesson-panel h3 { margin: 10px 0 25px; font-size: 1.8rem; }
.topic-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.topic-row > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-container); color: var(--on-primary-container); font-weight: 900; }
.topic-row strong, .topic-row small { display: block; }
.topic-row small { color: var(--muted); }
.topic-row.locked { opacity: .58; }
.quiz-panel { position: absolute; right: 2px; bottom: 20px; width: 235px; padding: 25px; border-radius: 24px; color: var(--on-primary-container); background: var(--primary-container); box-shadow: var(--shadow); transform: rotate(5deg); }
.quiz-panel > span { font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.quiz-panel > strong { display: block; margin: 8px 0; font-size: 2rem; }
.quiz-panel > p { color: color-mix(in srgb, var(--on-primary-container) 73%, transparent); font-size: .8rem; }
.quiz-panel > div { display: flex; gap: 5px; }
.quiz-panel i { width: 24px; height: 7px; border-radius: 99px; background: var(--primary); }

/* App collection */
.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.search-box { width: 270px; min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 0 17px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.search-box span { color: var(--muted); font-size: 1.25rem; }
.search-box input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; }
.search-box input::placeholder { color: var(--muted); }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 16px 50px color-mix(in srgb, var(--shadow-color) 48%, transparent); }
.app-card-visual { min-height: 215px; display: flex; align-items: center; justify-content: space-between; padding: 28px; background: linear-gradient(145deg, color-mix(in srgb, var(--device-accent) 16%, var(--surface)), color-mix(in srgb, var(--device-accent2) 22%, var(--surface-high))); overflow: hidden; }
.app-icon, .detail-icon { display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--device-accent), var(--device-accent2)); box-shadow: 0 17px 38px color-mix(in srgb, var(--device-accent) 30%, transparent); overflow: hidden; }
.app-icon { width: 82px; height: 82px; border-radius: 25px; font-size: 1.2rem; font-weight: 900; }
.app-icon.has-image img, .detail-icon.has-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-device { width: 94px; height: 165px; border: 6px solid #17171A; border-radius: 23px; padding: 28px 10px 10px; background: white; transform: rotate(9deg) translate(8px, 22px); box-shadow: 0 22px 45px rgba(15, 20, 30, .22); }
.mini-device span { display: block; height: 23px; margin-bottom: 8px; border-radius: 7px; background: color-mix(in srgb, var(--device-accent) 16%, white); }
.mini-device span:first-child { height: 45px; background: linear-gradient(145deg, var(--device-accent), var(--device-accent2)); }
.app-card-content { padding: 25px; }
.rating-line { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 750; }
.app-card h3 { margin: 13px 0 9px; font-size: 1.3rem; letter-spacing: -.035em; }
.app-card p { min-height: 70px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.text-link { color: var(--primary); font-weight: 800; font-size: .88rem; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }
.testimonial-section { margin-bottom: 125px; padding: 65px; text-align: center; border-radius: var(--radius-xl); background: var(--primary-container); color: var(--on-primary-container); }
.quote-mark { font-size: 4rem; line-height: .7; color: var(--primary); }
.testimonial-section blockquote { max-width: 850px; margin: 23px auto 15px; font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 760; }
.testimonial-section p { color: color-mix(in srgb, var(--on-primary-container) 70%, transparent); }
.cta-section { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-bottom: 120px; padding: 58px; color: var(--on-primary); border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 52%, var(--secondary))); overflow: hidden; position: relative; }
.cta-section::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: color-mix(in srgb, var(--on-primary) 9%, transparent); right: -100px; top: -120px; }
.cta-section h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin-bottom: 10px; }
.cta-section p { color: color-mix(in srgb, var(--on-primary) 72%, transparent); margin-bottom: 0; }
.cta-section .eyebrow { color: color-mix(in srgb, var(--on-primary) 78%, var(--secondary)); }
.light-button { background: var(--surface); color: var(--text); box-shadow: none; flex: 0 0 auto; z-index: 2; }
.footer { display: grid; grid-template-columns: 1fr auto; gap: 30px; border-top: 1px solid var(--line); padding: 52px 0 35px; }
.footer-brand { margin-bottom: 13px; }
.footer > div > p { color: var(--muted); max-width: 460px; }
.footer-links { display: flex; gap: 22px; align-items: start; font-size: .9rem; font-weight: 700; }
.copyright { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; margin: 20px 0 0; }

/* App detail */
.app-hero { min-height: 710px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 55px 0 90px; }
.app-hero h1 { font-size: clamp(3rem, 5.6vw, 5.8rem); }
.back-link { display: inline-block; margin-bottom: 35px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.app-title-row { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; }
.detail-icon { width: 84px; height: 84px; border-radius: 25px; font-size: 1.35rem; font-weight: 900; flex: 0 0 auto; }
.app-hero-copy > p { max-width: 630px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 11px; margin: 30px 0 20px; }
.store-button { min-width: 170px; min-height: 56px; display: flex; align-items: center; gap: 11px; padding: 8px 17px; border-radius: 15px; background: #17171A; color: white; }
.store-button small, .store-button strong { display: block; line-height: 1.05; }
.store-button small { font-size: .58rem; opacity: .72; }
.store-button strong { font-size: 1rem; }
.store-icon, .play-mark { font-size: 1.5rem; }
.app-rating { display: flex; gap: 12px; color: var(--muted); font-size: .83rem; align-items: center; }
.app-rating strong { color: var(--primary); }
.app-hero-visual { min-height: 580px; position: relative; display: grid; place-items: center; }
.app-hero-visual::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 24%, var(--surface)), color-mix(in srgb, var(--secondary) 26%, var(--surface-high))); }
.hero-real-screenshot { position: relative; z-index: 4; width: min(355px, 72vw); margin: 0; transform: rotate(-3deg); }
.hero-real-screenshot img { width: 100%; border-radius: 28px; box-shadow: 0 38px 85px var(--shadow-color); border: 1px solid color-mix(in srgb, var(--outline) 65%, transparent); }
.app-gradient-card { position: absolute; right: 0; bottom: 75px; width: 210px; padding: 25px; color: var(--on-primary); border-radius: 24px; background: linear-gradient(145deg, var(--primary), color-mix(in srgb, var(--primary) 48%, var(--secondary))); box-shadow: 0 25px 65px color-mix(in srgb, var(--primary) 28%, transparent); transform: rotate(6deg); z-index: 6; }
.app-gradient-card span, .app-gradient-card strong, .app-gradient-card small { display: block; }
.app-gradient-card span { font-size: .63rem; letter-spacing: .13em; font-weight: 850; opacity: .75; }
.app-gradient-card strong { font-size: 1.8rem; margin: 7px 0; }
.app-gradient-card small { opacity: .78; }
.app-feature-intro .benefit-grid { grid-template-columns: repeat(4, 1fr); }
.app-feature-intro .benefit-card { min-height: 300px; }
.screens-wrap { padding: 54px 34px 34px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), color-mix(in srgb, var(--secondary) 10%, var(--surface-high))); }
.screens-grid, .extra-screens-grid { display: grid; gap: 30px; align-items: start; justify-content: center; }
.screens-grid.count-1 { grid-template-columns: minmax(240px, 360px); }
.screens-grid.count-2 { grid-template-columns: repeat(2, minmax(220px, 340px)); }
.screens-grid.count-3 { grid-template-columns: repeat(3, minmax(190px, 1fr)); }
.extra-screens-grid { grid-template-columns: repeat(3, minmax(190px, 1fr)); margin-top: 30px; }
.screenshot-item { margin: 0; }
.screenshot-item img { width: 100%; border-radius: 24px; box-shadow: 0 24px 60px var(--shadow-color); border: 1px solid color-mix(in srgb, var(--outline) 70%, transparent); }
.gallery-toggle { margin: 34px auto 0; cursor: pointer; gap: 12px; color: var(--text); }
.gallery-toggle b { color: var(--primary); }
.mock-screens { padding: 40px 10px; }
.mock-screens .phone-shell { width: 225px; transform: rotate(0); }
.mock-screens .phone-shell:nth-child(1) { transform: rotate(-5deg) translateY(25px); }
.mock-screens .phone-shell:nth-child(3) { transform: rotate(5deg) translateY(25px); }
.app-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 130px; }
.app-flow > div { padding: 26px; border-top: 2px solid var(--primary); }
.app-flow > div > span { color: var(--primary); font-weight: 900; font-size: .75rem; }
.app-flow strong { display: block; margin: 30px 0 9px; font-size: 1.15rem; }
.app-flow p { color: var(--muted); font-size: .88rem; }

/* Simple pages */
.simple-main { min-height: 650px; padding: 100px 0 140px; }
.simple-main h1 { font-size: clamp(3rem, 6vw, 5.7rem); max-width: 900px; }
.simple-intro { max-width: 700px; color: var(--muted); font-size: 1.12rem; }
.prose-card { max-width: 850px; margin-top: 50px; padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.prose-card h2 { font-size: 1.45rem; margin-top: 34px; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p { color: var(--muted); line-height: 1.75; }
.prose-card a { color: var(--primary); font-weight: 750; }

.prose-card h3 { font-size: 1.08rem; margin: 25px 0 8px; }
.prose-card ul { margin: 12px 0 22px; padding-left: 22px; }
.prose-card li { color: var(--muted); line-height: 1.72; margin: 7px 0; }
.legal-main { max-width: 1160px; }
.legal-main h1 { max-width: 1050px; font-size: clamp(2.7rem, 5vw, 5rem); }
.legal-meta { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-high); color: var(--muted); font-size: .82rem; }
.legal-meta strong { color: var(--text); }
.legal-prose { max-width: 930px; }
.legal-prose h2 { scroll-margin-top: 110px; padding-top: 4px; }
.legal-summary { padding: 22px 24px; margin-bottom: 26px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--primary) 10%, var(--surface-high)); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); }
.legal-summary strong { color: var(--primary); }
.legal-summary p { margin: 7px 0 0; color: var(--text); }
.legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; padding: 24px; margin-bottom: 34px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-high); }
.legal-toc strong { grid-column: 1 / -1; margin-bottom: 4px; }
.legal-toc a { font-size: .9rem; text-decoration: none; }
.app-legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.app-legal-links a { display: inline-flex; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .79rem; font-weight: 750; text-decoration: none; background: color-mix(in srgb, var(--surface) 85%, transparent); }
.app-legal-links a:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }


.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; }
  .site-nav { grid-column: 1 / -1; justify-content: center; padding-bottom: 18px; }
  .header-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 1000px) {
  .hero, .app-hero { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-visual { margin-top: -20px; }
  .hero-mascot { left: 3%; top: 10px; }
  .feature-showcase { grid-template-columns: 1fr; }
  .showcase-copy { max-width: 720px; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-feature-intro .benefit-grid, .app-flow { grid-template-columns: repeat(2, 1fr); }
  .app-hero-copy { text-align: center; }
  .app-title-row { grid-template-columns: 1fr; justify-items: center; }
  .app-hero-copy > p { margin-inline: auto; }
  .store-buttons, .app-rating { justify-content: center; }
}

@media (max-width: 760px) {
  .section-shell, .site-header, .footer { width: min(100% - 26px, 1180px); }
  .site-header { min-height: 72px; display: flex; }
  .theme-trigger-label { display: none; }
  .theme-trigger { width: 42px; padding: 0; justify-content: center; }
  .theme-popover { position: fixed; top: 76px; right: 13px; left: 13px; width: auto; }
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .nav-cta { margin-top: 5px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero { min-height: auto; padding: 70px 0 100px; gap: 15px; }
  .hero-visual { transform: scale(.82); margin: -25px -40px -50px; }
  .hero-mascot { left: 2px; top: 28px; width: 185px; }
  .mascot-speech { right: -18px; top: -2px; }
  .floating-rating { left: 10px; }
  .floating-progress { right: 10px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip div { border-bottom: 1px solid var(--line); }
  .stats-strip div:nth-child(2) { border-right: 0; }
  .intro-section, .apps-section, .screens-section, .app-feature-intro { padding: 95px 0; }
  .benefit-grid, .apps-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 240px; }
  .feature-showcase { padding-bottom: 95px; gap: 40px; }
  .showcase-art { min-height: 440px; }
  .quiz-panel { right: 0; width: 200px; }
  .split-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .testimonial-section { padding: 45px 24px; margin-bottom: 95px; }
  .cta-section { padding: 45px 28px; flex-direction: column; align-items: flex-start; }
  .footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .app-hero { padding-top: 60px; gap: 0; }
  .app-hero-visual { transform: scale(.88); margin: -15px -30px -35px; }
  .app-title-row { gap: 15px; }
  .app-feature-intro .benefit-grid, .app-flow { grid-template-columns: 1fr; }
  .screens-wrap { padding: 30px 18px 24px; }
  .screens-grid.count-1, .screens-grid.count-2, .screens-grid.count-3, .extra-screens-grid { grid-template-columns: 1fr; }
  .screenshot-item { width: min(100%, 390px); justify-self: center; }
  .mock-screens { grid-template-columns: 1fr; overflow: hidden; }
  .mock-screens .phone-shell:nth-child(n) { transform: rotate(0); width: 220px; justify-self: center; }
}

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

@media (max-width: 650px) {
  .legal-toc { grid-template-columns: 1fr; }
  .legal-toc strong { grid-column: 1; }
  .legal-prose { padding: 26px 21px; }
  .app-legal-links { justify-content: center; }
}
