/* ==========================================================
   nuoora – home page
   ========================================================== */

section{padding:clamp(4rem,9vw,7rem) 0}
.section-head{display:grid;gap:1rem;margin-bottom:clamp(2.25rem,5vw,3.5rem)}

/* ---------- 1. Hero ---------- */
.hero{padding:clamp(1.75rem,5vw,4.5rem) 0 clamp(3rem,7vw,6rem)}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.hero h1{font-weight:500;font-size:clamp(2.1rem,1.2rem + 3.6vw,3.9rem);letter-spacing:-.03em;max-width:14ch;text-wrap:balance}
:lang(bg) .hero h1{font-size:clamp(1.95rem,1.1rem + 3.2vw,3.4rem)}
.hero .lede{margin-top:1.1rem}
.hero-q{flex-basis:100%;font-weight:600;margin:1.6rem 0 .2rem}
.hero-ctas{margin-top:1.25rem}
.hero-note{margin-top:.9rem;color:var(--muted);font-size:.95rem}
@media (max-width:900px){.hero-grid{grid-template-columns:1fr}}
@media (max-width:420px){
  .hero{padding-top:1.25rem}
  .hero .lede{font-size:1.03rem;line-height:1.5;margin-top:.8rem}
  .hero-q{margin:1.1rem 0 .1rem}
  .hero-ctas{margin-top:1rem}
  .hero-ctas .btn{width:100%}
}

/* Category chips: icon + word, no colours */
.chips{display:flex;flex-wrap:wrap;gap:.5rem;border:0;margin:0;padding:0;min-width:0}
.chip{position:relative}
.chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.chip > span{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:0 1rem 0 .85rem;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);font-weight:600;font-size:.97rem}
.chip svg{width:18px;height:18px;flex:none}
.chip input:hover + span{border-color:var(--muted)}
.chip input:checked + span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.chip input:focus-visible + span{outline:3px solid var(--violet);outline-offset:2px}
html[data-input="pointer"] .chip input:focus-visible + span{outline:none}

/* The sky window: shows the visitor's time of day */
.sky{position:relative;border-radius:200px 200px 28px 28px;overflow:hidden;aspect-ratio:4/4.4;max-height:600px;width:100%;isolation:isolate;
  --sky-top:#8E7BD9;--sky-mid:#F3A8B6;--sky-bottom:#FFD7A3;--sky-ink:#2A1F4D;--sun:#FFF3D6;--glow:#FFE2A8;
  background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 55%,var(--sky-bottom) 100%);
  transition:background 1.2s ease}
.sky[data-phase="day"]{--sky-top:#5E9FE6;--sky-mid:#9CCAF2;--sky-bottom:#DDEEF9;--sky-ink:#14304F;--sun:#FFFDF3;--glow:#FFF2C2}
/* Dusk: the middle is dark down to the horizon (75%), so the plum accent reaches 3:1 and the
   labels 4.5:1; the orange glow stays below the horizon. */
.sky[data-phase="dusk"]{--sky-top:#2E2670;--sky-mid:#411F2E;--sky-bottom:#F29E59;--sky-ink:#FFF4EA;--sun:#FFD7A0;--glow:#FFB36B;
  background:linear-gradient(180deg,var(--sky-top) 0%,var(--sky-mid) 55%,var(--sky-mid) 75%,var(--sky-bottom) 100%)}
.sky[data-phase="night"]{--sky-top:#07061C;--sky-mid:#16134A;--sky-bottom:#2E2A6B;--sky-ink:#E9E6FF;--sun:#F1EEFF;--glow:#B9B0FF}
.sky svg{position:absolute;inset:0;width:100%;height:100%}
.sky .stars{opacity:0;transition:opacity 1.2s ease}
.sky[data-phase="night"] .stars{opacity:1}
.sky[data-phase="dusk"] .stars{opacity:.35}
/* The clock sits 9% up from the bottom of the sky, so at dusk its digits stay above the
   brightest orange (3:1 as large text) at every sky size. */
.sky-clock{position:absolute;right:1.5rem;bottom:9%;margin:0;line-height:1;color:var(--sky-ink);font-family:var(--display);font-size:1.6rem;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.arc-track{fill:none;stroke:var(--sky-ink);stroke-opacity:.35;stroke-width:1.2;stroke-dasharray:2 6}
/* Morning and evening accents: the same arc path as the dotted track, with only their stretch drawn
   (stroke-dasharray), so they always sit exactly on the arc, above the horizon. App colours. */
.arc-window{fill:none;stroke-width:6;stroke-linecap:round}
.arc-morning{stroke:#A97C1C}
.arc-evening{stroke:#B055B0}
.arc-label{fill:var(--sky-ink);font:700 13px var(--body)}
.arc-sub{fill:var(--sky-ink);font:600 11px var(--body);opacity:.85}
.horizon{stroke:var(--sky-ink);stroke-opacity:.4;stroke-width:1}
.sun-core{fill:var(--sun)}
.sun-halo{fill:var(--glow);opacity:.45}

/* ---------- 2. How it works ---------- */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,3rem);position:relative}
.steps::before{content:"";position:absolute;left:0;right:0;top:19px;height:1.5px;background:var(--line)}
.steps li{position:relative;padding-top:3.5rem}
/* Step numbers: coral, same in light and dark. Large text, so 3:1 is enough (light 3.3:1, dark 4.9:1).
   The background patch interrupts the connecting line around the number. */
.steps .num{position:absolute;top:0;left:0;height:40px;padding-right:.75rem;background:var(--bg);display:flex;align-items:center;font-family:var(--display);font-weight:500;font-size:clamp(1.75rem,1.5rem + .6vw,2rem);line-height:1;color:var(--coral)}
.steps h3{font-size:clamp(1.2rem,1.1rem + .35vw,1.35rem);margin-bottom:.5rem;max-width:24ch}
.steps p{color:var(--muted);max-width:34ch}
@media (max-width:760px){
  .steps{grid-template-columns:1fr;gap:2.25rem;padding-left:3.25rem}
  .steps::before{left:19px;right:auto;top:0;bottom:0;width:1.5px;height:auto}
  .steps li{padding-top:.35rem}
  .steps .num{left:-3.25rem;width:40px;padding-right:0;justify-content:center}
}

/* ---------- 3. Plans ---------- */
.plans-section{background:var(--surface-2)}
.plans{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.5rem);align-items:stretch}
.plan{display:flex;flex-direction:column;gap:.8rem;background:var(--surface);border:1.5px solid var(--line);border-radius:24px;padding:clamp(1.5rem,3vw,2rem)}
.plan.featured{border:2px solid var(--violet)}
.plan-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;min-height:30px}
.plan-name{font-size:1.2rem}
.badge{display:inline-flex;align-items:center;padding:.25rem .75rem;border-radius:999px;border:1.5px solid var(--gold);background:color-mix(in srgb,var(--gold) 12%,transparent);color:var(--gold-text);font-weight:600;font-size:.82rem;white-space:nowrap}
.price{font-family:var(--display);font-weight:500;font-size:2.1rem;letter-spacing:-.03em;line-height:1.1}
.caption{color:var(--muted);font-weight:600;font-size:.95rem;margin-top:-.35rem}
.plan p.text{color:var(--muted)}
.plan .gift{font-weight:700}
.plan .btn{margin-top:auto;width:100%}
.plans-line{text-align:center;color:var(--muted);margin:1.75rem auto 0;max-width:60ch}
@media (max-width:860px){
  .plans{grid-template-columns:1fr;max-width:520px;margin-inline:auto}
}

/* ---------- 4. Short answers ---------- */
.faq{display:grid;max-width:820px}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;min-height:44px;padding:1.25rem 2.5rem 1.25rem 0;font-weight:700;font-size:1.2rem;line-height:1.35;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:.4rem;top:50%;width:11px;height:11px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .2s ease}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq details p{padding:0 0 1.35rem;color:var(--muted);max-width:64ch}

/* ---------- 5. Final call to action ---------- */
.final{padding-top:0}
.final-box{border-radius:32px;padding:clamp(2.75rem,7vw,5.5rem) clamp(1.5rem,5vw,4rem);text-align:center;color:#F4F1FF;
  background:radial-gradient(120% 90% at 50% 110%,#F29E59 0%,#B4567F 38%,#2E2670 75%,#12102E 100%)}
.final-box .fin-pre{margin:0 auto 1.1rem;max-width:44ch;color:#E3DDF7}
.final-box h2{margin:0 auto;max-width:18ch;font-size:clamp(1.85rem,1.2rem + 2.4vw,2.9rem)}
/* The full stop as a coral dot, .603em (the size of the earlier logo dot, 14px on 23.2px),
   on the baseline, a .15em gap after the last letter. The last word and the dot stay together. */
.dot-end{white-space:nowrap}
/* The dot is the heading's real full stop ("."), drawn as the coral circle: the character itself
   is transparent, so copying and screen readers see one ordinary full stop.
   overflow:hidden puts the box's baseline at its bottom edge, so the circle sits on the baseline. */
.goal-dot{display:inline-block;width:.603em;height:.603em;margin-left:.15em;border-radius:50%;background:var(--coral);vertical-align:baseline;overflow:hidden;color:transparent;line-height:.603em}
/* On a machine-translated page (Google Translate puts translated-ltr or translated-rtl on <html>) the
   translator writes its own plain "." at the end of the sentence, so the coral dot steps aside and that
   plain full stop is the only one. Untranslated EN and BG pages are unchanged. */
html.translated-ltr .goal-dot,html.translated-rtl .goal-dot{display:none}
.final-box .btn{margin-top:2rem}

/* ---------- 6. Contact ---------- */
.contact{padding-top:0}
.contact-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;padding:clamp(1.75rem,4vw,3rem);border-radius:28px;background:var(--surface);border:1.5px solid var(--line)}
.contact-card h2{margin-bottom:.6rem}
.contact-card p{color:var(--muted)}
.mail-row{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem}
.mail-link{font-weight:700;font-size:clamp(1.25rem,1rem + 1vw,1.7rem);overflow-wrap:anywhere}
.icon-btn{display:inline-grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%;border:1.5px solid var(--line);background:transparent;color:var(--ink);cursor:pointer}
.icon-btn:hover{border-color:var(--ink)}
.icon-btn svg{width:20px;height:20px}
/* Copy email: a quiet pill with icon and label (not violet: it copies, it doesn't go anywhere) */
.copy-btn{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;padding:0 1rem;border-radius:999px;border:1.5px solid var(--line);background:transparent;color:var(--ink);font:600 .95rem/1.2 var(--body);cursor:pointer}
.copy-btn:hover{border-color:var(--ink)}
.copy-btn svg{width:18px;height:18px;flex:none}
/* Topic buttons: each opens an email with the subject filled in */
.topics{flex-basis:100%;border-top:1px solid var(--line);padding-top:1.5rem}
.topics p{margin-bottom:.9rem}
.topic-row{display:flex;flex-wrap:wrap;gap:.75rem}
@media (max-width:640px){ .topic-row .btn{width:100%} }
.copied{display:inline-flex;align-items:center;gap:.35rem;color:var(--teal-text);font-weight:600}
.copied svg{width:18px;height:18px}

/* ---------- Early-access form ---------- */
.dialog{border:0;padding:0;border-radius:28px;width:min(500px,calc(100% - 1.5rem));max-height:calc(100dvh - 1.5rem);overflow:auto;background:var(--surface);color:var(--ink);box-shadow:0 40px 90px -30px rgb(18 17 42 / .55)}
.dialog::backdrop{background:rgb(18 17 42 / .55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.dialog-body{display:grid;gap:1.15rem;padding:clamp(1.5rem,5vw,2.25rem)}
.dialog-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.dialog h2{font-size:clamp(1.3rem,1.1rem + 1vw,1.65rem);max-width:none}
.field{display:grid;gap:.45rem}
.field label{font-weight:600;font-size:.95rem}
.field input{min-height:54px;width:100%;border-radius:14px;border:1.5px solid var(--input);background:var(--bg);color:var(--ink);font:400 1.05rem var(--body);padding:0 1rem}
.field input:focus-visible{outline:3px solid var(--violet);outline-offset:1px}
.field.invalid input{border:2.5px solid var(--ink)}
.err{display:flex;align-items:flex-start;gap:.45rem;color:var(--ink);font-size:.95rem}
.err svg{width:18px;height:18px;flex:none;margin-top:.15em}
.consent{display:grid;grid-template-columns:auto 1fr;gap:.75rem;align-items:start;min-height:44px;cursor:pointer;font-size:.97rem}
.consent input{width:22px;height:22px;margin:.1rem 0 0;accent-color:var(--violet);cursor:pointer}
.consent-wrap.invalid .consent input{outline:2.5px solid var(--ink);outline-offset:2px}
.form-grid{display:grid;gap:1.15rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dialog .btn-primary{width:100%}
.dialog .btn-primary[disabled]{opacity:.65;cursor:wait}
.done{display:grid;gap:1rem;justify-items:start}
.done-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:color-mix(in srgb,var(--teal) 16%,var(--surface));color:var(--teal-text)}
.done-mark svg{width:26px;height:26px}
.done p{font-size:1.1rem}
