/* My Epto — site styles. Clean and premium: white space, black and white, one orange accent. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ececf0;
  --ink: #111111;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: #e3e3e8;
  --accent: #ff5a1f;
  --night: #0b0b0c;
  --night-2: #161618;
  --lime: #c6ff3a;
  --radius: 28px;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1320px; }

/* ------------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: inline-flex; flex: none; text-decoration: none; }
.logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.head-cta { font-size: 14px; }
@media (max-width: 720px) {
  .nav { gap: 18px; }
  .nav .hide-sm, .site-head .head-cta { display: none; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2c2e; }
.btn-light { background: var(--bg-2); color: var(--ink); }
.btn-light:hover { background: var(--bg-3); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.link { color: var(--ink); text-decoration: none; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.link::after { content: "\2192"; transition: transform .2s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------- type */
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 1.0; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.04em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--muted); letter-spacing: -0.015em; margin: 0; max-width: 32em; }
.kicker { font-size: 15px; font-weight: 500; color: var(--muted); margin: 0 0 14px; letter-spacing: -0.005em; }
.kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

section { padding: clamp(80px, 12vw, 160px) 0; }
.tight-top { padding-top: 0; }

/* --------------------------------------------------------------------- hero */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(48px, 7vw, 80px); text-align: center; }
.hero h1 { max-width: 12em; margin: 0 auto; }
.hero .lede { margin: 26px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; margin-top: 38px; }

/* ----------------------------------------------------------- product stage */
.stage {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 120% at 50% 110%, #1d1d20 0%, var(--night) 60%);
  color: #f5f5f7;
}
.stage canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.stage.cine canvas { aspect-ratio: 2.1 / 1; }
.stage-meta {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px;
  padding: 18px 24px; font-size: 13px; color: rgba(245, 245, 247, .55);
}
.stage-meta b { color: rgba(245, 245, 247, .9); font-weight: 500; }
.stage-meta img { height: 18px; width: auto; opacity: .9; }
@media (max-width: 640px) {
  .stage.cine canvas { aspect-ratio: 4 / 3; }
  .stage-meta { padding: 12px 16px; font-size: 12px; }
}

/* --------------------------------------------------------------- offerings */
.offer { display: grid; gap: 16px; }
@media (min-width: 900px) { .offer { grid-template-columns: repeat(3, 1fr); } .offer-card { min-height: 400px; } }
.offer-card .foot { padding-top: 18px; }
.offer-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px 32px 32px; border-radius: var(--radius); background: var(--bg-2);
  text-decoration: none; transition: transform .4s var(--ease), background .3s;
}
a.offer-card:hover { transform: translateY(-4px); background: var(--bg-3); }
.offer-card .label { font-size: 14px; font-weight: 500; color: var(--muted); }
.offer-card h3 { font-size: 30px; letter-spacing: -0.035em; line-height: 1.1; }
.offer-card p { margin: 0; color: var(--muted); }
.offer-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status.soon::before { background: var(--accent); }
.status.live::before { background: #2fbf71; }
.glyph { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff; }
.glyph svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------- split rows */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1.25fr; gap: 72px; } .split.flip { grid-template-columns: 1.25fr 1fr; } .split.flip > :first-child { order: 2; } }
.split .copy { display: grid; gap: 22px; justify-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text); }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

.panel { border-radius: var(--radius); background: var(--bg-2); padding: clamp(28px, 4vw, 48px); }
.panel.night { background: var(--night); color: #f5f5f7; }
.panel.night h2, .panel.night h3 { color: #fff; }
.panel.night .muted, .panel.night .lede { color: rgba(245, 245, 247, .6); }

/* topic chips for courses/live */
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics span { padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 14px; color: var(--text); }
.panel.night .topics span { background: var(--night-2); color: #f5f5f7; }

/* --------------------------------------------------------------- sign-up */
.signup { display: flex; gap: 8px; width: 100%; max-width: 460px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.signup input[type=email] {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; background: transparent;
  font: 400 16px var(--sans); color: var(--ink); outline: none;
}
.signup .btn { height: 44px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 1.4em; }
.signup-note.ok { color: #1f8f53; }
.signup-note.err { color: #c4320a; }
.panel.night .signup { background: var(--night-2); border-color: #2a2a2d; }
.panel.night .signup input { color: #fff; }
.panel.night .signup .btn-dark { background: #fff; color: var(--ink); }
.panel.night .signup-note.ok { color: #6be39b; }
.panel.night .signup-note.err { color: #ff9a7a; }
.center .signup { margin: 0 auto; }
@media (max-width: 480px) { .signup { flex-direction: column; border-radius: 22px; } .signup .btn { width: 100%; } }

/* ------------------------------------------------------------- playground */
.play-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.field { display: flex; gap: 8px; flex-wrap: wrap; }
.input {
  flex: 1 1 260px; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 16px var(--sans);
}
.input:focus { outline: none; border-color: var(--ink); }
.segs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 999px; background: var(--bg-2); scrollbar-width: none; width: max-content; max-width: 100%; }
.segs::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font: 500 14px var(--sans); transition: background .2s, color .2s;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets .chip { background: var(--bg-2); color: var(--text); }
.presets .chip:hover { background: var(--bg-3); }
.presets .chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------- feature grid */
.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 32px; border-radius: 24px; background: var(--bg-2); display: grid; gap: 10px; align-content: start; }
.feature p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- spec */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: minmax(130px, 240px) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px;
  font-size: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; line-height: .9; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 40em; }

/* -------------------------------------------------------------- legal */
.legal { max-width: 720px; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; }
.legal p, .legal li { color: #3a3a3c; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }

/* --------------------------------------------------------------- footer */
.site-foot { background: var(--bg-2); padding: 64px 0 36px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.foot-grid img { height: 22px; width: auto; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }

/* ---------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
/* above the fold: animate on load rather than waiting for a scroll observer */
.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
