:root {
    --bg: #FFF8EE; --fg: #3A2418; --card: #FFFDF8; --muted: #7A5F50;
    --orange: #F0702A; --ember: #D8392B; --sun: #F7D15A; --border: #EEDCC8;
    --grad: linear-gradient(120deg, #F7D15A 0%, #F0702A 55%, #D8392B 100%);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
  section { scroll-margin-top: 80px; }
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
  .eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
  h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
  .muted { color: var(--muted); }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 30px; border-radius: 999px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: linear-gradient(120deg, #C84A1A 0%, #B8341E 100%); color: #fff; box-shadow: 0 18px 40px -18px rgba(216,57,43,.55); }
  .btn-ghost { background: #fff; color: var(--fg); border-color: var(--border); }
  .card { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 30px;
    box-shadow: 0 1px 2px rgba(120,60,30,.08), 0 16px 30px -12px rgba(120,60,30,.28), 0 44px 70px -34px rgba(120,60,30,.4);
    transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(120,60,30,.08), 0 24px 40px -14px rgba(120,60,30,.32), 0 60px 90px -40px rgba(120,60,30,.45); }

  /* header */
  header.top {
  position: sticky; top: 0; z-index: 9999;
  background: rgba(255,248,238,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  pointer-events: auto;
  padding-top: env(safe-area-inset-top);
}
  .top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; letter-spacing: -.01em; color: var(--fg); text-decoration: none; }
  .dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE58A 0%, #F7B232 35%, #F0702A 70%, #D8392B 100%); box-shadow: 0 0 0 5px rgba(240,112,42,.16), 0 8px 16px -4px rgba(216,57,43,.65); display: inline-block; }
  .head-right { display: flex; align-items: center; gap: 12px; }
  .lang { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
  .lang button { background: none; border: 0; padding: 6px 12px; font: inherit; font-weight: 800; font-size: .8rem; cursor: pointer; color: var(--fg); }
  .lang button.active { background: var(--orange); color: #fff; }
  .menu-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; display: grid; place-items: center; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; margin: 2px 0; }
  .drawer { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--bg); box-shadow: -20px 0 40px -20px rgba(0,0,0,.3); transform: translateX(110%); transition: transform .25s ease; z-index: 30; padding: 28px 26px; display: flex; flex-direction: column; gap: 6px; }
  .drawer.open { transform: translateX(0); }
  .drawer .close { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--orange); background: none; color: var(--orange); font-size: 1.2rem; cursor: pointer; }
  .drawer a { font-size: 1.4rem; font-weight: 800; color: var(--fg); text-decoration: none; padding: 12px 6px; border-radius: 12px; }
  .drawer a:hover { color: var(--ember); background: #FBE9CF; }
  .drawer .menu-home { font-size: 1.2rem; margin: 2px 0 8px; }
  .drawer .menu-group { border-top: 1px solid var(--border); padding: 7px 0; }
  .drawer .menu-group summary { position: relative; list-style: none; cursor: pointer; padding: 10px 30px 10px 6px; border-radius: 12px; font-size: 1.12rem; font-weight: 900; line-height: 1.3; }
  .drawer .menu-group summary::-webkit-details-marker { display: none; }
  .drawer .menu-group summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.35rem; font-weight: 700; }
  .drawer .menu-group[open] summary::after { content: "−"; }
  .drawer .menu-group summary:hover { color: var(--ember); background: #FBE9CF; }
  .drawer .menu-group a { display: block; margin: 2px 0 2px 10px; padding: 8px 10px; font-size: 1rem; font-weight: 700; color: var(--muted); }
  .drawer .menu-group a:hover { color: var(--ember); background: #FBE9CF; }
  .drawer .menu-group[open] a { animation: nepsis-menu-item .3s ease both; }
  @media (max-width: 420px) {
    .drawer { padding: 22px 20px; }
    .drawer .menu-group summary { font-size: 1.04rem; }
  }
  .drawer .lang { margin-top: 18px; align-self: flex-start; }
  .scrim { position: fixed; inset: 0; background: rgba(40,20,10,.35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 25; }
  .scrim.open { opacity: 1; pointer-events: auto; }

  /* immersive globe hero */
  .hero {
    position: relative; isolation: isolate; display: flex; align-items: center;
    min-height: clamp(680px, calc(100svh - 64px), 980px);
    padding: 46px 0 76px; text-align: left; overflow: hidden;
    background:
      radial-gradient(54% 88% at 78% 48%, rgba(87,153,193,.16) 0%, transparent 72%),
      radial-gradient(45% 70% at 8% 65%, rgba(247,209,90,.28) 0%, transparent 72%),
      var(--bg);
  }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(255,248,238,.96) 27%, rgba(255,248,238,.78) 41%, rgba(255,248,238,0) 69%);
  }
  .hero .wrap { position: relative; z-index: 3; width: 100%; pointer-events: none; }
  .hero-copy { position: relative; z-index: 3; max-width: 535px; pointer-events: auto; }
  .hero h1 { font-size: clamp(2.7rem, 5vw, 4.65rem); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 0; max-width: 12ch; }
  .hero h1 em { font-family: "Literata", Georgia, serif; font-style: italic; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.lead { margin: 18px 0 0; max-width: 39ch; font-size: 1.1rem; color: var(--muted); }
  .hero .btns { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; margin-top: 30px; }
  .hero-earth {
    position: absolute; z-index: 0; top: 50%; right: -2.5vw;
    width: min(92vh, 78vw, 1020px); height: min(92vh, 78vw, 1020px);
    transform: translateY(-50%); pointer-events: none;
    filter: drop-shadow(0 28px 48px rgba(35,74,104,.20));
  }
  #globeCanvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; pointer-events: none; outline: none; }
  #globeCanvas:active { cursor: grabbing; }
  .globe-drag-hint {
    position: absolute; left: 31%; bottom: 7%; z-index: 2; color: var(--muted);
    font-size: .88rem; font-weight: 800; white-space: nowrap; pointer-events: none;
    background: rgba(255,253,248,.78); border: 1px solid rgba(238,220,200,.8);
    border-radius: 999px; padding: 8px 14px; backdrop-filter: blur(8px);
  }
  .hero-country {
    position: absolute; z-index: 4; right: clamp(18px, 4vw, 64px); bottom: 22px;
    width: min(300px, calc(100vw - 36px)); padding: 17px 19px;
    background: rgba(255,253,248,.94); border: 1px solid var(--border);
    border-radius: 20px; box-shadow: 0 12px 34px rgba(120,60,30,.14);
    backdrop-filter: blur(12px);
  }
  .hero-country .eyebrow { margin-bottom: 4px; }
  .hero-country h2 { font-size: 1.16rem; line-height: 1.2; }
  .hero-country label { display: grid; gap: 7px; font-weight: 800; margin-top: 11px; font-size: .9rem; }
  .hero-country select { width: 100%; font: inherit; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; color: var(--fg); }
  .hero-country .msg { min-height: 1.4em; margin-top: 8px; color: var(--ember); font-weight: 800; font-size: .82rem; }
  @media (max-width: 820px) {
    .hero { min-height: max(640px, calc(100svh - 64px)); align-items: flex-start; padding: 24px 0 80px; }
    .hero::after { background: linear-gradient(180deg, rgba(255,248,238,.05) 0%, rgba(255,248,238,.18) 36%, rgba(255,248,238,.94) 57%, var(--bg) 82%); }
    .hero .wrap { margin-top: auto; }
    .hero-earth {
      width: min(90vw, 70vh); height: min(90vw, 70vh);
      top: 40%; left: 50%; right: auto;
      transform: translate(-50%, -50%);
      opacity: .96;
    }
    .hero-copy { max-width: 100%; padding-top: min(48vh, 420px); }
    .hero h1 { font-size: clamp(2.45rem, 8.7vw, 3.65rem); max-width: 14ch; }
    .hero p.lead { max-width: 37ch; }
    .hero-country { position: relative; right: auto; bottom: auto; width: min(100%, 360px); margin: 22px 0 0; }
    .globe-drag-hint { left: 12%; bottom: 12%; font-size: .78rem; }
  }
  @media (max-width: 480px) {
    .hero { min-height: 680px; padding-bottom: 24px; }
    .hero-earth {
      width: min(88vw, 65vh); height: min(88vw, 65vh);
      top: 38%; left: 50%; right: auto;
      transform: translate(-50%, -50%);
    }
    .hero-copy { padding-top: min(51vh, 430px); }
    .hero h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
    .hero .btns { gap: 9px; margin-top: 22px; }
    .hero .btn { padding: 12px 20px; }
    .globe-drag-hint { display: none; }
  }

  /* sections */
  .block { padding: 96px 0; }
  .block .head { max-width: 680px; margin-bottom: 30px; }
  .block .head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

  /* 3D globe styles are part of the immersive hero above */

  /* calculator */
  .calc { display: grid; gap: 22px; }
  @media (min-width: 820px) { .calc { grid-template-columns: 1fr 1fr; } }
  .calc input[type=range] { width: 100%; accent-color: var(--orange); margin-top: 10px; }
  .calc .lbl { font-weight: 800; }
  .result { border-radius: 24px; padding: 28px; background: linear-gradient(180deg, #FCE9C2, #F7D9A5); text-align: center; }
  .result .big { font-size: clamp(3.4rem, 9vw, 5rem); font-weight: 800; color: var(--orange); line-height: 1; margin-top: 8px; }
  .result .formula { font-size: .9rem; color: var(--muted); margin-top: 10px; }
  .note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

  /* compare */
  .compare { display: grid; gap: 18px; }
  @media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
  .cmp { border-radius: 24px; padding: 26px; }
  .cmp.off { background: #3A2420; color: #F6E9DE; }
  .cmp.on { background: #fff; border: 1.5px solid #F3B99A; }
  .cmp h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
  .cmp ul { list-style: none; display: grid; gap: 12px; }
  .cmp li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: .98rem; }
  .cmp time { font-weight: 800; color: var(--ember); }
  .cmp.off time { color: #F2A37A; }
  .pill { display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem; }
  .cmp.off .pill { background: transparent; border: 1px solid #F2A37A; color: #F6E9DE; }
  .cmp.on .pill { background: var(--sun); color: var(--fg); }

  /* stages */
  .stages { display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .stages { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .stages { grid-template-columns: repeat(5, 1fr); } }
  .stage { display: flex; flex-direction: column; gap: 10px; }
  .stage .top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--ember); }
  .stage .dot2 { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
  .stage h3 { font-size: 1.3rem; font-weight: 800; }
  .stage .desc { font-size: .92rem; color: var(--muted); min-height: 3.6em; }
  .ring { position: relative; width: 150px; height: 150px; margin: 10px auto 4px; }
  .ring svg { transform: rotate(-90deg); width: 150px; height: 150px; }
  .ring .track { stroke: rgba(58,36,24,.1); }
  .ring .prog { stroke: url(#ringGrad); transition: stroke-dashoffset .9s linear; }
  .ring .time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .stage .start { margin-top: auto; width: 100%; justify-content: center; padding: 12px; font-size: .95rem; }
  .stage .msg { font-size: .85rem; color: var(--ember); font-weight: 800; min-height: 1.4em; text-align: center; }
  .stage-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

  /* faq */
  .faq { display: grid; gap: 22px; }
  @media (min-width: 820px) { .faq { grid-template-columns: 1fr 1.4fr; } }
  .faq-list { background: var(--card); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
  .faq-list details { border-bottom: 1px solid var(--border); }
  .faq-list details:last-child { border-bottom: 0; }
  .faq-list summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after { content: "⌄"; color: var(--orange); font-size: 1.2rem; }
  .faq-list details[open] summary::after { content: "⌃"; }
  .faq-list details p { padding: 0 22px 18px; color: var(--muted); }

  /* compact ambient sound controls */
  .music-row, .ambient-row { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; margin:18px 0; }
  .music-row button, .ambient-row button {
    border:1.5px solid var(--border); background:#fff; color:var(--fg);
    padding:9px 15px; border-radius:999px; font:inherit; font-size:.9rem;
    font-weight:800; cursor:pointer; transition:background .2s ease,border-color .2s ease,transform .2s ease;
  }
  .music-row button:hover, .ambient-row button:hover { transform:translateY(-2px); border-color:var(--orange); }
  .music-row button.active, .ambient-row button.active { background:#FBE9CF; border-color:var(--orange); color:var(--ember); }
  #musicFrame { max-width:720px; margin:0 auto; }
  #musicFrame iframe { max-width:100%; }
  .ambient-wrap { max-width:720px; margin:24px auto 0; padding:18px 18px 12px; border:1px solid var(--border); border-radius:20px; background:rgba(246,238,228,.42); }
  .ambient-title { font-weight:900; font-size:1rem; }
  .ambient-hint { color:var(--muted); font-size:.88rem; margin-top:3px; }
  .ambient-row { margin:13px 0 8px; }
  .ambient-row button { display:inline-flex; align-items:center; gap:7px; }
  #ambientFrame { margin-top:12px; }
  #ambientFrame iframe { display:block; max-width:100%; }
  @media (max-width:560px) {
    .music-row button, .ambient-row button { padding:8px 12px; font-size:.84rem; }
    .ambient-wrap { padding:15px 12px 10px; }
  }

  /* footer */
  footer { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 40px; }
  .foot { display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; text-align: center; font-size: .9rem; color: var(--muted); }
  @media (min-width: 720px) { .foot { flex-direction: row; text-align: left; } }
  .foot a { color: var(--fg); font-weight: 800; }
  .progress-card { padding: 22px 24px; }
  .progress-card .streak { font-size: 1.5rem; font-weight: 800; }
  .progress-card .sub { color: var(--muted); margin-top: 4px; font-size: .95rem; }
  .progress-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:14px 0; }
  .progress-stat { padding:16px 18px; border:1px solid var(--border); border-radius:18px; background:rgba(246,238,228,.58); }
  .progress-stat strong { display:block; font-size:1.65rem; line-height:1.2; margin-top:5px; }
  .progress-stat span { color:var(--muted); font-size:.84rem; }
  .progress-section { border-top:1px solid var(--border); margin-top:16px; padding-top:14px; }
  .progress-section summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; font-weight:800; padding:5px 0; }
  .progress-section summary::-webkit-details-marker { display:none; }
  .progress-section summary::after { content:"＋"; color:var(--orange); font-size:1.15rem; }
  .progress-section[open] summary::after { content:"−"; }
  .progress-section .section-content { padding-top:10px; }
  .progress-card .badges { margin-top:8px; }
  @media (max-width:480px) { .progress-card { padding:18px; } .progress-overview { gap:8px; } .progress-stat { padding:13px; } .progress-stat strong { font-size:1.4rem; } }
  .badge2 { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; border: 2px solid var(--fg); }
  .badge2.done { background: var(--fg); color: #FFF8EE; }
  .after { font-size: .9rem; }
  .fact { background: linear-gradient(180deg, #FCE9C2, #F7D9A5); border-radius: 18px; padding: 16px 18px; margin-top: 10px; }
  .fact .src { font-size: .8rem; color: var(--muted); margin-top: 6px; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .chips button { border: 2px solid var(--fg); background: transparent; color: var(--fg); padding: 7px 12px; border-radius: 999px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
  .chips button:hover { background: var(--fg); color: #FFF8EE; }
  .after .saved { color: var(--ember); font-weight: 800; margin-top: 6px; font-size: .85rem; }
  .cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; text-transform: capitalize; }
  .cal-head .nav { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 1.1rem; cursor: pointer; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .dow { font-size: .7rem; font-weight: 800; color: var(--muted); text-align: center; }
  .day { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: #F6EBDD; color: var(--muted); }
  .day.lvl1 { background: #FBE3B4; color: var(--fg); }
  .day.lvl2 { background: #F7C978; color: var(--fg); }
  .day.lvl3 { background: #F0702A; color: #fff; }
  .day.lvl4 { background: #D8392B; color: #fff; }
  .day.today { outline: 2px solid var(--fg); }
  .qbox { margin-top: 16px; }
  .qtext { font-weight: 800; }
  .chips button.sel { background: var(--fg); color: #FFF8EE; }
  .sub-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sub-modal.open { opacity: 1; pointer-events: none; }
  .sub-card { position: relative; background: var(--card); border-radius: 28px; padding: 28px; width: min(520px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 40px 80px -30px rgba(120,60,30,.55); transform: translateY(14px); transition: transform .25s ease; }
  .sub-modal.open .sub-card { transform: translateY(0); pointer-events: auto; }
  .sub-card .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--orange); background: none; color: var(--orange); font-size: 1.1rem; cursor: pointer; }
  .sub-frame { width: 100%; height: 420px; border: 0; margin-top: 16px; border-radius: 16px; background: transparent; }
  .acc-btn { border: 1.5px solid var(--border); background: #fff; color: var(--fg); padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
  .acc-modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 18px; z-index: 45; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .acc-modal.open { opacity: 1; pointer-events: none; }
  .acc-modal.open .acc-card { pointer-events: auto; }
  .acc-card { position: relative; background: var(--card); border-radius: 28px; padding: 28px; width: min(460px, 100%); box-shadow: 0 40px 80px -30px rgba(120,60,30,.55); }
  .acc-card .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--orange); background: none; color: var(--orange); font-size: 1.1rem; cursor: pointer; }
  .acc-card input { width: 100%; font: inherit; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; margin-top: 10px; }
  .acc-card .go { margin-top: 12px; width: 100%; justify-content: center; }
  .acc-google { width: 100%; justify-content: center; gap: 10px; margin-top: 4px; background: #fff; color: var(--fg); border: 1.5px solid var(--border); box-shadow: 0 1px 2px rgba(58,36,24,.06); }
  .acc-google:hover { border-color: #B9A28E; }
  .acc-google svg { width: 20px; height: 20px; flex: 0 0 auto; }
  .acc-divider { display:flex; align-items:center; gap:12px; margin:16px 0 12px; color:var(--muted); font-size:.82rem; font-weight:800; }
  .acc-divider::before,.acc-divider::after { content:""; height:1px; flex:1; background:var(--border); }
  .acc-email-label { display:grid; gap:7px; font-size:.9rem; font-weight:800; color:var(--fg); }
  .acc-email { width:100%; padding:13px 14px; border:1.5px solid var(--border); border-radius:12px; background:#fff; color:var(--fg); font:inherit; }
  .acc-email:focus { outline:3px solid rgba(240,112,42,.18); border-color:var(--orange); }
  .acc-email-send { width:100%; justify-content:center; margin-top:10px; }
  .acc-msg { margin-top: 12px; font-weight: 800; color: var(--ember); min-height: 1.4em; }
  .acc-scrim { position: fixed; inset: 0; background: rgba(40,20,10,.35); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 44; }
  .acc-scrim.open { opacity: 1; pointer-events: auto; }
  .medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 18px; }
  .medal-wrap { text-align: center; }
  .medal { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff; position: relative;
    background: radial-gradient(circle at 34% 28%, #FFF6D6 0%, #F7D15A 30%, #F0702A 72%, #B8441F 100%);
    box-shadow: inset -8px -12px 20px rgba(120,40,10,.45), inset 6px 8px 14px rgba(255,255,255,.55), 0 18px 26px -10px rgba(120,40,10,.6), 0 4px 0 rgba(120,40,10,.25);
    transform-style: preserve-3d; transition: transform .35s ease; }
  .medal::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); }
  .medal-wrap:hover .medal { transform: rotateX(12deg) rotateY(-14deg) translateY(-4px); }
  .medal.locked { background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #EDE3D6 60%, #CDBBA6 100%); color: #B9A590; box-shadow: inset -6px -10px 16px rgba(90,60,40,.25), 0 10px 18px -12px rgba(90,60,40,.4); }
  .medal-label { font-weight: 800; font-size: .9rem; margin-top: 10px; }
  .medal-wrap .sub { font-size: .78rem; color: var(--muted); }
  .dayline { margin-top: 16px; display: grid; gap: 8px; }
  .dayrow { display: grid; grid-template-columns: 90px 1fr; gap: 10px; align-items: center; font-size: .85rem; font-weight: 800; }
  .daybar { height: 22px; border-radius: 999px; background: #F3E6D4; overflow: hidden; box-shadow: inset 0 2px 4px rgba(120,60,30,.15); }
  .daybar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F7D15A, #F0702A, #D8392B); box-shadow: 0 4px 10px -4px rgba(216,57,43,.6); }
  .music-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
  .music-row button { border: 2px solid var(--fg); background: transparent; color: var(--fg); padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
  .music-row button.active { background: var(--fg); color: #FFF8EE; }
  #musicFrame { margin-top: 14px; max-width: 720px; margin-left: auto; margin-right: auto; }
  .card { transform-style: preserve-3d; }
  /* Warm, Workday-like look: sand background, soft rounded cards, terracotta accents */
  :root { --bg: #F6EEE4; --card: #FFFBF6; --border: #EADCCB; --muted: #8A6F5E; }
  body { background: var(--bg); }
  .card { background: var(--card); border: 1px solid var(--border); border-radius: 32px; padding: 32px;
    box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 34px -22px rgba(120,70,40,.35); }
  .card:hover { box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 26px 44px -22px rgba(120,70,40,.42); }
  .hero { background: radial-gradient(70% 70% at 50% 30%, rgba(255,220,170,.7) 0%, rgba(246,238,228,0) 70%); }
  header.top { background: rgba(246,238,228,.94); border-bottom-color: var(--border); }
  .eyebrow { color: #B9552A; letter-spacing: .12em; }
  .lang button.active, .lang button.active { background: #B9552A; }
  .lang { border-color: var(--border); }
  .drawer { background: var(--bg); }
  .btn-ghost { background: var(--card); border-color: var(--border); }
  .progress-card .badge2 { border-radius: 999px; }
  .daybar { background: #EFE2D2; }
  .daybar > i { background: linear-gradient(90deg, #E9B872, #D9703A, #B9452A); }

  /* restrained homepage overview */
  .home-discovery { padding: 66px 0 88px; }
  .home-intro { max-width: 680px; margin: 0 auto 30px; text-align: center; }
  .home-intro h2 { margin-bottom: 12px; }
  .home-intro p { color: var(--muted); font-size: 1.04rem; }
  .home-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .home-link { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 166px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); color: var(--fg); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
  .home-link:hover { border-color: var(--orange); transform: translateY(-2px); }
  .home-link-number { color: var(--ember); font-size: .76rem; font-weight: 900; letter-spacing: .12em; }
  .home-link strong { font-size: 1.12rem; }
  .home-link > span:nth-of-type(2) { color: var(--muted); font-size: .92rem; max-width: 26ch; }
  .home-link-arrow { position: absolute; right: 18px; bottom: 14px; color: var(--orange); font-size: 1.25rem; }
  .home-footnote { margin: 24px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }
  .daily-challenge, .knowledge-note { margin: 0 0 26px; padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); }
  .daily-challenge h3, .knowledge-note h3 { font-size: 1.35rem; margin-bottom: 8px; }
  .daily-challenge p, .knowledge-note p { color: var(--muted); max-width: 70ch; margin-bottom: 16px; }
  .knowledge-note { margin-top: 26px; }
  body.home-page #about, body.home-page #how, body.home-page #stages, body.home-page #faq { display: none !important; }
  .drawer { overflow-y: auto; }
  @media (max-width: 900px) { .home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .home-discovery { padding: 48px 0 64px; } .home-links { grid-template-columns: 1fr; } .home-link { min-height: 138px; } }


  /* practice page: keep the Earth, bring the tools forward */
  body.practice-page .home-discovery,
  body.practice-page #about,
  body.practice-page #how,
  body.practice-page #faq { display: none !important; }
  body.practice-page .hero { min-height: 440px; padding: 34px 0 50px; }
  body.practice-page .hero-earth { width: min(520px, 46vw, 54vh); height: min(520px, 46vw, 54vh); right: 2vw; }
  body.practice-page .hero-copy { max-width: 480px; }
  body.practice-page .hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
  body.practice-page .hero-country { right: 2vw; bottom: 12px; width: min(260px, 30vw); }
  body.practice-page #stages { padding-top: 54px; }
  @media (max-width: 820px) {
    body.practice-page .hero { min-height: 680px; padding-bottom: 28px; }
    body.practice-page .hero-earth { width: min(112vw, 76vh); height: min(112vw, 76vh); top: -4vw; right: -20vw; }
    body.practice-page .hero-copy { padding-top: min(48vh, 420px); max-width: 100%; }
    body.practice-page .hero-country { position: relative; right: auto; bottom: auto; width: min(100%, 360px); margin: 22px 0 0; }
  }


  /* NEPSIS MOTION SYSTEM — visible, warm, and consistent across pages */
  @view-transition { navigation: auto; }
  @media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
      animation: nepsis-page-out .22s cubic-bezier(.4,0,.2,1) both;
    }
    ::view-transition-new(root) {
      animation: nepsis-page-in .58s cubic-bezier(.16,1,.3,1) both;
    }
    @keyframes nepsis-page-out {
      to { opacity: 0; filter: blur(3px); transform: translateY(-7px) scale(.995); }
    }
    @keyframes nepsis-page-in {
      from { opacity: 0; filter: blur(5px); clip-path: inset(0 0 8% 0); transform: translateY(16px) scale(.995); }
      to { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0); transform: translateY(0) scale(1); }
    }
  }
  .btn, .menu-btn, .lang button, .acc-btn {
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
  }
  .btn:hover, .acc-btn:hover { transform: translateY(-3px); }
  .btn:active, .menu-btn:active, .acc-btn:active { transform: translateY(0) scale(.97); }
  .page-heading .eyebrow {
    position: relative; padding: 7px 13px 7px 16px; border-radius: 999px;
    background: rgba(240,112,42,.09); border: 1px solid rgba(208,91,43,.18);
  }
  .page-heading h1, .wrap > h1 { text-wrap: balance; }
  .page-heading h1::after, .wrap > h1::after {
    content: ""; display: block; width: min(150px, 42%); height: 4px; margin-top: 15px;
    border-radius: 99px; background: linear-gradient(90deg,#F7D15A 0%,#F0702A 58%,#D8392B 100%);
    transform-origin: left center;
  }
  .motion-spotlight {
    --nepsis-x: 50%; --nepsis-y: 50%;
    position: relative; isolation: isolate;
    transition: border-color .3s ease, box-shadow .3s ease;
  }
  .motion-spotlight .nepsis-light {
    position: absolute; inset: 0; z-index: 0; border-radius: inherit;
    pointer-events: none; opacity: 0;
    background: radial-gradient(280px circle at var(--nepsis-x) var(--nepsis-y), rgba(217,112,58,.22), rgba(247,209,90,.07) 38%, transparent 72%);
    transition: opacity .28s ease;
  }
  .motion-spotlight:hover .nepsis-light,
  .motion-spotlight:focus-within .nepsis-light { opacity: 1; }
  .motion-spotlight:hover {
    border-color: rgba(190,89,46,.56);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 38px -24px rgba(120,64,36,.48), 0 0 0 1px rgba(190,89,46,.12);
  }
  .motion-spotlight > :not(.nepsis-light) { position: relative; z-index: 1; }

  .motion-spotlight > .stage-folder-tab { position: absolute; top: 0; z-index: 3; }
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  }
  .drawer a { transition: transform .28s cubic-bezier(.2,.8,.2,1), color .2s ease, background .2s ease; }
  .drawer.open a { animation: nepsis-menu-item .48s cubic-bezier(.16,1,.3,1) both; }
  .drawer.open a:nth-of-type(2) { animation-delay: .035s; }
  .drawer.open a:nth-of-type(3) { animation-delay: .07s; }
  .drawer.open a:nth-of-type(4) { animation-delay: .105s; }
  .drawer.open a:nth-of-type(5) { animation-delay: .14s; }
  .drawer.open a:nth-of-type(6) { animation-delay: .175s; }
  .drawer.open a:nth-of-type(7) { animation-delay: .21s; }
  .drawer.open a:nth-of-type(8) { animation-delay: .245s; }
  .drawer.open a:nth-of-type(9) { animation-delay: .28s; }
  @keyframes nepsis-menu-item { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
  @media (prefers-reduced-motion: reduce) {
    .btn:hover, .acc-btn:hover { transform: none; }
    .drawer.open a { animation: none; }
    .motion-spotlight, .motion-spotlight .nepsis-light { transition: none !important; }
  }


  /* Folder-inspired opening motion for practice stages */
  .stage {
    position: relative; transform-style: preserve-3d;
    padding-top: 38px;
    background:
      radial-gradient(130% 90% at 50% 0%, rgba(247,209,90,.10), transparent 52%),
      var(--card);
  }
  .stage-folder-tab {
    position: absolute; top: 0; left: 25px; z-index: 3;
    display: block; width: 88px; height: 20px;
    border: 1px solid rgba(207,116,57,.28); border-top: 0;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(115deg,#F9D987 0%,#F2A45D 58%,#E87A42 100%);
    box-shadow: 0 5px 12px -8px rgba(115,57,28,.7);
    transform-origin: 50% 0%; transform: perspective(420px) rotateX(0deg);
    transition: transform .56s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
    pointer-events: none;
  }
  .stage-folder-tab::after {
    content: ""; position: absolute; left: 12px; top: 7px;
    width: 28px; height: 2px; border-radius: 99px;
    background: rgba(255,255,255,.72);
  }
  .stage:hover .stage-folder-tab,
  .stage:focus-within .stage-folder-tab {
    transform: perspective(420px) rotateX(-38deg) translateY(-3px);
    box-shadow: 0 10px 15px -10px rgba(115,57,28,.75);
  }
  .stage .top { position: relative; z-index: 2; }
  .stage .ring { transform: translateZ(10px); }
  .stage .start { transition: transform .25s ease, box-shadow .25s ease; }
  .stage .start:hover { transform: translateY(-2px) scale(1.015); }
  @media (prefers-reduced-motion: reduce) {
    .stage-folder-tab, .stage .start { transition: none !important; }
  }


  /* NEPSIS FINISH PASS — clearer depth, light and tactile feedback */
  .motion-spotlight .nepsis-light {
    background: radial-gradient(340px circle at var(--nepsis-x) var(--nepsis-y),
      rgba(217,112,58,.28), rgba(247,209,90,.11) 40%, transparent 74%);
  }
  .motion-spotlight:hover {
    border-color: rgba(190,89,46,.72);
    box-shadow: 0 1px 0 rgba(255,255,255,.92) inset,
      0 24px 44px -25px rgba(120,64,36,.52),
      0 0 0 1px rgba(190,89,46,.18);
  }
  .cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .4s ease;
  }
  .cta::before {
    content: "";
    position: absolute;
    width: 280px; height: 280px;
    right: -105px; top: -165px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,209,90,.24), rgba(240,112,42,.08) 48%, transparent 72%);
    pointer-events: none; z-index: -1;
    transition: transform .65s cubic-bezier(.16,1,.3,1);
  }
  .cta:hover { transform: translateY(-4px); border-color: rgba(190,89,46,.48); box-shadow: 0 22px 46px -30px rgba(120,64,36,.5); }
  .cta:hover::before { transform: scale(1.35) translate(-12px,10px); }
  .btn:not(:disabled) { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease; }
  .btn-primary:hover { filter: saturate(1.12) brightness(1.04); box-shadow: 0 20px 42px -17px rgba(216,57,43,.68); }
  .page-heading h1::after, .wrap > h1::after { animation: nepsis-heading-line .85s .28s cubic-bezier(.16,1,.3,1) both; }
  @keyframes nepsis-heading-line { from { transform: scaleX(.08); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .cta, .cta::before, .btn:not(:disabled), .page-heading h1::after, .wrap > h1::after { animation: none !important; transition: none !important; }
    .cta:hover { transform: none; }
  }

  /* Folder motion: the tab visibly opens, then the stage settles into focus */
  .stage { overflow: visible; transition: border-color .38s ease, box-shadow .38s ease, background .38s ease; }
  .stage-folder-tab {
    width: 112px; height: 25px;
    transform: perspective(420px) rotateX(0deg) translateY(0);
    box-shadow: 0 7px 15px -8px rgba(115,57,28,.72);
  }
  .stage:hover .stage-folder-tab, .stage:focus-within .stage-folder-tab {
    transform: perspective(420px) rotateX(-58deg) translateY(-7px) scaleX(1.04);
    box-shadow: 0 14px 18px -10px rgba(115,57,28,.82);
  }
  .stage:hover { border-color: rgba(190,89,46,.48); }
  .stage .ring { transition: transform .5s cubic-bezier(.16,1,.3,1); }
  .stage:hover .ring, .stage:focus-within .ring { transform: translateZ(10px) translateY(-3px) scale(1.045); }
  .stage .start { box-shadow: 0 8px 18px -12px rgba(184,52,30,.65); }
  @media (prefers-reduced-motion: reduce) { .stage .ring { transition: none !important; } }


/* NEPSIS SIGNATURE REDESIGN — strong editorial layout, original palette preserved */
:root { scroll-behavior:smooth; }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
::selection { background:rgba(216,57,43,.18); color:var(--fg,#3A2418); }

/* Shared brand system */
header.top, body > header, body > .wrap > header {
  position:sticky; top:0; z-index:50;
  background:rgba(255,248,238,.94);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(58,36,24,.09);
}
.logo { letter-spacing:-.065em !important; font-weight:850 !important; }
.menu-btn { transition:transform .28s ease,background .28s ease; }
.menu-btn:hover { transform:rotate(90deg); }
main .page-heading, main > .wrap > .page-heading { padding-top:clamp(64px,10vw,132px); padding-bottom:clamp(48px,7vw,88px); }
.page-heading h1, .intro h1, main > .wrap > h1, .hero h1 {
  letter-spacing:-.065em !important; line-height:.98 !important;
}
.page-heading p, .intro p { max-width:62ch; line-height:1.8 !important; }
.content-section, .faq-list, .content, .panel, .tool-panel, .room, .privacy, .welcome {
  border-radius:26px !important;
}
.info-card, .step-card, .card, .stat, .tool-panel, .tip {
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease;
}
.info-card:hover, .step-card:hover, .stat:hover, .tip:hover {
  transform:translateY(-5px); box-shadow:0 22px 50px -34px rgba(58,36,24,.32);
}
button,.btn,.back,.filter { transition:transform .25s ease,box-shadow .25s ease,background .25s ease; }
button:hover,.btn:hover,.back:hover { transform:translateY(-2px); }
.drawer { box-shadow:-28px 0 80px rgba(58,36,24,.14); }

/* Homepage: unmistakable hero composition */
body.home-page .hero {
  min-height:min(940px,calc(100svh - 76px));
  display:flex; align-items:center; isolation:isolate; overflow:hidden;
  padding:clamp(80px,10vh,140px) 0 110px;
  background:
    radial-gradient(ellipse at 78% 48%,rgba(87,153,193,.16),transparent 43%),
    radial-gradient(ellipse at 12% 92%,rgba(247,209,90,.2),transparent 34%),
    var(--bg);
}
body.home-page .hero::before {
  content:""; position:absolute; z-index:-1; width:min(72vw,980px); aspect-ratio:1;
  right:-13vw; top:50%; transform:translateY(-50%);
  border:1px solid rgba(58,36,24,.08); border-radius:50%;
  box-shadow:0 0 0 42px rgba(58,36,24,.018),0 0 0 92px rgba(58,36,24,.014);
  pointer-events:none;
}
body.home-page .hero::after {
  background:linear-gradient(90deg,var(--bg) 0%,rgba(255,248,238,.98) 28%,rgba(255,248,238,.84) 43%,rgba(255,248,238,0) 69%);
}
body.home-page .hero-copy { position:relative; z-index:3; max-width:620px; }
body.home-page .hero .badge { display:inline-flex; align-items:center; gap:10px; padding:10px 15px; border:1px solid var(--border); border-radius:99px; background:rgba(255,255,255,.54); }
body.home-page .hero h1 { font-size:clamp(4rem,7.4vw,7.6rem); max-width:8.8ch; margin:32px 0 24px; }
body.home-page .hero h1 em { color:var(--orange); font-style:normal; }
body.home-page .hero p.lead { max-width:32ch; font-size:clamp(1.1rem,1.5vw,1.35rem); line-height:1.65; }
body.home-page .hero .btns { gap:14px; margin-top:38px; }
body.home-page .hero .btn-primary { padding:17px 25px; min-height:58px; box-shadow:0 16px 34px -20px rgba(216,57,43,.75); }
body.home-page .hero .btn-ghost { padding:16px 12px; }
body.home-page .hero-earth {
  width:min(76vw,1120px); height:min(76vw,1120px); right:-4vw; top:50%;
  transform:translateY(-50%); z-index:1;
  filter:drop-shadow(0 34px 56px rgba(35,74,104,.2));
}
body.home-page .hero-earth canvas { cursor:grab; }
body.home-page .hero-earth canvas:active { cursor:grabbing; }
body.home-page .globe-drag-hint { left:34%; bottom:9%; z-index:4; }
body.home-page .hero-country {
  z-index:5; left:clamp(22px,5vw,76px); right:auto; bottom:26px;
  width:245px; padding:15px 18px; border:1px solid rgba(58,36,24,.1);
  background:rgba(255,253,248,.88); backdrop-filter:blur(16px);
  box-shadow:0 18px 50px -34px rgba(58,36,24,.35);
}
body.home-page .home-discovery { padding:clamp(100px,13vw,180px) 0; }
body.home-page .home-intro { max-width:850px; margin-bottom:70px; }
body.home-page .home-intro h2 { max-width:12ch; font-size:clamp(3.1rem,6vw,6rem); line-height:.98; letter-spacing:-.065em; }
body.home-page .home-intro p { max-width:52ch; font-size:1.12rem; line-height:1.8; }
body.home-page .home-links {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  border:0;
}
body.home-page .home-link {
  position:relative; min-height:220px; padding:26px 26px 30px;
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
  border:1px solid var(--border); border-radius:22px; background:var(--card);
  box-shadow:0 8px 28px -24px rgba(58,36,24,.3);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),border-color .35s ease,box-shadow .35s ease;
}
body.home-page .home-link:hover { transform:translateY(-7px); border-color:rgba(216,57,43,.42); box-shadow:0 24px 48px -32px rgba(58,36,24,.32); }
body.home-page .home-link-number { font-size:.72rem; font-weight:850; letter-spacing:.15em; color:var(--orange); }
body.home-page .home-link strong { font-size:1.35rem; line-height:1.2; letter-spacing:-.04em; }
body.home-page .home-link > span:nth-of-type(2) { max-width:30ch; line-height:1.65; }
body.home-page .home-link-arrow { right:24px; bottom:22px; font-size:1.45rem; }
body.home-page .home-footnote { max-width:70ch; margin:34px 0 0; text-align:left; line-height:1.8; }
body.home-page .block { padding:clamp(96px,12vw,164px) 0; }
body.home-page .block .head { max-width:850px; margin-bottom:54px; }
body.home-page .block .head h2 { font-size:clamp(2.8rem,5.2vw,5.4rem); line-height:1; letter-spacing:-.06em; }
body.home-page .calc { display:grid; grid-template-columns:1fr 1fr; gap:clamp(28px,6vw,80px); padding:clamp(28px,5vw,64px); border-radius:30px; }
body.home-page .result { border-radius:24px; padding:34px; }
body.home-page .compare { gap:18px; }
body.home-page .cmp { border-radius:26px; padding:clamp(24px,4vw,42px); }
body.home-page .stages { gap:16px; }
body.home-page .stage { border-radius:26px; }
body.home-page footer { padding-top:42px; }

/* Practice experience: make the actual tool feel like a product dashboard */
body.practice-page main > .hero { min-height:460px; padding:68px 0 42px; }
body.practice-page .hero-copy { max-width:760px; }
body.practice-page .hero h1 { font-size:clamp(3.4rem,6vw,6.2rem); max-width:10ch; }
body.practice-page .hero-earth { opacity:.34; width:min(55vw,700px); height:min(55vw,700px); right:-7vw; }
body.practice-page .hero-country { display:none; }
body.practice-page .block { padding:clamp(72px,9vw,120px) 0; }
body.practice-page .head { max-width:800px; margin-bottom:38px; }
body.practice-page .head h2 { font-size:clamp(2.6rem,5vw,4.8rem); letter-spacing:-.06em; line-height:1.02; }
body.practice-page .daily-challenge {
  position:relative; overflow:hidden; padding:clamp(30px,5vw,58px);
  border-radius:30px; border:1px solid rgba(216,57,43,.2);
  background:linear-gradient(125deg,rgba(247,209,90,.22),rgba(255,255,255,.72) 58%,rgba(87,153,193,.1));
  box-shadow:0 22px 60px -48px rgba(58,36,24,.36);
}
body.practice-page .daily-challenge h3 { max-width:18ch; font-size:clamp(2rem,4vw,3.5rem); line-height:1.05; letter-spacing:-.055em; }
body.practice-page .daily-challenge p { max-width:56ch; line-height:1.75; }
body.practice-page .progress-card { border-radius:26px; padding:clamp(22px,3vw,34px) !important; }
body.practice-page #quiz { border-radius:26px !important; padding:clamp(24px,4vw,42px) !important; }
body.practice-page .stages { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
body.practice-page .stage {
  min-height:270px; border-radius:26px; padding:22px 16px;
  box-shadow:0 12px 36px -28px rgba(58,36,24,.38);
  scroll-margin-top: 96px;
}
body.practice-page .stage .ring { transform:scale(1.08); }
body.practice-page .stage .start { min-height:44px; border-radius:99px; }
body.practice-page .knowledge-note { border-radius:24px; padding:clamp(24px,4vw,42px); }

/* Other pages: editorial headers and calmer content surfaces */
body:not(.home-page):not(.practice-page) main { padding-bottom:clamp(64px,9vw,120px); }
body:not(.home-page):not(.practice-page) .page-heading,
body:not(.home-page):not(.practice-page) .intro,
body:not(.home-page):not(.practice-page) main > .wrap > .hero {
  position:relative; padding-top:clamp(66px,9vw,118px); padding-bottom:clamp(44px,6vw,76px);
}
body:not(.home-page):not(.practice-page) .page-heading h1,
body:not(.home-page):not(.practice-page) .intro h1,
body:not(.home-page):not(.practice-page) main > .wrap > .hero h1,
body:not(.home-page):not(.practice-page) main > .wrap > h1 {
  font-size:clamp(3rem,6.6vw,6.2rem); max-width:12ch;
}
body:not(.home-page):not(.practice-page) .page-heading::after,
body:not(.home-page):not(.practice-page) .intro::after,
body:not(.home-page):not(.practice-page) main > .wrap > .hero::after {
  content:""; display:block; width:min(100%,240px); height:3px; margin-top:34px;
  background:linear-gradient(90deg,var(--orange),rgba(216,57,43,0));
  transform-origin:left; animation:nepsis-line-in .8s .15s both;
}
@keyframes nepsis-line-in { from{transform:scaleX(.08);opacity:.3} to{transform:scaleX(1);opacity:1} }
body:not(.home-page):not(.practice-page) .content-grid,
body:not(.home-page):not(.practice-page) .grid,
body:not(.home-page):not(.practice-page) .stats,
body:not(.home-page):not(.practice-page) .tools-grid { gap:16px !important; }
body:not(.home-page):not(.practice-page) .info-card,
body:not(.home-page):not(.practice-page) .step-card,
body:not(.home-page):not(.practice-page) .card,
body:not(.home-page):not(.practice-page) .stat,
body:not(.home-page):not(.practice-page) .panel,
body:not(.home-page):not(.practice-page) .tool-panel,
body:not(.home-page):not(.practice-page) .content {
  border-radius:24px !important;
}
body:not(.home-page):not(.practice-page) .faq-list details {
  border-radius:18px; margin:10px 0; padding:20px 24px;
  border:1px solid var(--border); background:var(--card);
}
body:not(.home-page):not(.practice-page) .faq-list summary { font-weight:750; }
body:not(.home-page):not(.practice-page) .hero .search,
body:not(.home-page):not(.practice-page) .search { max-width:700px; }
body:not(.home-page):not(.practice-page) .filters { display:flex; flex-wrap:wrap; gap:9px; margin:24px 0 34px; }
body:not(.home-page):not(.practice-page) .filter { border-radius:99px; padding:10px 17px; }
body:not(.home-page):not(.practice-page) .privacy { padding:22px 26px; }
body:not(.home-page):not(.practice-page) .room { padding:clamp(26px,5vw,54px); }
body:not(.home-page):not(.practice-page) footer { margin-top:64px; }

/* Responsive art direction */
@media(max-width:900px) {
  body.home-page .hero { min-height:820px; align-items:flex-start; padding-top:48px; }
  body.home-page .hero-earth { width:min(92vw,760px); height:min(92vw,760px); right:-25vw; top:47%; opacity:.92; }
  body.home-page .hero-copy { max-width:590px; }
  body.home-page .hero h1 { font-size:clamp(3.5rem,9vw,6rem); }
  body.home-page .home-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.practice-page .stages { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.home-page .hero { min-height:760px; padding:30px 0 40px; }
  body.home-page .hero-earth { width:112vw; height:112vw; right:-38vw; top:38%; opacity:.72; }
  body.home-page .hero::after { background:linear-gradient(180deg,rgba(255,248,238,.1),rgba(255,248,238,.2) 45%,var(--bg) 76%); }
  body.home-page .hero-copy { padding-top:0; }
  body.home-page .hero h1 { font-size:clamp(3.15rem,13vw,4.5rem); max-width:9ch; }
  body.home-page .hero-country { left:22px; bottom:16px; width:min(230px,calc(100% - 44px)); }
  body.home-page .globe-drag-hint { left:auto; right:18px; bottom:20%; }
  body.home-page .home-links { grid-template-columns:1fr; }
  body.home-page .home-link { min-height:174px; }
  body.home-page .calc { grid-template-columns:1fr; }
  body.practice-page main > .hero { min-height:360px; }
  body.practice-page .hero-earth { opacity:.2; right:-36vw; }
  body.practice-page .stages { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.home-page):not(.practice-page) .page-heading h1,
  body:not(.home-page):not(.practice-page) .intro h1,
  body:not(.home-page):not(.practice-page) main > .wrap > .hero h1,
  body:not(.home-page):not(.practice-page) main > .wrap > h1 { font-size:clamp(2.7rem,12vw,4rem); }
}
@media(max-width:390px) {
  body.practice-page .stages { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}


  /* NEPSIS FOCUS ROOM — refined stage and progress experience */
  body.practice-page #stages > .wrap { max-width: 1360px; }
  body.practice-page #stageGrid {
    gap: 18px;
    align-items: stretch;
    margin-top: 30px;
  }
  body.practice-page .stage {
    min-width: 0;
    padding: 34px 22px 22px;
    border-radius: 26px;
    border: 1px solid rgba(190,89,46,.18);
    background:
      linear-gradient(155deg, rgba(255,255,255,.78), transparent 46%),
      radial-gradient(110% 70% at 50% 0%, rgba(247,209,90,.17), transparent 68%),
      var(--card);
    box-shadow: 0 12px 34px -26px rgba(58,36,24,.42), 0 1px 0 rgba(255,255,255,.9) inset;
    overflow: hidden;
    transition: transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s ease, border-color .3s ease;
  }
  body.practice-page .stage::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--grad);
    opacity: .58;
    transform: scaleX(.28);
    transform-origin: left;
    transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s ease;
  }
  body.practice-page .stage:hover {
    transform: translateY(-8px);
    border-color: rgba(190,89,46,.42);
    box-shadow: 0 26px 48px -30px rgba(58,36,24,.46), 0 1px 0 rgba(255,255,255,.95) inset;
  }
  body.practice-page .stage:hover::after { transform: scaleX(1); opacity: 1; }
  body.practice-page .stage .top { font-size: .68rem; letter-spacing: .16em; }
  body.practice-page .stage h3 {
    font-size: clamp(1.22rem, 1.6vw, 1.5rem);
    letter-spacing: -.045em;
    line-height: 1.12;
    min-height: 1.15em;
  }
  body.practice-page .stage .desc { line-height: 1.65; min-height: 4.8em; }
  body.practice-page .stage .ring {
    width: 164px; height: 164px;
    margin: 16px auto 18px;
    filter: drop-shadow(0 9px 14px rgba(190,89,46,.10));
  }
  body.practice-page .stage .ring svg { width: 164px; height: 164px; }
  body.practice-page .stage .ring .track { stroke: rgba(58,36,24,.09); stroke-width: 8; }
  body.practice-page .stage .ring .prog { stroke-width: 8; }
  body.practice-page .stage .ring .time {
    font-size: 2rem; font-weight: 900; letter-spacing: -.055em;
  }
  body.practice-page .stage .start {
    min-height: 48px; border-radius: 14px;
    font-size: .92rem; letter-spacing: .01em;
    box-shadow: 0 10px 22px -15px rgba(184,52,30,.72);
  }
  body.practice-page .stage .msg { margin-top: 2px; }
  body.practice-page .progress-card {
    position: relative;
    border-radius: 28px;
    padding: clamp(22px, 3vw, 34px);
    background:
      radial-gradient(90% 120% at 100% 0%, rgba(247,209,90,.16), transparent 64%),
      linear-gradient(145deg, rgba(255,255,255,.94), var(--card));
    box-shadow: 0 18px 44px -34px rgba(58,36,24,.4), 0 1px 0 rgba(255,255,255,.9) inset;
  }
  body.practice-page .progress-card .streak {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    letter-spacing: -.04em;
  }
  body.practice-page .progress-overview { gap: 14px; margin: 20px 0; }
  body.practice-page .progress-stat {
    border-radius: 20px;
    padding: 18px 20px;
    background: rgba(246,238,228,.48);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
  }
  body.practice-page .progress-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(190,89,46,.38);
    background: rgba(247,209,90,.13);
  }
  body.practice-page .progress-stat strong {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    letter-spacing: -.05em;
  }
  body.practice-page #quiz {
    border-radius: 26px !important;
    background: linear-gradient(145deg, rgba(255,255,255,.96), var(--card));
    box-shadow: 0 16px 40px -32px rgba(58,36,24,.38), 0 1px 0 rgba(255,255,255,.9) inset;
  }
  @media (max-width: 999px) {
    body.practice-page #stageGrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    body.practice-page .stage .ring { width: 156px; height: 156px; }
    body.practice-page .stage .ring svg { width: 156px; height: 156px; }
  }
  @media (max-width: 560px) {
    body.practice-page #stageGrid { grid-template-columns: 1fr; gap: 14px; }
    body.practice-page .stage { padding: 30px 22px 20px; }
    body.practice-page .stage .desc { min-height: 0; }
    body.practice-page .stage .ring { margin: 12px auto 14px; }
    body.practice-page .progress-overview { gap: 9px; }
    body.practice-page .progress-stat { padding: 14px; }
  }
  @media (prefers-reduced-motion: reduce) {
    body.practice-page .stage, body.practice-page .stage::after,
    body.practice-page .progress-stat { transition: none !important; }
    body.practice-page .stage:hover, body.practice-page .progress-stat:hover { transform: none; }
  }



@media (max-width: 380px) {
  header.top .top-in { padding-left: 14px; padding-right: 14px; }
  .logo { gap: 7px; font-size: 1.1rem; }
  .head-right { gap: 6px; }
  .acc-btn { padding: 6px 8px; font-size: .76rem; }
  .lang button { padding: 5px 7px; font-size: .72rem; }
  .menu-btn { width: 36px; height: 36px; flex: 0 0 36px; }
}

/* ---------- calm additions: ring breath, finish share card, challenge invite, gentle return ---------- */
body.practice-page .stage .ring::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,138,36,.18) 0%, rgba(240,138,36,.07) 46%, rgba(240,138,36,0) 70%);
  opacity: 0; z-index: -1; pointer-events: none;
  transition: opacity 1.2s ease;
}
body.practice-page .stage.is-running .ring::before { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  body.practice-page .stage.is-running .ring::before { animation: nepsis-ring-breath 8s ease-in-out infinite; }
  body.practice-page .stage.is-running .ring .prog { animation: nepsis-ring-soft 8s ease-in-out infinite; }
}
@keyframes nepsis-ring-breath {
  0%, 100% { transform: scale(.95); opacity: .35; }
  50% { transform: scale(1.05); opacity: .8; }
}
@keyframes nepsis-ring-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: .82; }
}
body.practice-page .stage.is-invited { outline: 2px solid rgba(240,138,36,.55); outline-offset: 4px; transition: outline-color 1s ease; }

body.practice-page .finish-share {
  margin: 4px 0 16px; padding: 16px; border-radius: 20px;
  background: #FFF8EE; border: 1px solid rgba(240,138,36,.22); text-align: center;
}
body.practice-page .finish-card {
  display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto 12px;
  border-radius: 16px; box-shadow: 0 10px 26px -20px rgba(58,36,24,.5);
}
body.practice-page .stage .finish-share .finish-line { font-size: .9rem; line-height: 1.55; color: var(--muted, #7A5F50); margin: 0 0 12px; }
body.practice-page .finish-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body.practice-page .stage .finish-share .finish-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .86rem; border-radius: 99px; }
body.practice-page .finish-status { margin: 10px 0 0; font-size: .82rem; color: var(--muted, #7A5F50); overflow-wrap: anywhere; }
body.practice-page .finish-link { color: var(--ember, #B4612A); font-weight: 700; }

body.practice-page .challenge-invite {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 18px 22px; border-radius: 22px;
  background: #FFF8EE; border: 1px solid rgba(240,138,36,.35);
  box-shadow: 0 14px 34px -30px rgba(58,36,24,.45);
}
body.practice-page .challenge-invite[hidden] { display: none; }
body.practice-page .invite-dot, .focus-nudge .nudge-dot, .welcome-back .nudge-dot {
  width: 14px; height: 14px; border-radius: 50%; background: #F08A24; flex: 0 0 auto;
}
body.practice-page .invite-copy { flex: 1 1 260px; display: grid; gap: 4px; }
body.practice-page .invite-copy span { color: var(--muted, #7A5F50); font-size: .92rem; }

.focus-nudge-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(58,36,24,.18);
  opacity: 0; pointer-events: none; transition: opacity .6s ease;
}
.focus-nudge {
  position: fixed; z-index: 81; left: 50%; top: 50%;
  width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, -46%); opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  padding: 28px 26px 22px; border-radius: 26px; text-align: center;
  background: #FFF8EE; border: 1px solid rgba(240,138,36,.4);
  box-shadow: 0 30px 70px -30px rgba(58,36,24,.5);
}
.focus-nudge[hidden], .focus-nudge-scrim[hidden], .welcome-back[hidden] { display: none !important; }
.focus-nudge, .welcome-back { pointer-events: none; }
body.nudge-visible .focus-nudge { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
body.nudge-visible .focus-nudge-scrim { opacity: 1; pointer-events: auto; }
.focus-nudge .nudge-dot { display: block; width: 22px; height: 22px; margin: 0 auto 14px; }
.focus-nudge h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); letter-spacing: -.03em; margin: 0 0 10px; }
.focus-nudge p { margin: 0 0 18px; line-height: 1.6; color: var(--muted, #7A5F50); }
.focus-nudge .nudge-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.welcome-back {
  position: fixed; z-index: 70; left: 50%; bottom: 22px;
  transform: translate(-50%, 8px); opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 99px;
  background: #FFF8EE; border: 1px solid rgba(240,138,36,.3);
  box-shadow: 0 14px 34px -24px rgba(58,36,24,.45); font-size: .92rem; font-weight: 700;
}
.welcome-back .nudge-dot { width: 10px; height: 10px; }
.welcome-back.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .focus-nudge, .focus-nudge-scrim, .welcome-back { transition: none !important; }
  body.practice-page .stage .ring::before, body.practice-page .stage .ring .prog { animation: none !important; }
}

/* ===== Zen Mode ===== */
body.zen-active header.top,
body.zen-active .drawer,
body.zen-active .scrim,
body.zen-active .hero,
body.zen-active .home-discovery,
body.zen-active section.block > .wrap > *:not(#stageGrid),
body.zen-active #stageGrid > .stage:not(.is-running),
body.zen-active footer,
body.zen-active .knowledge-note,
body.zen-active .stage-note {
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.zen-active #stageGrid > .stage.is-running {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 20;
  box-shadow: 0 24px 60px -12px rgba(240, 112, 42, 0.35);
}

body.zen-active #stageGrid > .stage.is-running * {
  opacity: 1;
}


/* Live Focus Counter */
.live-focus-count {
  margin: 14px 0 8px;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}
.live-focus-count:empty { opacity: 0; }

a.acc-btn { text-decoration: none; display: inline-flex; align-items: center; }
.acc-modal { z-index: 80; }
.acc-scrim { z-index: 79; }

/* Opt-in mini timer, shown beside the running stage only when Document Picture-in-Picture exists. */
body.practice-page .pip-timer-btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card, #FFFDF8);
  color: var(--fg);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px -14px rgba(120, 60, 30, .55);
}
body.practice-page .pip-timer-btn[hidden] { display: none !important; }
body.practice-page .pip-timer-btn .pip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #FFE58A 0%, #F7B232 35%, #F0702A 70%, #D8392B 100%);
  box-shadow: 0 0 0 3px rgba(240, 112, 42, .16);
}
body.practice-page .pip-timer-btn span[data-el] { min-width: 0; overflow-wrap: anywhere; }
body.practice-page .pip-timer-btn:focus-visible {
  outline: 3px solid rgba(240, 112, 42, .4);
  outline-offset: 2px;
}
html[data-theme="dark"] body.practice-page .pip-timer-btn {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: 0 8px 18px -14px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] body.practice-page .pip-timer-btn .pip-dot {
  box-shadow: 0 0 0 3px rgba(232, 146, 74, .22);
}
