/* RYTAVO public website (#050A) – light, mobile-first. Tokens follow src/Rytavo.Web/wwwroot/brand/rytavo/rytavo.tokens.css. */
:root {
  --navy: #101E32;
  --blue: #3361F1;
  --cyan: #35BBF4;
  --indigo: #2700BC;
  --bg: #F5F7FC;
  --surface: #FFFFFF;
  --text: #101E32;
  --muted: #516178;
  --border: #D7DFEA;
  --action: #2453D4;
  --action-hover: #1C43B3;
  --focus: #2453D4;
  --gradient: linear-gradient(135deg, #2700BC, #3361F1 50%, #35BBF4);
  --radius-control: 12px;
  --radius-card: 20px;
  --shadow-sm: 0 1px 2px rgb(16 30 50 / 6%), 0 2px 8px rgb(16 30 50 / 5%);
  --shadow-lg: 0 24px 60px -20px rgb(16 30 50 / 30%), 0 8px 24px -12px rgb(16 30 50 / 18%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-control);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn--primary { background: var(--action); color: #fff; box-shadow: 0 6px 18px -8px rgb(36 83 212 / 70%); }
.btn--primary:hover { background: var(--action-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn--secondary:hover { border-color: #AFC0D8; color: var(--navy); background: #FBFCFE; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(245 247 252 / 86%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(215 223 234 / 70%);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; border-radius: 6px; margin-right: auto; }
.brand img { height: 26px; width: auto; }
.site-nav { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--navy); font-weight: 600; font-size: 0.875rem; cursor: pointer; list-style: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; }
.lang summary .icon--sm { width: 14px; height: 14px; transition: transform .2s ease; }
.lang[open] summary .icon--sm { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.lang__menu a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-size: 0.9375rem;
}
.lang__menu a:hover { background: var(--bg); }
.lang__menu a[aria-current="page"] { font-weight: 700; color: var(--action); background: #EEF2FD; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 56px; isolation: isolate;
  background:
    radial-gradient(640px 460px at 88% 8%, rgb(53 187 244 / 17%), transparent 70%),
    radial-gradient(520px 380px at 4% 52%, rgb(39 0 188 / 6%), transparent 72%);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.875rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm);
}
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 4px rgb(53 187 244 / 18%); }
.hero h1 { font-size: clamp(2.5rem, 10vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta--center { justify-content: center; }
.note { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual .device--desktop { display: none; }
.hero__visual .device--phone { width: min(78vw, 300px); }

/* Device frames */
.device { margin: 0; }
.device img { width: 100%; }
.device--phone {
  padding: 8px; border-radius: 42px; background: #0B1424;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 8%);
}
.device--phone img { border-radius: 34px; }
.device--desktop {
  overflow: hidden; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.device__bar { display: flex; gap: 6px; padding: 10px 14px; background: #EEF2F8; border-bottom: 1px solid var(--border); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9D3E2; }

/* Sections */
.section { padding: 72px 0; }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head h2, .section__title { font-size: clamp(1.875rem, 5vw, 2.75rem); font-weight: 800; }
.section__title { margin-bottom: 32px; }
.section__lead { margin-top: 14px; font-size: 1.125rem; color: var(--muted); }
.section__more { margin-top: 28px; }
.kicker {
  margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--action);
}
.link { font-weight: 650; }

/* Pillars */
.pillars { display: grid; gap: 12px; grid-template-columns: 1fr; }
.pillar {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; height: 100%;
  padding: 18px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pillar:hover { color: var(--text); border-color: #AFC0D8; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pillar__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--gradient); color: #fff; }
.pillar strong { font-size: 1.125rem; }
.pillar > span:last-child { color: var(--muted); font-size: 0.9375rem; }

/* Feature rows */
.feature { padding: 56px 0; }
.feature__grid { display: grid; gap: 36px; align-items: center; }
.feature__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -12px rgb(51 97 241 / 80%); }
.feature__icon--light { background: rgb(255 255 255 / 12%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
.feature h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; }
.feature__tagline { margin: 8px 0 16px; font-size: 1.25rem; font-weight: 600; color: var(--action); }
.feature__copy > p:not(.feature__tagline) { color: var(--muted); max-width: 34rem; }
.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; padding: 3px; border-radius: 50%; background: #E6ECFB; color: var(--action); stroke-width: 2.4; }
.feature__media { display: flex; justify-content: center; }
.feature__media .device--phone { width: min(78vw, 320px); }
.feature__media .device--desktop { width: 100%; }

/* Sharing band */
.sharing { background: linear-gradient(140deg, #101E32 0%, #16255F 55%, #2700BC 130%); color: #fff; }
.sharing__inner { max-width: 880px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sharing h2 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 800; }
.sharing .feature__tagline { color: #8FD9FA; }
.sharing__text { color: #C9D6E8; max-width: 40rem; }
.sharing__points { display: grid; gap: 12px; margin-top: 32px; width: 100%; text-align: left; }
.sharing__points li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px 18px;
  border-radius: 16px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); color: #E7EEF8;
}
.sharing__points .icon { width: 22px; height: 22px; margin-top: 2px; color: #8FD9FA; stroke-width: 2.4; }
.sharing :focus-visible { outline-color: #fff; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; }
.steps li { padding: 24px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.steps__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Privacy cards */
.privacy { background: var(--surface); border-block: 1px solid var(--border); }
.cards { display: grid; gap: 16px; }
.card { padding: 22px; border-radius: var(--radius-card); background: var(--bg); border: 1px solid var(--border); }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px; background: #E6ECFB; color: var(--action); }
.card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.9875rem; }

/* Beta */
.beta__card {
  position: relative; max-width: 820px; margin-inline: auto; padding: 40px 24px; text-align: center;
  border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-lg);
  border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box;
}
.beta__icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 16px 32px -16px rgb(51 97 241 / 80%); }
.beta__card h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.beta__card > p { color: var(--muted); max-width: 40rem; margin-inline: auto; }
.beta__price { margin-top: 16px !important; font-weight: 700; color: var(--navy) !important; }
.beta__note { margin-top: 16px; font-size: .875rem; }

/* FAQ */
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  font-weight: 650; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { color: var(--muted); transition: transform .2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item p { padding: 0 20px 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #B5C3D7; padding: 56px 0 28px; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #8FD9FA; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__brand img { height: 30px; width: auto; }
.site-footer__claim { margin-top: 12px; color: #fff; font-weight: 600; }
.site-footer__info p + p { margin-top: 6px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.site-footer__langs ul { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer__langs a { text-decoration: none; }
.site-footer__langs a[aria-current="page"] { font-weight: 700; text-decoration: underline; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 0.875rem; }

/* 404 */
.page-404 { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.nf { text-align: center; padding: 48px 20px; }
.nf__brand { display: inline-flex; margin-bottom: 32px; }
.nf__brand img { height: 34px; width: auto; }
.nf__code { font-size: clamp(4rem, 18vw, 7rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin-top: 12px; font-size: clamp(1.5rem, 5vw, 2rem); }
.nf p[lang] { margin-top: 8px; color: var(--muted); }

/* Reveal (only when JS runs; content stays visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 560px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sharing__points { grid-template-columns: repeat(2, 1fr); }
  .beta__card { padding: 48px 40px; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .wrap { padding-inline: 32px; }
  .brand img { height: 30px; }
  .site-nav { display: flex; gap: 4px; margin-right: 8px; }
  .site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .site-nav a:hover { background: rgb(16 30 50 / 5%); color: var(--navy); }

  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
  .hero__visual { display: block; padding: 0 0 120px 72px; }
  .hero__visual .device--desktop { display: block; }
  .hero__visual .device--phone { position: absolute; left: 0; bottom: 0; width: clamp(160px, 15vw, 210px); padding: 6px; border-radius: 32px; }
  .hero__visual .device--phone img { border-radius: 26px; }

  .section { padding: 88px 0; }
  .pillars { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pillar { grid-template-columns: 1fr; row-gap: 6px; padding: 24px; align-items: start; align-content: start; }
  .pillar__icon { grid-row: auto; margin-bottom: 10px; }

  .feature { padding: 64px 0; }
  .feature__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .feature--reverse .feature__copy { order: 2; }
  .feature__media .device--phone { width: 290px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .site-footer__grid { grid-template-columns: 1.1fr 1.6fr 1fr; align-items: start; }
  .site-footer__langs ul { flex-direction: column; gap: 8px; }
}

@media (min-width: 1440px) {
  :root { --wrap: 1280px; }
  .hero h1 { font-size: 5.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pillar:hover { transform: none; }
}

@media (forced-colors: active) {
  .btn, .pillar, .card, .faq__item, .lang summary { border: 1px solid CanvasText; }
}
