/* ==========================================================
   nuoora – shared styles for all pages
   ========================================================== */

/* ---------- Fonts: self-hosted from /fonts (see fonts/README.md) ----------
   Each weight comes in two files: Latin and Cyrillic. The browser loads only
   the file whose characters appear on the page (unicode-range). */
@font-face{font-family:"Unbounded";src:url("/fonts/unbounded-latin-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";src:url("/fonts/unbounded-cyrillic-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";src:url("/fonts/unbounded-latin-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";src:url("/fonts/unbounded-cyrillic-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-latin-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-cyrillic-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-latin-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-cyrillic-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-latin-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Nunito";src:url("/fonts/nunito-cyrillic-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* ---------- Colour tokens ---------- */
:root{
  /* base, light */
  --bg:#F1F0F8;
  --surface:#FFFFFF;
  --surface-2:#E7E5F3;
  --ink:#1B1A33;
  --muted:#5B5976;
  --line:#D6D3E8;
  --input:#857CBA;
  /* accents: same in both modes, one meaning each */
  --violet:#7664D8;   /* links, outline buttons, the yearly card border, focus rings */
  --violet-solid:#6653CE;        /* filled buttons, white text 5.7:1; same in light and dark */
  --violet-solid-hover:#5A47C0;  /* filled buttons on hover, white text 6.8:1 */
  --coral:#E0573A;    /* the goal: logo dot, tab icon, step numbers in How it works */
  --gold:#A97C1C;     /* the "Recommended" label */
  --teal:#2B8A84;     /* done or saved */
  /* small accent text: darker in light mode */
  --violet-text:#6653CE;
  --gold-text:#856108;
  --teal-text:#24736E;

  --display:"Unbounded","Arial Black",system-ui,sans-serif;
  --body:"Nunito","Segoe UI",system-ui,-apple-system,sans-serif;
  --wrap:1160px;
  --header-h:68px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#12112A;
    --surface:#1C1A3A;
    --surface-2:#252347;
    --ink:#ECEAF7;
    --muted:#A9A6C6;
    --line:#34315C;
    --violet-text:#A497F2;
    --gold-text:#E9C46A;
    --teal-text:#6FCBC3;
    color-scheme:dark;
  }
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
/* Standard Cyrillic letter shapes in every font, the same rule as the app: the Bulgarian
   locale forms are off for the whole page, also inside lang="bg", so д, т, п and к look the
   same in Unbounded and Nunito. Every element inherits it from <html>. The !important is
   needed because the font: shorthand (buttons, the language switch, the sky labels, the form) resets
   font-feature-settings to normal; tabular numbers use font-variant-numeric, not this. */
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 16px);font-feature-settings:"locl" 0}
html *,html *::before,html *::after{font-feature-settings:inherit !important}
/* Safari and iOS ignore "locl" 0 for text marked lang="bg" and still draw the Bulgarian forms in
   Unbounded. WebKit picks the letter forms from its own -webkit-locale property (normally taken
   from lang), so it is set to a locale without Bulgarian forms. lang="bg" stays in the HTML for
   screen readers and search engines; other browsers ignore this line. */
html,html *,html *::before,html *::after{-webkit-locale:"en" !important}
@media (prefers-reduced-motion: no-preference){html{scroll-behavior:smooth}}
/* The page never scrolls sideways: anything wider than the screen is cut off at the edge instead
   (tables scroll inside their own box). clip, unlike hidden, keeps the sticky header working. */
html,body{overflow-x:clip}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-weight:400;font-size:1.0625rem;line-height:1.6}
img,svg{max-width:100%;display:block}
/* Unbounded only for the logo, page and section headlines (h1, h2) and large numbers and prices.
   Subheadings, card titles and FAQ questions (h3, summary) are Nunito 700. */
h1,h2{font-family:var(--display);font-weight:400;letter-spacing:-.02em;line-height:1.15;margin:0}
h3{font-family:var(--body);font-weight:700;font-size:1.25rem;letter-spacing:0;line-height:1.3;margin:0}
h2{font-size:clamp(1.5rem,1.1rem + 1.7vw,2.25rem);max-width:22ch}
:lang(bg) h2{font-size:clamp(1.35rem,1rem + 1.5vw,2rem)}
p{margin:0}
/* No lone short word on the last line: balanced headings, "pretty" paragraphs. Where a browser
   still leaves one, the text joins its last two words with a non-breaking space. */
h1,h2,h3,h4,summary,.plan-name,.btn,td,th{text-wrap:balance}
p,li,dd,label{text-wrap:pretty}
[hidden]{display:none !important}
/* Visually hidden, still read by screen readers and copied with the text */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.wrap{width:min(100% - 2rem, var(--wrap));margin-inline:auto}
.lede{color:var(--muted);font-size:1.125rem;max-width:56ch}
.brand{font-family:var(--display);font-weight:400;font-size:.86em;letter-spacing:0}

/* Links: normal text colour, violet underline */
a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--violet);text-decoration-thickness:2px;text-underline-offset:.22em}
a:hover{color:var(--violet-text);text-decoration-thickness:3px}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px;border-radius:6px}
/* Focus ring only for keyboard focus: none after a mouse click or tap, also when the script
   moves focus (site.js sets data-input). Text fields keep theirs: it shows where you type. */
html[data-input="pointer"] :focus-visible:not(input[type="email"],input[type="text"],textarea){outline:none}

.skip{position:absolute;left:-999px;top:0;z-index:100;background:var(--violet-solid);color:#fff;padding:.7rem 1rem;border-radius:0 0 12px 0}
.skip:focus{left:0}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:52px;padding:0 1.5rem;border-radius:999px;font:600 1rem/1.2 var(--body);text-align:center;text-decoration:none;cursor:pointer;border:2px solid var(--violet);transition:background-color .15s ease,color .15s ease,transform .15s ease}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--violet-solid);border-color:var(--violet-solid);color:#fff}
.btn-primary:hover{background:var(--violet-solid-hover);border-color:var(--violet-solid-hover);color:#fff}
.btn-outline{background:transparent;color:var(--violet-text)}
.btn-outline:hover{background:color-mix(in srgb,var(--violet) 12%,transparent);color:var(--violet-text)}
.btn-small{min-height:44px;padding:0 1.15rem;font-size:.95rem}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 85%,transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
.header-inner{display:flex;align-items:center;gap:1rem;min-height:var(--header-h)}
.logo{display:inline-flex;align-items:center;gap:.55rem;font-family:var(--display);font-weight:500;font-size:1.45rem;letter-spacing:-.03em;color:var(--ink);text-decoration:none;min-height:44px}
.logo:hover{color:var(--ink)}
/* The logo is the app's inline SVG (src/components/Logo.tsx in nuoora-mvp): Unbounded 500
   outlines of "nuoora" with the coral dot after the word, on the baseline, so browser
   translation can't change it. 1000 units = the font size of .logo; the dot is .4167em with a
   .1667em gap, as in the app. */
.logo-mark{flex:none;height:.62em;width:auto;overflow:visible}
.logo-dot{fill:var(--coral)}
.header-inner .lang{margin-left:auto}

/* Language switch */
.lang{display:inline-flex;border:1.5px solid var(--line);border-radius:999px;padding:3px}
.lang a{display:inline-flex;position:relative;align-items:center;justify-content:center;min-width:44px;min-height:38px;color:var(--muted);font:600 .85rem/1 var(--body);padding:0 .7rem;border-radius:999px;text-decoration:none}
/* the visible pill is 38px; the tap area reaches 44px */
.lang a::after{content:"";position:absolute;inset:-3px 0}
.lang a:hover{color:var(--ink)}
.lang a[aria-current="page"]{background:var(--ink);color:var(--bg)}

@media (max-width:640px){ .site-header .btn{display:none} }

/* ---------- Footer ---------- */
.site-footer{padding:2.5rem 0 3rem;color:var(--muted);font-size:.95rem;border-top:1px solid var(--line)}
/* One line on desktop in both languages (the Bulgarian line is the longer one); balanced where it wraps */
.foot-note{font-size:.875rem;color:var(--muted);max-width:92ch;margin-bottom:1rem;text-wrap:balance}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem}
.foot-links{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem 1.5rem}
.foot-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
.foot-rights{margin-top:1rem;color:var(--ink)}

/* Placeholders that still need a real value */
.ph{text-decoration:underline dashed var(--gold);text-decoration-thickness:1.5px;text-underline-offset:.25em}

/* ---------- Mobile sticky button ---------- */
.mbar{display:none}
@media (max-width:640px){
  .mbar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:.75rem 16px calc(.75rem + env(safe-area-inset-bottom));background:color-mix(in srgb,var(--bg) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);transform:translateY(110%);transition:transform .25s ease;visibility:hidden}
  .mbar.show{transform:none;visibility:visible}
  .mbar .btn{width:100%}
  /* Room at the bottom of the page so the bar never covers content (bar: 52px button + 2 × .75rem + border) */
  body:has(.mbar){padding-bottom:calc(52px + 1.5rem + 1px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion: reduce){ .mbar{transition:none} }

@media (prefers-reduced-motion: reduce){ *{transition:none !important;animation:none !important} }
