/* CalcuBoss — public pages (landing, legal). No external resources. */
:root {
  --font: ui-rounded, "Nunito", "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --bg: linear-gradient(160deg, #fdf2f8 0%, #f5f3ff 55%, #e0f2fe 100%);
  --bg-solid: #f8f1fb;
  --surface: #ffffff;
  --surface-2: #faf5ff;
  --text: #4a044e;
  --heading: #3b0343;
  --text-soft: #6b3a70;
  --primary: #d946ef;
  --primary-dark: #a21caf;
  --accent: #8b5cf6;
  --link: #a21caf;
  --btn: #c026d3;
  --btn-shadow: #86198f;
  --soft-shadow: #e9d5ff;
  --border: rgba(74, 4, 78, 0.1);
  --chip-bg: #fae8ff;
  --chip-text: #86198f;
  --card-shadow: 0 6px 0 rgba(162, 28, 175, 0.1), 0 18px 40px rgba(88, 28, 135, 0.08);
  --focus: #6d28d9;
  --frame: #2e1065;
  --grad-text: linear-gradient(90deg, #c026d3, #7c3aed);
  --band: linear-gradient(135deg, #c026d3 0%, #9333ea 55%, #7c3aed 100%);
  --ok: #15803d;
  --radius: 28px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: linear-gradient(160deg, #1f0b2c 0%, #170f33 55%, #0b1b2e 100%);
    --bg-solid: #170f2b;
    --surface: #26133a;
    --surface-2: #2f1846;
    --text: #fbeafe;
    --heading: #ffffff;
    --text-soft: #dcc3e6;
    --link: #f5a3ff;
    --btn-shadow: #6b1270;
    --soft-shadow: #12081d;
    --border: rgba(255, 255, 255, 0.12);
    --chip-bg: #3b1a52;
    --chip-text: #f5d0fe;
    --card-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.3);
    --focus: #f0abfc;
    --frame: #0c0614;
    --grad-text: linear-gradient(90deg, #f0abfc, #c4b5fd);
    --band: linear-gradient(135deg, #a21caf 0%, #7e22ce 55%, #6d28d9 100%);
    --ok: #86efac;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-solid);
  background-image: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.emoji {
  font-family: var(--emoji);
  font-style: normal;
  line-height: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 800;
  box-shadow: var(--card-shadow);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- header ---------- */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 900;
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 40px;
  height: 40px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  background: var(--surface);
}

.lang-link {
  border: 2px solid var(--border);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-sections {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.15rem;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .site-nav .btn-sm {
    padding-inline: 0.8em;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 54px;
  padding: 0.6em 1.5em;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(4px);
}

.btn-primary {
  background: var(--btn);
  color: #fff;
  box-shadow: 0 6px 0 var(--btn-shadow), 0 14px 26px rgba(162, 28, 175, 0.25);
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--btn-shadow);
}

.btn-soft {
  background: var(--surface);
  color: var(--heading);
  box-shadow: 0 6px 0 var(--soft-shadow), 0 14px 26px rgba(88, 28, 135, 0.08);
}

.btn-soft:active {
  box-shadow: 0 2px 0 var(--soft-shadow);
}

.btn-white {
  background: #fff;
  color: #86198f;
  box-shadow: 0 6px 0 #581c87;
}

.btn-sm {
  min-height: 42px;
  font-size: 1rem;
  padding: 0.4em 1.1em;
  box-shadow: 0 4px 0 var(--btn-shadow);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: 24px 64px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    padding-block: 48px 88px;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 800;
  font-size: 0.95rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin: 16px 0 12px;
  letter-spacing: -0.025em;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--heading);
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 14px;
  margin-bottom: 26px;
}

@media (max-width: 400px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.95rem;
}

.promises li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 540px;
  width: 100%;
  margin-inline: auto;
  padding-block: 10px 30px;
}

.hero-visual .phone:nth-child(1) {
  transform: rotate(-4deg);
}

.hero-visual .phone:nth-child(2) {
  transform: rotate(4deg) translateY(46px);
}

.hero-visual .deco {
  position: absolute;
  font-size: clamp(2rem, 6vw, 3rem);
  pointer-events: none;
  z-index: 1;
}

.deco.d1 {
  left: -4px;
  top: -8px;
}

.deco.d2 {
  right: 0;
  bottom: -6px;
}

.deco.d3 {
  left: 44%;
  top: 38%;
}

@media (prefers-reduced-motion: no-preference) {
  .deco {
    animation: bob 5s ease-in-out infinite;
  }
  .deco.d2 {
    animation-delay: -2s;
  }
  .deco.d3 {
    animation-delay: -3.5s;
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* ---------- device frames ---------- */
.phone {
  margin: 0;
  padding: 7px;
  border-radius: 34px;
  background: var(--frame);
  box-shadow: 0 24px 50px rgba(59, 7, 100, 0.28);
  max-width: 280px;
  width: 100%;
  justify-self: center;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.browser {
  margin: 0;
  border-radius: 22px;
  background: var(--frame);
  padding: 30px 7px 7px;
  position: relative;
  box-shadow: 0 24px 50px rgba(59, 7, 100, 0.25);
}

.browser::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f472b6;
  box-shadow: 16px 0 0 #facc15, 32px 0 0 #4ade80;
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
}

figcaption {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 14px;
}

.browser figcaption,
.phone figcaption {
  color: #f5d0fe;
  margin: 10px 8px 4px;
}

/* ---------- sections ---------- */
.section {
  padding-block: 56px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 80px;
  }
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--link);
  margin-bottom: 4px;
}

.section h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  margin: 0 0 14px;
}

.section-head p {
  color: var(--text-soft);
  font-size: 1.15rem;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--card-shadow);
}

.card h3 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
}

.ico {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--chip-bg);
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.surface-band {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  border-block: 1px solid var(--border);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.stats li {
  text-align: center;
}

.stats b {
  display: block;
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  line-height: 1;
  font-weight: 900;
  color: var(--link);
  margin-bottom: 6px;
}

.stats span {
  font-weight: 800;
  color: var(--heading);
}

.grades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
}

.grades li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 0 var(--soft-shadow);
}

.grades b {
  font-size: 1.25rem;
  color: var(--heading);
  line-height: 1.2;
}

.grades small {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.85rem;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .split.reverse > :first-child {
    order: 2;
  }
}

.split h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}

.phones.single {
  grid-template-columns: minmax(0, 280px);
  justify-content: center;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shot figcaption {
  max-width: 24em;
}

@media (max-width: 480px) {
  .site-nav .btn-sm {
    display: none;
  }
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 70px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--btn-shadow);
}

.steps strong {
  display: block;
  color: var(--heading);
  font-size: 1.1rem;
}

/* grids */
.grid-3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid-4 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

/* concrete → pictorial → abstract */
.foundations {
  margin-top: 40px;
}

.foundations > h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  text-align: center;
  margin: 0 0 20px;
}

.cpa figure {
  margin: 0;
  text-align: center;
}

.cpa svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 4px auto 12px;
}

.cpa figcaption {
  margin: 0;
  color: var(--heading);
  font-size: 1.1rem;
  font-weight: 900;
}

.cpa p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-top: 4px;
}

.svg-ink {
  stroke: var(--heading);
}

.svg-ink-fill {
  fill: var(--heading);
}

.svg-paper {
  fill: var(--surface-2);
}

.pillars {
  margin-top: 18px;
}

.pillars .ico {
  width: 50px;
  height: 50px;
  font-size: 1.6rem;
  border-radius: 16px;
}

/* features */
.feature-shots {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.themes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
}

.themes .emoji {
  font-size: 1.5rem;
}

/* privacy */
.privacy-card {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .privacy-card {
    grid-template-columns: 1.2fr 1fr;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 36px;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.big-emoji {
  font-size: clamp(4rem, 12vw, 6.5rem);
  text-align: center;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 var(--soft-shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 64px 18px 22px;
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--heading);
  border-radius: 22px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 1.3rem;
  font-weight: 900;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  padding: 0 22px 20px;
}

.faq .answer p {
  margin: 0 0 10px;
}

.faq .answer ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}

/* CTA band */
.cta-band {
  background: var(--band);
  color: #fff;
  border-radius: 36px;
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  box-shadow: 0 10px 0 rgba(88, 28, 135, 0.35);
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-band p {
  margin: 0 auto 26px;
  max-width: 36em;
  font-size: 1.15rem;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px;
  padding-block: 40px 48px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.site-footer a {
  font-weight: 700;
}

.site-footer .tiny {
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- documents (privacy, legal) ---------- */
.doc {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 12px 24px;
}

.doc article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 56px);
  box-shadow: var(--card-shadow);
}

.doc h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 10px 0 8px;
}

.doc h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
  margin: 2em 0 0.5em;
}

.doc h3 {
  font-size: 1.15rem;
  margin: 1.5em 0 0.4em;
}

.doc p,
.doc li {
  line-height: 1.7;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .updated {
  color: var(--text-soft);
  font-weight: 700;
  margin: 0 0 18px;
}

.doc .summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 22px 0 8px;
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.doc .summary ul {
  margin: 0;
}

.doc address {
  font-style: normal;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
}

.doc .toc {
  border-left: 4px solid var(--primary);
  padding: 4px 0 4px 16px;
  margin: 20px 0;
}

.doc .toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 800;
  margin-bottom: 6px;
}
