/* Fornio — design tokens
   Strawberry-milk pink (the cake box), cocoa ink, pistachio for money, raspberry only in the mark.
   Signature element: the result printed as a receipt. */
:root {
  --bg: #fffbfa;          /* page */
  --bg-2: #fbeef0;        /* quiet bands */
  --blush: #f6d8df;       /* strawberry milk: hero and pricing */
  --paper: #ffffff;       /* receipts, cards */
  --ink: #2b1912;         /* cocoa */
  --ink-2: #5e463d;
  --muted: #8c756b;
  --line: #f0e2e0;
  --line-2: #e2cdc9;
  --accent: #1f7a55;      /* pistachio: buttons, prices, profit */
  --accent-ink: #165c40;
  --accent-soft: #e2f1e9;
  --brand: #d6336c;       /* raspberry: the mark */
  --choc: #2b1912;
  --choc-2: #432a20;
  --cream: #fff6f3;
  --good: #1f7a55;
  --good-soft: #e2f1e9;
  --bad: #b8402c;
  --bad-soft: #fbe6e0;
  --warn-soft: #fff1d6;

  --s-ing: #f2b84b;
  --s-pack: #ee9a6b;
  --s-over: #d9c3b8;
  --s-labor: #9a6a54;
  --s-fee: #a99a8f;
  --s-profit: #1f7a55;

  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-tracking: -0.03em;
  --display-weight: 750;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(60, 30, 15, 0.06);
  --shadow: 0 1px 2px rgba(60, 30, 15, 0.05), 0 10px 30px -12px rgba(60, 30, 15, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(60, 30, 15, 0.35);
}

/* Script-specific typography */
html[lang^="ru"] { --font-display: "Manrope", system-ui, sans-serif; --font-body: "Manrope", system-ui, sans-serif; --display-tracking: -0.02em; --display-weight: 800; }
html[lang^="ar"] {
  --font-display: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-body: "Noto Sans Arabic", Tahoma, system-ui, sans-serif;
  --display-tracking: 0; --display-weight: 700;
}
html[lang^="hi"] {
  --font-display: "Noto Sans Devanagari", "Inter", sans-serif;
  --font-body: "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  --display-tracking: 0; --display-weight: 700;
}
html[lang^="ja"] { --font-display: "Noto Sans JP", sans-serif; --font-body: "Noto Sans JP", "Inter", system-ui, sans-serif; --display-tracking: 0; --display-weight: 700; }
html[lang^="ko"] { --font-display: "Noto Sans KR", sans-serif; --font-body: "Noto Sans KR", "Inter", system-ui, sans-serif; --display-tracking: -0.01em; --display-weight: 700; }
html[lang^="zh"] { --font-display: "Noto Sans SC", sans-serif; --font-body: "Noto Sans SC", "Inter", system-ui, sans-serif; --display-tracking: 0; --display-weight: 700; }
html[lang^="ar"] h1 em, html[lang^="hi"] h1 em, html[lang^="ja"] h1 em,
html[lang^="ko"] h1 em, html[lang^="zh"] h1 em { font-style: normal; }
html[lang^="ar"] body, html[lang^="hi"] body { line-height: 1.7; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden]:not(.mobile-bar) { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); text-wrap: balance; }
html[lang^="ja"] :is(h1, h2, h3) { word-break: auto-phrase; }
html[lang^="ko"] { word-break: keep-all; }
h3 { font-size: 1.06rem; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: 104px; }
@media (max-width: 720px) { .section { padding-block: 68px; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* Buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: .9rem; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-2); }
.btn-light { background: var(--cream); color: var(--choc); }
.btn-light:hover { background: #fff; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg-2); color: var(--bad); }
.link-btn { border: 0; background: none; color: var(--accent-ink); font-weight: 600; cursor: pointer; padding: 6px 4px; }
.link-btn:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-inline-start: 18px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 460px) { .nav-cta { display: none; } }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: .9rem; font-weight: 500; background: var(--paper); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang[open] summary { border-color: var(--ink-2); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px); z-index: 60; }
.lang-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: .92rem; }
.lang-menu a:hover { background: var(--bg-2); }
.lang-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.lang-menu small { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; align-self: center; }
@media (max-width: 460px) { .lang summary span { display: none; } .lang-menu { grid-template-columns: 1fr 1fr; } }

/* Hero */
.hero { position: relative; padding-block: 56px 96px; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; }
.hero::before { width: 520px; height: 520px; background: #ffd6e2; inset-inline-end: -120px; top: -80px; }
.hero::after { width: 460px; height: 460px; background: #ffe8b8; inset-inline-start: -160px; bottom: -160px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(2.45rem, 5.6vw, 4.5rem); margin-top: 22px; overflow-wrap: break-word; }
.hero h1 em { color: var(--accent); font-style: italic; font-weight: 600; }
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 26px 0 0; list-style: none; font-size: .9rem; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f8f6f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.hero-art { position: relative; padding: 30px 10px; }
.demo-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); animation: floaty 7s ease-in-out infinite; }
[dir="rtl"] .demo-card { transform: rotate(1.5deg); }
@keyframes floaty { 50% { translate: 0 -8px; } }
.demo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.demo-item { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.demo-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.demo-col { padding: 16px; border-radius: 16px; background: var(--good-soft); display: grid; gap: 4px; min-width: 0; }
.demo-col.muted-col { background: var(--bg-2); }
.demo-col small { color: var(--ink-2); font-weight: 600; font-size: .8rem; }
.demo-col strong { font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.15; }
.muted-col strong { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.demo-col strong.accent { color: var(--good); }
.demo-hour { font-size: .82rem; font-weight: 600; }
.demo-hour.bad { color: var(--bad); }
.demo-hour.good { color: var(--good); }
.demo-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin-top: 20px; gap: 2px; }
.demo-bar .s-ing { width: 18%; } .demo-bar .s-pack { width: 6%; } .demo-bar .s-over { width: 4%; }
.demo-bar .s-labor { width: 42%; } .demo-bar .s-profit { width: 30%; }
.demo-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--ink-2); }
.demo-legend li, .res-lines dt { display: inline-flex; align-items: center; gap: 7px; }
.demo-legend i, .res-lines i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.s-ing { background: var(--s-ing); } .s-pack { background: var(--s-pack); } .s-over { background: var(--s-over); }
.s-labor { background: var(--s-labor); } .s-fee { background: var(--s-fee); } .s-profit { background: var(--s-profit); }
.float-chip { position: absolute; background: var(--choc); color: var(--cream); padding: 10px 14px; border-radius: 14px; font-size: .85rem; box-shadow: var(--shadow-lg); white-space: nowrap; max-width: 80%; overflow: hidden; text-overflow: ellipsis; }
.float-chip b { font-family: var(--font-display); font-size: 1.05rem; }
.float-chip.f1 { top: 0; inset-inline-end: 6px; transform: rotate(3deg); }
.float-chip.f2 { bottom: 2px; inset-inline-start: 0; background: var(--paper); color: var(--good); border: 1px solid var(--line); font-weight: 600; transform: rotate(-2deg); }

@media (max-width: 960px) {
  .hero { padding-block: 32px 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 420px) {
  .hero-ctas .btn { width: 100%; }
  .demo-card { padding: 18px; }
  .demo-col { padding: 12px; }
}

/* Section heads */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-ink); }
html[lang^="ar"] .kicker, html[lang^="hi"] .kicker, html[lang^="ja"] .kicker, html[lang^="ko"] .kicker, html[lang^="zh"] .kicker { letter-spacing: 0; text-transform: none; }

/* Pain */
.pain { padding-top: 40px; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.pain-card .num { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 2.2rem; color: var(--accent); font-weight: 600; display: block; line-height: 1; margin-bottom: 18px; }
.pain-card p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }

/* Calculator */
.calc { background: var(--bg-2); border-block: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.calc-inputs { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-soft { background: color-mix(in srgb, var(--warn-soft) 70%, var(--paper)); border-color: #f1dfb8; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-total { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; min-width: 0; }
.field-row { grid-template-columns: auto minmax(0, 260px); align-items: center; gap: 12px; margin-top: 16px; }
.label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
input[type="text"], input[type="date"], input[type="email"], input[type="password"], select {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
select { padding-inline-end: 34px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238a7468' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center/12px; }
[dir="rtl"] select { background-position: left 12px center; }
input:hover, select:hover { border-color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input::placeholder { color: #b9a89c; }
.affix { display: flex; align-items: center; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.affix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.affix input { border: 0 !important; box-shadow: none !important; height: 44px; background: transparent; padding-inline: 8px 12px; }
.affix > span { padding-inline-start: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.affix-end input { padding-inline: 14px 4px; }
.affix-end > span { padding-inline: 0 12px; }

.slider-field { margin-top: 18px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; }
.slider-top output { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent-ink); }
input[type="range"] { width: 100%; height: 28px; background: transparent; accent-color: var(--accent); cursor: pointer; }

/* Ingredient & extra rows */
.rows { display: grid; gap: 10px; }
.ing-cols, .ing-row { display: grid; grid-template-columns: minmax(110px, 1.5fr) minmax(92px, 1fr) minmax(130px, 1.3fr) minmax(130px, 1.3fr) minmax(70px, .8fr) 36px; gap: 8px; align-items: center; }
.ing-cols { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 8px; }
html[lang^="ar"] .ing-cols, html[lang^="hi"] .ing-cols, html[lang^="ja"] .ing-cols, html[lang^="ko"] .ing-cols, html[lang^="zh"] .ing-cols { text-transform: none; letter-spacing: 0; }
.ext-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 180px) 36px; gap: 8px; align-items: end; }
.cell { display: grid; gap: 4px; min-width: 0; }
.cell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qty { display: flex; height: 46px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.qty input { border: 0 !important; box-shadow: none !important; height: 44px; padding-inline: 12px 4px; background: transparent; min-width: 3.4em; flex: 1 1 auto; }
.qty select { border: 0 !important; box-shadow: none !important; height: 44px; width: auto; max-width: 52%; min-width: 3.8em; text-overflow: ellipsis; flex: none; padding-inline: 6px 26px; background-color: var(--bg); background-position: right 8px center; border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); border-radius: 0; font-size: .88rem; }
[dir="rtl"] .qty select { background-position: left 8px center; padding-inline: 6px 26px; }
.qty select:focus { box-shadow: none; }
.cost-out { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cost-out.err { color: var(--bad); font-size: .76rem; font-weight: 600; white-space: normal; line-height: 1.2; }
.btn-add { margin-top: 12px; width: 100%; height: 46px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font-weight: 600; cursor: pointer; transition: all .15s; }
.btn-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.row-enter { animation: rowIn .25s ease; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 1080px) and (min-width: 961px) { .calc-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.calc-inputs { container-type: inline-size; }
@container (max-width: 620px) {
  .ing-cols { display: none; }
  .ing-row { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; padding-inline-end: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); position: relative; }
  .ing-row .c-name { grid-column: 1 / -1; padding-inline-end: 40px; }
  .ing-row .cell-label { position: static; width: auto; height: auto; clip: auto; font-size: .76rem; font-weight: 600; color: var(--muted); }
  .ing-row .cost-out { align-self: end; padding-bottom: 12px; font-size: 1.05rem; }
  .ing-row .i-del { position: absolute; top: 10px; inset-inline-end: 8px; }
  .ext-row .cell-label { position: static; width: auto; height: auto; clip: auto; font-size: .76rem; font-weight: 600; color: var(--muted); }
}
@container (max-width: 250px) { .ing-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .card { padding: 16px; }
  .ing-row { padding: 12px; }
  .qty select { padding-inline: 4px 22px; background-position: right 6px center; }
  .result-inner { padding: 22px 18px; }
}

/* Result */
.result { position: sticky; top: 88px; }
.result-inner { background: var(--choc); color: var(--cream); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); background-image: radial-gradient(circle at 100% 0%, rgba(214, 58, 108, .28), transparent 45%), radial-gradient(circle at 0% 100%, rgba(242, 184, 75, .14), transparent 45%); }
.result-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #f6b9cc; }
html[lang^="ar"] .result-title, html[lang^="hi"] .result-title, html[lang^="ja"] .result-title, html[lang^="ko"] .result-title, html[lang^="zh"] .result-title { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.res-price { margin-top: 14px; display: grid; }
.res-price small { color: #d9c3b4; font-size: .9rem; }
.res-price strong { font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res-sub { color: #bfa898; font-size: .85rem; }
.res-unit { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(255, 244, 230, .08); border: 1px solid rgba(255, 244, 230, .12); padding: 12px 14px; border-radius: 14px; }
.res-unit span { font-size: .9rem; color: #e8d5c7; }
.res-unit b { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: #fff; }
.res-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin-top: 20px; gap: 2px; background: rgba(255, 255, 255, .08); }
.res-bar span { transition: width .35s ease; min-width: 0; }
.res-lines { margin: 16px 0 0; display: grid; gap: 2px; }
.res-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; }
.res-lines dt { color: #e3cfc1; }
.res-lines dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; text-align: end; }
.res-lines .total { border-top: 1px dashed rgba(255, 244, 230, .22); margin-top: 6px; padding-top: 12px; }
.res-lines .total dt { color: #fff; font-weight: 600; }
.res-lines .profit dd { color: #7fd8b5; }
.res-hourly { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(58, 160, 124, .18); border: 1px solid rgba(127, 216, 181, .25); }
.res-hourly span { font-size: .9rem; }
.res-hourly b { font-size: 1.15rem; color: #9ff0cf; font-variant-numeric: tabular-nums; }
.res-check { margin-top: 12px; padding: 14px; border-radius: 14px; display: grid; gap: 4px; }
.res-check .label { color: inherit; opacity: .8; }
.res-check p { font-size: .93rem; font-weight: 500; }
.res-check.good { background: rgba(58, 160, 124, .18); color: #c9f5e3; }
.res-check.low { background: rgba(242, 184, 75, .16); color: #ffe2a6; }
.res-check.loss { background: rgba(232, 92, 70, .2); color: #ffc9bd; }
.res-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 244, 230, .08); font-size: .9rem; color: #f3dccd; }
.res-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.res-actions .btn { padding: 0 12px; white-space: normal; text-align: center; line-height: 1.2; }
.res-actions .btn-primary { box-shadow: none; }
@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .result { position: static; }
}

/* Recipes */
.recipes { margin-top: 24px; }
.rec-meta { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rec-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; background: var(--bg); }
.rec-item.is-active { border-color: var(--accent); background: var(--accent-soft); }
.rec-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-item span { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rec-actions { display: flex; gap: 6px; }
.rec-actions button { flex: 1; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; font-size: .85rem; font-weight: 600; }
.rec-actions button:hover { border-color: var(--ink-2); }
.rec-actions .del:hover { border-color: var(--bad); color: var(--bad); }

/* How */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--choc); color: var(--cream); font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { padding-top: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.feat { background: var(--paper); padding: 30px; }
.feat-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 18px; }
.feat-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .feat-grid { grid-template-columns: 1fr; } .feat { padding: 24px; } }

/* Pricing */
.pricing { background: var(--bg-2); border-block: 1px solid var(--line); }
.pricing .section-head { margin-inline: auto; text-align: center; margin-bottom: 28px; }
.billing { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.billing-btn { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.billing-btn.is-on { background: var(--choc); color: var(--cream); }
.save { font-size: .72rem; background: var(--good-soft); color: var(--good); padding: 3px 8px; border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 20px; }
.plan { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.plan-pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--accent); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.plan h3 { font-size: 1.25rem; }
.plan-d { color: var(--ink-2); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 10px; flex-wrap: wrap; }
.plan-price strong { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-weight: 500; }
.checks { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; gap: 10px; flex: 1; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; margin-top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f8f6f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan-note { text-align: center; margin-top: 10px; font-size: .84rem; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px; } }

/* FAQ */
.faq .section-head { text-align: center; margin-inline: auto; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 1.2rem; color: var(--ink-2); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 20px; color: var(--ink-2); }

/* Final CTA */
.final-cta { padding-bottom: 104px; }
.final-box { background: var(--choc); color: var(--cream); border-radius: 32px; padding: clamp(40px, 7vw, 80px) 24px; text-align: center; background-image: radial-gradient(circle at 15% 20%, rgba(214, 58, 108, .35), transparent 40%), radial-gradient(circle at 85% 90%, rgba(242, 184, 75, .25), transparent 40%); }
.final-box h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18em; margin-inline: auto; }
.final-box p { margin: 14px 0 30px; color: #e3cfc1; font-size: 1.1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 48px 120px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.footer p { margin-top: 10px; }
.footer-langs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-langs a { text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.footer-langs a:hover, .footer-langs a[aria-current="page"] { color: var(--accent-ink); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky bar */
.mobile-bar { position: fixed; z-index: 40; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--choc); color: var(--cream); box-shadow: var(--shadow-lg); transition: transform .25s ease, opacity .25s; }
[dir="rtl"] .mobile-bar { padding: 10px 18px 10px 10px; }
.mobile-bar small { display: block; font-size: .74rem; color: #d9c3b4; }
.mobile-bar b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.mobile-bar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 961px) { .mobile-bar, .mobile-bar[hidden] { display: none; } }

/* Modals */
.modal { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); }
.modal::backdrop { background: rgba(35, 20, 14, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-box { background: var(--paper); border-radius: 24px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow-lg); }
.modal-small { text-align: center; max-width: 420px; margin-inline: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 1.2rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-small .modal-actions { justify-content: center; }
.quote-preview { margin: 0; white-space: pre-wrap; font-family: var(--font-body); font-size: .92rem; background: #e7f6ec; border: 1px solid #cdebd6; padding: 14px 16px; border-radius: 4px 16px 16px 16px; max-height: 220px; overflow: auto; }
[dir="rtl"] .quote-preview { border-radius: 16px 4px 16px 16px; }
.pro-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.6rem; }
.modal-small p { color: var(--ink-2); }

/* Account */
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; }
.acct summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--choc); color: var(--cream); font-weight: 700; text-transform: uppercase; }
.acct[open] .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
.acct-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 260px; max-width: calc(100vw - 32px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: grid; gap: 2px; }
.acct-who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 6px; }
.acct-who b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { justify-self: start; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.plan-badge.pro { background: var(--accent-soft); color: var(--accent-ink); }
.acct-item { text-align: start; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: .92rem; }
.acct-item:hover { background: var(--bg-2); }
.acct-item.danger { color: var(--bad); }
@media (max-width: 460px) { #nav-login { padding: 0 12px; } }

.auth-box { max-width: 420px; margin-inline: auto; }
.auth-msg { padding: 10px 12px; border-radius: 10px; font-size: .9rem; background: var(--good-soft); color: #1f6b52; }
.auth-msg.err { background: var(--bad-soft); color: var(--bad); }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.auth-legal { font-size: .8rem; color: var(--muted); }
.auth-legal a, .footer-legal a { color: var(--ink-2); }

.logo-row { display: grid; gap: 8px; }
.logo-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-box img { max-height: 48px; max-width: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.pro-tag { font-size: .68rem; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); padding: 2px 7px; border-radius: 99px; margin-inline-start: 4px; vertical-align: middle; }
.rec-where { color: var(--muted); font-size: .8rem; }
.footer-legal { font-size: .88rem; }

/* Legal pages */
.legal { padding-block: 56px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal article { margin-top: 28px; color: var(--ink-2); }
.legal article h2 { font-size: 1.3rem; margin: 36px 0 10px; color: var(--ink); }
.legal article p, .legal article li { margin-bottom: 10px; }
.legal article ul { padding-inline-start: 22px; }
.legal article a { color: var(--accent-ink); }
.legal-notice { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid #f1dfb8; font-size: .92rem; }
.legal-page .footer { padding-block: 32px; }
.notfound { text-align: center; padding-top: 120px; }
.notfound h1 { font-size: 5rem; color: var(--accent); }
.notfound p { margin-top: 12px; }

/* Toast */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); }

/* Print (PDF quote) */
.print-area { display: none; }
@media print {
  @page { margin: 18mm; }
  body { background: #fff; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block !important; color: #111; font-family: var(--font-body); }
  .pq-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--accent); padding-bottom: 14px; margin-bottom: 24px; }
  .pq-logo { max-height: 64px; max-width: 220px; object-fit: contain; margin-bottom: 10px; }
  .pq-head h1 { font-family: var(--font-display); font-size: 26pt; }
  .pq-head p { color: #555; }
  .pq-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 11pt; }
  .pq-table th, .pq-table td { text-align: start; padding: 10px 8px; border-bottom: 1px solid #ddd; }
  .pq-table td.num, .pq-table th.num { text-align: end; }
  .pq-total td { font-weight: 700; font-size: 13pt; border-bottom: 0; }
  .pq-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 11pt; }
  .pq-meta b { display: block; font-size: 9pt; color: #777; text-transform: uppercase; letter-spacing: .05em; }
  .pq-foot { margin-top: 40px; font-size: 9pt; color: #888; }
}

/* =====================================================================
   Fornio identity — strawberry milk, cocoa, pistachio; the receipt
   ===================================================================== */
.brand-mark { color: var(--brand); }
.brand { font-weight: 800; letter-spacing: -.03em; }
.lead, .section-head p { max-width: 38em; }

/* Hero: a flat strawberry-milk band (the cake box), no decorative blobs */
.hero { background: var(--blush); }
.hero::before, .hero::after { display: none; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; }
.hero h1 em { font-style: normal; color: inherit; font-weight: inherit; }
.eyebrow { background: rgba(255, 255, 255, .6); border-color: transparent; box-shadow: none; }
.dot { background: var(--brand); box-shadow: 0 0 0 4px rgba(214, 51, 108, .15); }
.btn-ghost { border-color: rgba(43, 25, 18, .25); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .55); }
.trust li::before { background-color: rgba(255, 255, 255, .7); }

/* The receipt: paper, dashed rules, torn bottom edge */
.demo-card, .result-inner {
  position: relative; background: var(--paper); color: var(--ink);
  border: 0; border-radius: 6px 6px 0 0; box-shadow: 0 24px 48px -24px rgba(43, 25, 18, .35);
  background-image: none;
}
.demo-card::after, .result-inner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background:
    linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x,
    linear-gradient(45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 12px repeat-x;
  filter: drop-shadow(0 3px 2px rgba(43, 25, 18, .08));
}
.demo-card { transform: rotate(-2deg); animation: none; }
[dir="rtl"] .demo-card { transform: rotate(2deg); }
.demo-col, .demo-col.muted-col { background: transparent; padding: 10px 0; border-top: 1px dashed var(--line-2); border-radius: 0; }
.demo-compare { gap: 20px; }
.muted-col strong { text-decoration-color: var(--bad); }
.demo-col strong.accent { color: var(--accent); }
.chip { background: var(--bg-2); color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: .78rem; }

/* Price tag hanging off the receipt */
.float-chip.f1 {
  background: var(--accent); color: #fff; border-radius: 6px 14px 14px 6px; padding: 10px 16px 10px 24px;
  transform: rotate(4deg); box-shadow: 0 14px 30px -12px rgba(31, 122, 85, .55);
}
.float-chip.f1::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--blush); }
[dir="rtl"] .float-chip.f1 { border-radius: 14px 6px 6px 14px; padding: 10px 24px 10px 16px; }
[dir="rtl"] .float-chip.f1::before { left: auto; right: 9px; }

/* Result receipt (inside the calculator) */
.result-inner { padding: 26px 24px 30px; }
.result-title { color: var(--ink-2); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.res-price small, .res-sub { color: var(--muted); }
.res-price strong { color: var(--ink); }
.res-unit { background: var(--accent-soft); border: 0; border-radius: 4px; }
.res-unit span { color: var(--accent-ink); }
.res-unit b { color: var(--accent-ink); }
.res-bar { background: var(--bg-2); }
.res-lines > div { border-bottom: 1px dashed var(--line-2); }
.res-lines dt { color: var(--ink-2); }
.res-lines .total { border-top: 2px solid var(--ink); border-bottom: 0; }
.res-lines .total dt { color: var(--ink); }
.res-lines .profit { border-bottom: 0; }
.res-lines .profit dd { color: var(--accent); }
.res-hourly { background: transparent; border: 1px solid var(--accent); border-radius: 4px; }
.res-hourly b { color: var(--accent); }
.res-msg { background: var(--bg-2); color: var(--ink-2); }
.res-check.good { background: var(--good-soft); color: var(--accent-ink); }
.res-check.low { background: var(--warn-soft); color: #7a5512; }
.res-check.loss { background: var(--bad-soft); color: var(--bad); }
.res-actions .btn-light { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); }

/* Pain points: plain columns, no boxes, no fake numbering */
.pain-card { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 20px 0 0; }

/* Steps are a real sequence: keep the numbers */
.step-n { background: var(--blush); color: var(--ink); border-radius: 50%; }

/* Calculator stage and paywall lock */
.calc { background: var(--bg); }
.calc-stage { position: relative; }
.calc-stage.is-locked .calc-app { filter: blur(5px) saturate(.75); opacity: .5; pointer-events: none; user-select: none; }
.calc-lock { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 72px; z-index: 5; }
.calc-lock[hidden] { display: none; }
.lock-card {
  position: sticky; top: 110px; width: min(460px, 100%); background: var(--paper); border-radius: 6px;
  padding: 32px 28px; text-align: center; box-shadow: 0 30px 60px -24px rgba(43, 25, 18, .45); display: grid; gap: 12px; justify-items: center;
}
.lock-ic { width: 44px; height: 44px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; }
.lock-card h3 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: var(--display-tracking); }
.lock-card p { color: var(--ink-2); }
.lock-actions { display: grid; gap: 6px; justify-items: center; margin-top: 6px; }
@media (max-width: 560px) { .calc-lock { padding-top: 24px; } .lock-card { padding: 26px 20px; } }

/* Pricing: one plan, two columns */
.pricing { background: var(--blush); border: 0; }
.billing { background: rgba(255, 255, 255, .7); border: 0; }
.plans { grid-template-columns: minmax(0, 880px); }
.plan-pro { border: 0; border-radius: 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px; box-shadow: 0 30px 60px -30px rgba(43, 25, 18, .4); }
.plan-top { display: grid; gap: 8px; align-content: start; }
.plan-pro .checks { margin: 0; align-content: center; gap: 14px; }
.plan-price strong { color: var(--ink); }
.save { background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 760px) { .plan-pro { grid-template-columns: 1fr; padding: 28px; gap: 20px; } }

/* Final call to action and dark chrome in cocoa */
.final-box { background: var(--ink); background-image: none; border-radius: 6px; }
.final-box p { color: #ead8cf; }
.btn-light { background: var(--paper); color: var(--ink); }

/* Cards: fewer shadows, one corner radius family */
.card, .feat-grid, .faq-list details, .steps li { border-radius: 6px; box-shadow: none; }
.input-wrap, input[type="text"], input[type="date"], input[type="email"], input[type="password"], select, .affix, .qty { border-radius: 4px; }
.btn { border-radius: 4px; }
.btn-primary { box-shadow: none; }
/* Scripts with tall ascenders/descenders need more room in large headlines */
html[lang^="ar"] .hero h1, html[lang^="hi"] .hero h1 { line-height: 1.3; }
html[lang^="ar"] h2, html[lang^="hi"] h2 { line-height: 1.35; }
html[lang^="ja"] .hero h1, html[lang^="zh"] .hero h1, html[lang^="ko"] .hero h1, html[lang^="vi"] .hero h1 { line-height: 1.18; }
