/* Scala Websites — one stylesheet, no scripts. Mobile first. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --canvas: #f8fafc;
  --surface: #ffffff;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --accent: #0369a1;
  --accent-dark: #075985;
  --accent-soft: #e0f2fe;
  --good: #0f766e;
  --good-soft: #ccfbf1;
  --on-navy: #ffffff;
  --on-navy-muted: #cbd5e1;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 1px rgb(15 23 42 / 0.04);
  --shadow-2: 0 10px 30px -12px rgb(15 23 42 / 0.18), 0 2px 6px rgb(15 23 42 / 0.06);
  --shadow-3: 0 30px 60px -24px rgb(15 23 42 / 0.28), 0 6px 16px rgb(15 23 42 / 0.08);

  --wrap: 72rem;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { top: var(--s-4); color: var(--on-navy); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.button svg { width: 1.15rem; height: 1.15rem; flex: none; }

.button--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-1); }
.button--primary:hover { background: var(--accent-dark); color: #fff; }

.button--quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button--quiet:hover { border-color: var(--ink-2); color: var(--ink); }

.button--light { background: #fff; color: var(--navy); }
.button--light:hover { background: var(--accent-soft); color: var(--navy); }

.button--small { min-height: 2.75rem; padding: 0.55rem 1.1rem; font-size: 0.975rem; }
.button--block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(248 250 252 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 2rem; height: 2rem; flex: none; }
.brand__sub { font-weight: 500; color: var(--muted); }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--s-1); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.nav__link:hover { background: #eef2f7; color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.header-actions .button { display: none; white-space: nowrap; }
@media (min-width: 30rem) { .header-actions .button { display: inline-flex; } }

/* Mobile menu: a native disclosure, so it works without scripts. */
.menu { position: relative; }
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 1.25rem; height: 1.25rem; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(18rem, calc(100vw - 2 * var(--gutter)));
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 var(--s-4);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.menu__panel a:hover { background: var(--canvas); }

@media (min-width: 60rem) {
  .nav { display: block; }
  .menu { display: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--s-8); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 44rem; margin-bottom: var(--s-7); }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw + 1.1rem, 3.9rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 2.2vw + 1.1rem, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }

.lede { margin-top: var(--s-4); color: var(--muted); font-size: 1.15rem; max-width: 40rem; text-wrap: pretty; }

@media (min-width: 60rem) {
  .section { padding-block: var(--s-9); }
}

/* ---------- Hero ---------- */

.hero { padding-block: var(--s-7) var(--s-8); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__lede { margin-top: var(--s-5); color: var(--ink-2); font-size: 1.2rem; max-width: 34rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__note { margin-top: var(--s-4); color: var(--muted); font-size: 0.975rem; }

@media (min-width: 60rem) {
  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-8); }
}

/* Illustration: a practice site in a browser frame. Decorative. */
.mock { position: relative; max-width: 34rem; margin-inline: auto; padding: 0 0 2.5rem 0; }
.mock__window {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line-strong); }
.mock__url {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__body { padding: 1.1rem 1.25rem 1.4rem; }
.mock__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.mock__logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.mock__logo span { width: 1.6rem; height: 1.6rem; border-radius: 8px; background: var(--good); }
.mock__langs { display: flex; gap: 0.25rem; }
.mock__langs span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.mock__langs span:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.mock__hero { margin-top: 1.1rem; padding: 1.25rem; border-radius: 14px; background: linear-gradient(140deg, #ecfeff, #e0f2fe 60%, #f0f9ff); }
.mock__title { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.mock__sub { margin-top: 0.35rem; color: var(--ink-2); font-size: 0.875rem; }
.mock__cta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.mock__cta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 650;
}
.mock__cta span:first-child { background: var(--good); border-color: var(--good); color: #fff; }
.mock__cta svg { width: 0.85rem; height: 0.85rem; }
.mock__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.9rem; }
.mock__card { padding: 0.7rem; border: 1px solid var(--line); border-radius: 12px; }
.mock__line { height: 0.45rem; border-radius: 999px; background: #e2e8f0; }
.mock__line + .mock__line { margin-top: 0.4rem; }
.mock__line--short { width: 60%; }
.mock__line--dark { background: #94a3b8; width: 75%; }

.mock__float {
  position: absolute;
  right: -0.25rem;
  bottom: 0;
  width: min(15.5rem, 78%);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: 0.85rem;
}
.mock__float strong { display: block; margin-bottom: 0.45rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mock__float li { display: flex; align-items: center; gap: 0.45rem; font-weight: 550; }
.mock__float li + li { margin-top: 0.3rem; }
.mock__float svg { width: 1rem; height: 1rem; flex: none; color: var(--good); }

@media (min-width: 60rem) {
  .mock { margin-inline: 0 0; margin-left: auto; }
  .mock__float { right: -1.25rem; }
}

/* ---------- Assurances strip ---------- */

.assure { border-block: 1px solid var(--line); background: var(--surface); }
.assure__list { display: grid; gap: var(--s-4) var(--s-6); padding-block: var(--s-5); }
.assure__item { display: flex; align-items: flex-start; gap: var(--s-3); font-weight: 550; line-height: 1.35; }
.assure__item svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.05rem; color: var(--good); }
.assure__item small { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.9rem; font-weight: 400; }

@media (min-width: 40rem) { .assure__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .assure__list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Service cards ---------- */

.cards { display: grid; gap: var(--s-4); }
.card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s-4);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.card__icon svg { width: 1.4rem; height: 1.4rem; }
.card p { margin-top: var(--s-2); color: var(--muted); }

.section--tint .card { background: var(--canvas); box-shadow: none; }

@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* ---------- Steps (the staircase) ---------- */

.steps { display: grid; gap: var(--s-4); counter-reset: step; }
.step {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step p { margin-top: var(--s-2); color: var(--muted); }

@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(4, 1fr); align-items: end; gap: var(--s-5); }
  .step:nth-child(1) { margin-bottom: 0; }
  .step:nth-child(2) { margin-bottom: 2rem; }
  .step:nth-child(3) { margin-bottom: 4rem; }
  .step:nth-child(4) { margin-bottom: 6rem; }
}

/* ---------- Plans ---------- */

.plan-group + .plan-group { margin-top: var(--s-8); }
.plan-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-5); }
.plan-group__head p { color: var(--muted); max-width: 36rem; }

.plans { display: grid; gap: var(--s-4); }
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.plan__name { font-size: 1.2rem; font-weight: 700; }
.plan__for { margin-top: var(--s-1); color: var(--muted); font-size: 0.975rem; min-height: 2.9em; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.plan__amount { font-size: 2.5rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.plan__per { color: var(--muted); font-weight: 500; }
.plan__features { flex: 1; margin-block: var(--s-5); }
.plan__features li { position: relative; padding-left: 1.85rem; }
.plan__features li + li { margin-top: 0.6rem; }
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--good);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__features .plan__inherit { padding-left: 0; color: var(--ink-2); font-weight: 650; }
.plan__features .plan__inherit::before { content: none; }

.plan-notes { margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--ink-2); }
.plan-notes li { position: relative; padding-left: 1.1rem; }
.plan-notes li + li { margin-top: 0.4rem; }
.plan-notes li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--line-strong); }

@media (min-width: 52rem) { .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* ---------- FAQ ---------- */

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.75rem;
  padding-block: var(--s-4);
  font-weight: 650;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 44rem; }
.faq details p + p { margin-top: calc(-1 * var(--s-3)); }

/* ---------- Contact band ---------- */

.band { background: var(--navy); color: var(--on-navy); }
.band__inner { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-8); }
.band h2 { color: #fff; }
.band p { margin-top: var(--s-4); color: var(--on-navy-muted); font-size: 1.15rem; max-width: 36rem; }
.band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.band__email { color: #fff; font-size: 1.05rem; word-break: break-word; }
.band__email:hover { color: var(--accent-soft); }
.band small { display: block; margin-top: var(--s-2); color: var(--on-navy-muted); font-size: 0.925rem; max-width: 26rem; }

@media (min-width: 60rem) {
  .band__inner { grid-template-columns: 1.2fr 0.8fr; gap: var(--s-8); }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: var(--s-7) var(--s-6); background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.975rem; }
.site-footer__grid { display: grid; gap: var(--s-6); }
.site-footer__about { max-width: 26rem; }
.site-footer__about p { margin-top: var(--s-3); }
.site-footer h2 { margin-bottom: var(--s-3); color: var(--ink); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--ink-2); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__legal { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: 0.9rem; }

@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--s-8); }
}

/* ---------- Plain document pages (billing, terms, privacy) ---------- */

.doc { padding-block: var(--s-7) var(--s-8); }
.doc__inner { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); }
.doc__meta { margin-top: var(--s-3); color: var(--muted); }
.doc h2 { margin-top: var(--s-7); font-size: 1.45rem; }
.doc h3 { margin-top: var(--s-5); }
.doc p, .doc ul { margin-top: var(--s-4); color: var(--ink-2); }
.doc ul { padding-left: 1.25rem; list-style: disc; }
.doc li + li { margin-top: var(--s-2); }
.doc__callout { margin-top: var(--s-6); padding: var(--s-5); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); }
.doc__callout p:first-child { margin-top: 0; }

.notfound { padding-block: var(--s-9); text-align: center; }
.notfound p { margin: var(--s-4) auto var(--s-6); color: var(--muted); max-width: 30rem; }

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

@media print {
  .site-header, .band, .mock { display: none; }
  body { background: #fff; }
}
