/* Riddi Boligstyling: forside og priser. Tokens from the Paper file "Riddi Boligstyling". */
:root {
  --ground: #F8F3E9;
  --panel: #F2ECE0;
  --card: #FEFCF8;
  --muted: #EBE6DB;
  --line: #D6D0C4;
  --line-soft: #E6E0D4;
  --line-strong: #C9C3B7;
  --ink: #2E2D2B;
  --ink-muted: #4E4D46;
  --oliven: #71713B;
  --oliven-ink: #FAF6EE;
  --sand: #E3D4A8;
  --staal: #D3E0EA;
  --stylet: #C2EDAA;
  --stylet-ink: #386B1F;
  --overleie: #FFCCC3;
  --overleie-ink: #B31319;
  --hentes: #FFD2A8;
  --hentes-ink: #974304;
  --befaring: #BBE4FF;
  --befaring-ink: #005998;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --gutter: 96px;
  --ease-ut: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--oliven); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.display { font-family: var(--display); font-weight: 600; font-optical-sizing: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-family: var(--sans); font-weight: 600;
  font-size: 18px; line-height: 22px; padding: 18px 30px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--oliven); color: var(--oliven-ink); }
.btn-primary:hover { background: #5f5f31; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--ink); font-size: 17px; padding: 14px 28px; }
.btn-outline:hover { background: var(--ink); color: var(--card); }
.btn-outline:hover svg { stroke: var(--card); }
.link { font-size: 18px; line-height: 22px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-position: from-font; }
.link:hover { color: var(--oliven); }

/* Nav */
.nav { background: var(--staal); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo b { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 36px; letter-spacing: -0.03em; }
.logo span { font-size: 19px; line-height: 24px; font-weight: 500; color: var(--ink-muted); letter-spacing: -0.005em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a:not(.btn) { font-size: 17px; line-height: 24px; text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-links a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.nav-links .btn { font-size: 17px; padding: 13px 24px; }
.menu-btn { display: none; background: none; border: 0; padding: 4px; cursor: pointer; }
.mobile-menu { display: none; }

/* Hero */
.hero { background: var(--staal); }
.hero-slides { position: relative; }
.hero-slide { display: flex; align-items: center; gap: 72px; padding-top: 96px; padding-bottom: 72px; }
.hero-slide[hidden] { display: none; }
.hero-text { flex: 0 1 728px; display: flex; flex-direction: column; gap: 28px; }
.hero h1, .hero .h1-like { font-size: 76px; line-height: 80px; letter-spacing: -0.035em; }
.hero-lead { font-size: 21px; line-height: 33px; color: var(--ink-muted); }
.hero-ctas { display: flex; align-items: center; gap: 28px; padding-top: 8px; }
.hero-photo {
  flex: 0 0 448px; height: 480px; border-top-left-radius: 80px;
  background: url("assets/stue.jpg") no-repeat; background-size: cover; background-position: 50%;
}
.hero-slide[data-slide="2"] .hero-photo { background-size: 190%; background-position: 20% 85%; }
.hero-slide[data-slide="3"] .hero-photo { background-size: 200%; background-position: 85% 70%; }
.hero-tabs { display: flex; gap: 32px; padding-bottom: 56px; }
.hero-tab {
  flex: 1 1 0; text-align: left; background: none; border: 0; cursor: pointer;
  border-top: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); color: var(--ink-muted);
}
.hero-tab b { font-size: 16px; line-height: 22px; font-weight: 600; }
.hero-tab span { font-size: 15px; line-height: 22px; }
.hero-tab[aria-selected="true"] { border-top-color: var(--ink); }
.hero-tab[aria-selected="true"] b { color: var(--ink); }

.partner { background: var(--card); border-bottom: 1px solid var(--line-soft); text-align: center; padding: 28px 16px; color: var(--ink-muted); font-size: 16px; line-height: 24px; }

/* Sections */
.section { padding-top: 136px; padding-bottom: 128px; }
.bg-card { background: var(--card); }
.bg-ground { background: var(--ground); }
.bg-staal { background: var(--staal); }
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.sec-head h2 { font-size: 52px; line-height: 58px; letter-spacing: -0.03em; }
.sec-head p { font-size: 20px; line-height: 30px; color: var(--ink-muted); }

/* Slik virker det */
.how { display: flex; align-items: flex-start; gap: 96px; margin-top: 64px; }
.steps { flex: 0 0 520px; display: flex; flex-direction: column; gap: 44px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 24px; }
.steps .num { width: 40px; flex-shrink: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--oliven); }
.steps h3 { font-size: 20px; line-height: 28px; font-weight: 600; margin-bottom: 8px; }
.steps p { font-size: 17px; line-height: 27px; color: var(--ink-muted); }
.job-wrap { flex: 1 1 0; background: var(--ground); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.job { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.job-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.job-head h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.02em; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 18px; font-weight: 500; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.pill-sm { padding: 3px 9px; font-size: 12px; line-height: 16px; }
.p-stylet { background: var(--stylet); color: var(--stylet-ink); }
.p-overleie { background: var(--overleie); color: var(--overleie-ink); }
.p-hentes { background: var(--hentes); color: var(--hentes-ink); }
.p-befaring { background: var(--befaring); color: var(--befaring-ink); }
.job-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 22px; }
.job-row dt { color: var(--ink-muted); }
.job-row dd { margin: 0; }
.job-bar { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel); }
.bar-in { width: 67.7%; background: var(--stylet); transform-origin: left; }
.bar-gap { width: 2px; background: var(--card); }
.bar-over { flex: 1; background: var(--overleie-ink); transform-origin: left; }
.bar-legend { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bar-legend b { color: var(--overleie-ink); font-weight: 600; }
.job-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 24px 20px; font-weight: 600; font-size: 15px; line-height: 22px; gap: 16px; }
.job-sum .amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--overleie-ink); font-size: 22px; line-height: 28px; }
.task { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 8px; background: var(--card); border: 2px solid var(--oliven); font-size: 15px; line-height: 22px; }
.task .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex-shrink: 0; }
.task .txt { flex: 1; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--muted); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 500; }

/* Attention stroke */
.stroke path { stroke: var(--oliven); stroke-width: 2.5; stroke-linecap: round; fill: none; }

/* Tolv oppdrag */
.months-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; }
.months-head .sec-head { max-width: 860px; }
.months-head img { width: 236px; height: 220px; object-fit: contain; flex-shrink: 0; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 24px; margin-top: 56px; list-style: none; padding: 0; }
.month { display: flex; flex-direction: column; gap: 12px; }
.month .ph { aspect-ratio: 1; border-radius: 8px; background: url("assets/stue.jpg") no-repeat; background-size: 320%; }
.month small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.month b { display: block; font-size: 15px; line-height: 22px; }
.month .over { display: block; font-size: 15px; line-height: 22px; color: var(--overleie-ink); }
.month .sofar { padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.year-total { display: flex; justify-content: space-between; align-items: flex-start; border-top: 2px solid var(--ink); padding-top: 32px; margin-top: 56px; gap: 24px; }
.year-total p { font-size: 20px; line-height: 28px; padding-top: 34px; }
.big { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.big strong { font-family: var(--display); font-weight: 600; font-size: 64px; line-height: 68px; letter-spacing: -0.03em; }

/* Kalkulator */
.calc { display: flex; align-items: flex-start; gap: 96px; margin-top: 56px; }
.calc-side { flex: 0 0 440px; display: flex; flex-direction: column; gap: 28px; }
.calc-side .q { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: 12px; }
.calc-side p { font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--muted); }
.seg button {
  font-family: var(--sans); font-size: 16px; line-height: 20px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid transparent; background: none; color: var(--ink-muted); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 600; }
.fields { flex: 1 1 0; border-top: 1px solid var(--line); min-width: 0; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.field label { display: flex; flex-direction: column; gap: 4px; font-size: 18px; line-height: 26px; }
.field label small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.field .inp { display: flex; align-items: center; gap: 6px; width: 168px; flex-shrink: 0; padding: 12px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-strong); }
.field .inp:focus-within { border-color: var(--oliven); box-shadow: 0 0 0 2px color-mix(in srgb, var(--oliven) 25%, transparent); }
.field input { width: 100%; min-width: 0; border: 0; background: none; text-align: right; font: inherit; font-size: 22px; line-height: 28px; color: var(--ink); font-feature-settings: "tnum"; padding: 0; }
.field input:focus { outline: none; }
.field .unit { font-size: 22px; line-height: 28px; color: var(--ink); }
.result { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 56px; padding: 36px 40px; border-radius: 20px; background: var(--staal); transition: background-color .15s; }
.result.flash { background: color-mix(in srgb, var(--staal) 60%, var(--card)); }
.result p { font-size: 20px; line-height: 28px; }
.result .formula { font-size: 15px; line-height: 22px; color: var(--ink-muted); margin-top: 6px; }
.result strong { font-family: var(--display); font-weight: 600; font-size: 72px; line-height: 76px; letter-spacing: -0.03em; white-space: nowrap; }

/* Før og etter */
.compare { display: flex; gap: 96px; margin-top: 64px; }
.compare > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.compare h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.sheet-wrap, .riddi-wrap { min-height: 236px; overflow-x: auto; }
.sheet { border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; color: #222; }
.sheet th, .sheet td { border: 1px solid #D4D4D4; padding: 8px; text-align: left; background: #fff; white-space: nowrap; }
.sheet th { background: #EFEFEF; font-weight: 700; }
.sheet td.hl { background: #FFF2A8; }
.riddi-table { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14px; line-height: 20px; }
.riddi-table th { background: var(--muted); text-align: left; font-size: 13px; line-height: 18px; padding: 10px 16px; font-weight: 600; }
.riddi-table td { padding: 12px 16px; border-top: 1px solid var(--line-soft); color: var(--ink-muted); }
.riddi-table td:first-child { color: var(--ink); font-weight: 600; }
.riddi-table .pills { gap: 6px; flex-wrap: nowrap; }
.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; font-size: 17px; line-height: 26px; }
.bullets li::before { content: "•"; color: var(--oliven); width: 16px; flex-shrink: 0; }
.cta-row { display: flex; align-items: center; gap: 28px; margin-top: 64px; }
.cta-row p { font-size: 17px; line-height: 26px; color: var(--ink-muted); }

/* Sitater */
.quotes { display: flex; gap: 24px; align-items: stretch; }
.quote { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 56px 48px 48px; border-radius: 24px; background: var(--ground); margin: 0; }
.quote.lead { flex-grow: 1.35; padding-inline: 56px; }
.quote blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.02em; }
.quote.lead blockquote { font-size: 38px; line-height: 47px; }
.quote q { quotes: "«" "»"; }
.quote q::before, .quote q::after { color: var(--oliven); }
.who { display: flex; align-items: center; gap: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 22px; flex-shrink: 0; }
.who b { display: block; font-size: 17px; line-height: 24px; }
.who span { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* Priser */
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.price-head .sec-head { max-width: 860px; }
.price-head h1 { font-size: 60px; line-height: 64px; letter-spacing: -0.03em; }
.price-head h1 span { color: var(--ink-muted); }
.price-head img { width: 184px; height: 210px; object-fit: contain; flex-shrink: 0; }
.period { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-top: 10px; }
.period button { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 20px; padding: 10px 20px; border-radius: 999px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.period button[data-period="aar"] { padding: 6px 8px 6px 20px; }
.period button[aria-pressed="true"] { background: var(--ink); color: var(--card); }
.period .save { padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 18px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.plan { display: flex; flex-direction: column; gap: 28px; padding: 36px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.plan h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.plan .for { font-size: 16px; line-height: 24px; color: var(--ink-muted); margin-top: 4px; }
.plan .p { display: flex; align-items: baseline; gap: 8px; }
.plan .p strong { font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -0.03em; }
.plan .p span { font-size: 17px; line-height: 24px; color: var(--ink-muted); }
.plan .yr { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; line-height: 26px; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--oliven); flex-shrink: 0; transform: translateY(-2px); }
.plan .btn { margin-top: auto; font-size: 17px; padding: 14px 22px; }

.subhead { display: flex; flex-direction: column; gap: 8px; margin-top: 96px; }
.subhead h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.subhead p { font-size: 17px; line-height: 26px; color: var(--ink-muted); max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; list-style: none; padding: 0; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.card h3 { font-size: 17px; line-height: 24px; font-weight: 600; }
.card p { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.soon { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: var(--sand); font-size: 13px; line-height: 18px; font-weight: 500; }
.card .amt { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.card .amt strong { font-family: var(--display); font-weight: 600; font-size: 34px; line-height: 38px; letter-spacing: -0.02em; color: var(--ink); }
.see-all { display: flex; justify-content: center; margin-top: 56px; }

/* Priser-siden: tabeller */
.compare-table { width: 100%; margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; padding: 8px 28px; font-size: 15px; line-height: 22px; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.compare-table thead th { border-bottom-color: var(--line); font-weight: 600; }
.compare-table tbody th { font-weight: 400; color: var(--ink-muted); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .c { width: 200px; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.limits div { padding: 24px 28px; border-radius: 16px; background: var(--panel); }
.limits h3 { font-size: 17px; line-height: 24px; font-weight: 600; margin-bottom: 6px; }
.limits p { font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.help-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 96px; }
.help-top .subhead { margin-top: 0; }
.founder { flex: 0 0 420px; padding: 20px 24px; border-radius: 16px; background: var(--staal); font-size: 15px; line-height: 23px; }
.founder b { display: block; line-height: 22px; margin-bottom: 4px; }
.services { width: 100%; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; padding: 8px 28px; font-size: 15px; line-height: 23px; }
.services th, .services td { text-align: left; vertical-align: top; padding: 16px 32px 16px 0; border-bottom: 1px solid var(--line-soft); }
.services thead th { border-bottom-color: var(--line); font-weight: 600; line-height: 22px; }
.services tbody th { width: 260px; font-weight: 600; }
.services td { color: var(--ink-muted); }
.services .pr { width: 180px; text-align: right; color: var(--ink); padding-right: 0; white-space: nowrap; }
.services .grp th { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-weight: 600; padding: 24px 0 4px; border-bottom: 0; }
.services tbody tr.last th, .services tbody tr.last td { border-bottom: 0; }

/* FAQ */
.faq-grid { display: flex; gap: 96px; }
.faq-side { flex: 0 0 400px; display: flex; flex-direction: column; gap: 16px; }
.faq-side h2 { font-size: 52px; line-height: 58px; letter-spacing: -0.03em; }
.faq-side p { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.faq-side a { color: var(--ink); }
.faq { flex: 1 1 0; border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; font-size: 19px; line-height: 28px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 28px; font-weight: 400; color: var(--ink-muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 17px; line-height: 27px; color: var(--ink-muted); max-width: 620px; margin-top: 12px; }

/* CTA */
.closing { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: 128px 0; }
.closing img { width: 248px; height: 216px; object-fit: contain; margin-bottom: 8px; }
.closing h2 { font-size: 60px; line-height: 66px; letter-spacing: -0.03em; }
.closing p { font-size: 21px; line-height: 32px; color: var(--ink-muted); }
.closing .hero-ctas { padding-top: 12px; }

/* Footer */
.foot { background: var(--card); border-top: 1px solid var(--line); padding: 72px 0 56px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.foot .logo b { font-size: 28px; line-height: 32px; }
.foot .logo span { font-size: 17px; line-height: 22px; }
.foot-top p { margin-top: 14px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.foot-links { display: flex; gap: 72px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.foot-bottom a { text-decoration: none; }

/* Simple text page */
.prose { max-width: 720px; padding: 96px 0 128px; }
.prose h1 { font-size: 52px; line-height: 58px; letter-spacing: -0.03em; margin-bottom: 28px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 30px; margin: 40px 0 12px; }
.prose p { font-size: 17px; line-height: 28px; color: var(--ink-muted); margin-bottom: 14px; }

/* Reveal on scroll (only when JS has marked the page) */
.motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease-ut), transform .4s var(--ease-ut); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1200px) {
  :root { --gutter: 48px; }
  .hero h1, .hero .h1-like { font-size: 60px; line-height: 64px; }
  .hero-photo { flex-basis: 360px; height: 420px; }
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .how, .calc, .compare, .faq-grid { gap: 56px; }
  .steps { flex-basis: 420px; }
  .calc-side { flex-basis: 360px; }
  .faq-side { flex-basis: 300px; }
}

/* Phone */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav .wrap { padding-block: 16px; }
  .logo b { font-size: 26px; line-height: 30px; }
  .logo span { font-size: 16px; line-height: 20px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { font-size: 16px; line-height: 20px; padding: 9px 16px; }
  .menu-btn { display: block; }
  .mobile-menu { display: none; flex-direction: column; padding: 0 16px 16px; gap: 4px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 0; font-size: 18px; text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }

  .hero-slide { flex-direction: column; align-items: stretch; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
  .hero-text { flex-basis: auto; gap: 20px; }
  .hero h1, .hero .h1-like { font-size: 44px; line-height: 50px; letter-spacing: -0.03em; }
  .hero-lead { font-size: 18px; line-height: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 20px; text-align: center; }
  .hero-ctas .btn { width: 100%; }
  .hero-photo { flex-basis: auto; height: 320px; border-top-left-radius: 56px; }
  .hero-tabs { gap: 12px; padding-bottom: 32px; }
  .hero-tab span { display: none; }
  .hero-tab b { font-size: 15px; }
  .partner { font-size: 15px; padding: 20px 16px; }

  .section { padding-top: 80px; padding-bottom: 72px; }
  .sec-head h2, .faq-side h2 { font-size: 34px; line-height: 40px; }
  .sec-head p { font-size: 17px; line-height: 26px; }

  .how, .calc, .compare, .faq-grid, .quotes { flex-direction: column; gap: 40px; }
  .how { margin-top: 40px; }
  .steps { flex-basis: auto; gap: 28px; }
  .steps li { gap: 16px; }
  .steps .num { width: 24px; }
  .job-wrap { padding: 16px; border-radius: 20px; width: 100%; }
  .job-head { padding: 18px 16px 14px; }
  .job-row, .job-bar, .job-sum { padding-inline: 16px; }

  .months-head { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .months-head img { width: 160px; height: 150px; }
  .months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 40px; }
  .year-total { flex-direction: column; align-items: flex-start; gap: 8px; }
  .year-total p { padding-top: 0; font-size: 17px; }
  .big { align-items: flex-start; }
  .big strong { font-size: 48px; line-height: 52px; }

  .calc { margin-top: 40px; }
  .calc-side { flex-basis: auto; }
  .seg { display: flex; }
  .seg button { flex: 1; padding-inline: 8px; font-size: 15px; }
  .field { gap: 12px; }
  .field label { font-size: 16px; line-height: 23px; }
  .field .inp { min-width: 104px; width: 104px; padding: 10px 12px; }
  .field input, .field .unit { font-size: 19px; }
  .result { flex-direction: column; align-items: flex-start; padding: 24px; gap: 12px; margin-top: 40px; }
  .result p { font-size: 17px; line-height: 24px; }
  .result strong { font-size: 48px; line-height: 52px; }

  .compare { margin-top: 40px; }
  .compare h3 { font-size: 22px; line-height: 28px; }
  .sheet-wrap, .riddi-wrap { min-height: 0; }
  .riddi-table th:nth-child(3), .riddi-table td:nth-child(3) { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 40px; }

  .quote, .quote.lead { padding: 32px 24px 28px; gap: 28px; border-radius: 20px; }
  .quote blockquote { font-size: 22px; line-height: 29px; }
  .quote.lead blockquote { font-size: 26px; line-height: 33px; }

  .price-head { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .price-head img { width: 118px; height: 135px; }
  .price-head h1 { font-size: 36px; line-height: 40px; }
  .period { align-self: stretch; justify-content: space-between; }
  .period button { flex: 1; justify-content: center; }
  .plans, .cards { grid-template-columns: 1fr; gap: 12px; }
  .plans { margin-top: 32px; }
  .plan { padding: 24px 20px; gap: 18px; }
  .plan .p strong { font-size: 46px; line-height: 50px; }
  .subhead { margin-top: 64px; }
  .subhead h2 { font-size: 24px; line-height: 30px; }
  .card { padding: 20px; gap: 8px; }
  .card .amt strong { font-size: 28px; line-height: 32px; }
  .see-all { margin-top: 32px; }
  .see-all .btn { width: 100%; }

  .compare-table { padding: 4px 16px; font-size: 14px; line-height: 20px; }
  .compare-table th, .compare-table td { padding: 12px 0; }
  .compare-table .c { width: 64px; text-align: right; }
  .compare-table td { text-align: right; }
  .limits { grid-template-columns: 1fr; gap: 12px; }
  .limits div { padding: 20px; }
  .help-top { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 64px; }
  .founder { flex-basis: auto; padding: 20px; }
  .services, .services tbody, .services tr { display: block; }
  .services { padding: 4px 16px; }
  .services thead { display: none; }
  .services tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .services tr.last { border-bottom: 0; }
  .services th, .services td { display: block; padding: 0; border: 0; width: auto !important; }
  .services td:not(.pr) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 21px; }
  .services .grp { display: block; padding: 16px 0 0; border-bottom: 0; }
  .services .grp th { padding: 0; }

  .faq-side { flex-basis: auto; }
  .faq details { padding: 18px 0; }
  .faq summary { font-size: 17px; line-height: 25px; }
  .faq details p { font-size: 15px; line-height: 24px; }

  .closing { padding: 80px 0; }
  .closing img { width: 180px; height: 157px; }
  .closing h2 { font-size: 36px; line-height: 40px; }
  .closing p { font-size: 18px; line-height: 28px; }

  .foot { padding: 48px 0 40px; }
  .foot-top { flex-direction: column; gap: 32px; }
  .foot-links { gap: 56px; }
  .foot-bottom { flex-direction: column; gap: 6px; margin-top: 32px; }
  .prose { padding: 56px 0 80px; }
  .prose h1 { font-size: 36px; line-height: 40px; }
}

.short { display: none; }
.period button { white-space: nowrap; }
@media (max-width: 860px) {
  .short { display: inline; }
  .long { display: none; }
  .period { justify-content: flex-start; }
  .period button[data-period="mnd"] { flex: 1 1 auto; }
  .period button[data-period="aar"] { flex: 0 0 auto; }
  .compare-table .c { width: 60px; }
}
