/* Ordalo website – shared parts and the prices page. The home page adds home.css.
   Type and hand-drawn lines are the same as in the Ordalo app (src/ordalo/character.css). */
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito Variable"; font-style: normal; font-display: swap; font-weight: 200 1000; src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque Variable"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #0a0908; --bg-1: #121110; --bg-2: #1a1816; --bg-3: #232120;
  --line: rgba(255, 245, 235, .09); --line-2: rgba(255, 245, 235, .16);
  --text: #f6f3ef; --muted: #a29b94; --dim: #6c6660;
  --accent: #ff8a4c; --accent-ink: #e8642f; --green: #5ee6b5;
  --font: "Nunito Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque Variable", "Nunito Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='6' viewBox='0 0 260 6'%3E%3Cpath d='M1 3.4C18 2.2 31 4.4 52 3.1S88 1.8 104 3.3s30 1.9 52 .1 37-1.3 55 .4 32 1.6 48-.3' fill='none' stroke='%23fbf3e8' stroke-opacity='.2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='12' viewBox='0 0 84 12'%3E%3Cpath d='M2 7.5c6-5 10-5 15 0s9 5 14 0 9-5 14 0 9 5 14 0 9-5 14 0 6 3 9 1' fill='none' stroke='%23ff8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --wobble: 28px 22px 30px 24px / 24px 30px 22px 28px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1.04; }
svg { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.accent { color: var(--accent); }

/* type */
.display { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.055em; line-height: .95; font-weight: 650; }
.h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; line-height: 1.02; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 600px; }
.lead b { color: var(--text); font-weight: 600; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s; }
.scrolled .nav, .menu-open .nav { background: rgba(10, 9, 8, .74); border-color: var(--line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; height: 40px; }
.brand svg { height: 30px; width: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: #cfc9c3; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: var(--bg-2); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--bg-3); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-2); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 68px 0 0; z-index: 49; background: var(--bg); padding: 12px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet a { font-size: clamp(26px, 7vw, 34px); font-weight: 650; letter-spacing: -.03em; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.menu-open .sheet a { opacity: 1; transform: none; }
.menu-open .sheet a:nth-child(2) { transition-delay: .04s; } .menu-open .sheet a:nth-child(3) { transition-delay: .08s; } .menu-open .sheet a:nth-child(4) { transition-delay: .12s; } .menu-open .sheet a:nth-child(5) { transition-delay: .16s; }
.sheet .btn { margin-top: 28px; justify-content: center; border-bottom: 0; font-size: 18px; }
.menu-open { overflow: hidden; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #ece8e4; }
.btn-dark { background: var(--bg-3); color: #fff; }
.btn-dark:hover { background: #2d2a28; }
.btn-accent { background: var(--accent); color: #1a0d05; }
.btn-accent:hover { background: #ff9c66; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arr, .link .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(3px); }
.link { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; }

/* reveal */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }

section { position: relative; }
.sec { padding: clamp(96px, 13vw, 170px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head .label { display: block; margin-bottom: 18px; }
.sec-head .lead { margin-top: 22px; }

/* price teaser */
.teaser { display: flex; justify-content: space-between; align-items: end; gap: 32px 40px; flex-wrap: wrap; padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.teaser h2 { max-width: 560px; }
.teaser .row { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; margin-top: 28px; }
.teaser .row div small { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.teaser .row div b { font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--text); }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; color: var(--muted); font-size: 16.5px; }

/* cta + form */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.cta-grid .lead { margin-top: 22px; }
.cta-oli { width: 96px; margin-bottom: 20px; }
.cta-oli svg { width: 100%; height: auto; display: block; }
.demo { display: grid; gap: 14px; position: relative; }
.demo .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.demo input, .demo textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.demo input:focus, .demo textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.demo textarea { min-height: 110px; resize: vertical; }
.demo .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.demo .consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; padding: 0; accent-color: var(--accent); }
.demo .consent a { text-decoration: underline; }
.demo .hp { position: absolute; left: -9999px; width: 1px; }
.demo .btn { justify-self: start; }
.form-msg { color: #ff8a80; font-size: 14px; min-height: 1em; }
.form-done { padding: 28px; border-radius: 20px; background: var(--bg-1); border: 1px solid var(--line); }
.form-done b { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }

/* footer */
footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: var(--text); }

/* ---------- prices page ---------- */
.p-hero { padding: 160px 0 64px; }
.p-hero .lead { margin-top: 26px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; }
.plan { padding: 32px 26px 30px; display: flex; flex-direction: column; position: relative; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.top { background: linear-gradient(180deg, rgba(255, 138, 76, .1), rgba(255, 138, 76, 0) 55%); }
.plan .flag { position: absolute; top: 34px; right: 24px; font-size: 12px; font-weight: 600; color: var(--accent); }
.plan h3 { font-size: 22px; letter-spacing: -.025em; }
.plan .for { margin-top: 6px; color: var(--muted); font-size: 14.5px; min-height: 44px; }
.plan .price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 46px; font-weight: 650; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan .price small { color: var(--muted); font-size: 14px; }
.plan .fee { margin-top: 2px; font-size: 15px; font-weight: 600; }
.plan .fee span { color: var(--muted); font-weight: 500; }
.plan .btn { margin: 24px 0 26px; justify-content: center; }
.plan h4 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 10px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; line-height: 1.4; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plan ul.minus li { color: var(--dim); }
.plan ul.minus li::before { content: "–"; color: var(--dim); }

.calc { margin-top: clamp(96px, 12vw, 150px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.calc-in { margin-top: 36px; }
.calc-in label { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.calc-in output { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 650; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 30%), var(--bg-3) var(--p, 30%)); margin: 22px 0 10px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; cursor: grab; }
.calc-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }
.cr { display: grid; grid-template-columns: 76px 1fr 150px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.cr:first-child { border-top: 1px solid var(--line); }
.cr > b { font-size: 16px; }
.cr > b small { display: block; font-size: 11.5px; font-weight: 600; color: var(--accent); height: 15px; }
.cr .bar { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.cr .bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #4a4541; transition: width .5s var(--ease), background .3s; }
.cr .sum { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cr .sum small { display: block; color: var(--dim); font-size: 12px; font-weight: 500; }
.cr.best .bar i { background: var(--accent); }
.cr.off { opacity: .38; }
.calc-note { margin-top: 20px; color: var(--muted); font-size: 15px; min-height: 48px; }

.cmp { margin-top: clamp(96px, 12vw, 150px); }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
.cmp thead th { position: sticky; top: 68px; z-index: 2; background: var(--bg); text-align: center; padding: 18px 10px 14px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.cmp thead th small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.cmp thead th:first-child { text-align: left; }
.cmp .top { background: rgba(255, 138, 76, .05); }
.cmp thead th.top { background: #1a120d; }
.cmp tbody th { text-align: left; font-weight: 500; padding: 14px 16px 14px 0; color: #e3ddd7; border-top: 1px solid var(--line); width: 36%; }
.cmp tbody th small { display: block; color: var(--dim); font-size: 13px; margin-top: 2px; font-weight: 400; }
.cmp tbody td { text-align: center; padding: 14px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cmp tr.grp th { padding-top: 44px; border-top: 0; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cmp tr.grp td { border-top: 0; }
.cmp .y { color: var(--green); font-weight: 700; }
.cmp .n { color: var(--dim); }

.extra { margin-top: clamp(80px, 10vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.extra h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 12px; }
.extra p { color: var(--muted); font-size: 15.5px; }
.extra p + p { margin-top: 10px; }

/* responsive */
@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; gap: 48px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-cta .btn { display: none; }
  .extra { grid-template-columns: 1fr; gap: 36px; }
  .cmp thead th { top: 68px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .demo .row { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan, .plan:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .plan .for { min-height: 0; }
  .cr { grid-template-columns: 58px 1fr 128px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .scr, .story-step, .g-dish .add { transition: none; }
  .g-step.now i { animation: none; }
}
@media (min-width: 720px) { .cmp-wrap { overflow: visible; } }
.cmp-tabs { display: none; }
@media (max-width: 719px) {
  .cmp-tabs { display: flex; position: sticky; top: 68px; z-index: 3; background: var(--bg); padding: 12px 0; margin-bottom: 4px; }
  .cmp-tabs span { flex: 1; text-align: center; padding: 9px 0; cursor: pointer; font-size: 14px; }
  .cmp table { min-width: 0; }
  .cmp thead { display: none; }
  .cmp tbody td { display: none; text-align: right; padding-right: 0; }
  .cmp table[data-col="2"] tbody td:nth-child(2), .cmp table[data-col="3"] tbody td:nth-child(3),
  .cmp table[data-col="4"] tbody td:nth-child(4), .cmp table[data-col="5"] tbody td:nth-child(5) { display: table-cell; }
  .cmp tbody th { width: auto; }
  .cmp .top { background: none; }
}
/* chips (calculator tables, comparison tabs) */
.kds-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kds-tabs span { padding: 7px 13px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.kds-tabs span.on { background: var(--text); color: #000; }
.static .rv { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
.muted { color: var(--muted); }

/* ---------- the Ordalo character: display type, hand-drawn lines, sticker corners ---------- */
h1, h2, h3, h4, .display, .h2, .price b, .fact b, .stats b, .calc-in output, .teaser .row b, .cr .sum span { font-family: var(--display); font-weight: 720; }
.display, .h2 { letter-spacing: -.035em; }
.faq details, .cmp tbody th, .cmp tbody td, .cr, .teaser, footer, .extra { border-color: transparent !important; }
.faq details, .cr { background: var(--rule) repeat-x left bottom / 260px 6px; }
.cmp tbody th, .cmp tbody td { background-image: var(--rule); background-repeat: repeat-x; background-position: left top; background-size: 260px 6px; }
.teaser { background: var(--rule) repeat-x left top / 260px 6px, var(--rule) repeat-x left bottom / 260px 6px; }
footer, .extra { background: var(--rule) repeat-x left top / 260px 6px; }
.plans, .p-hero + .wrap .plans { border-radius: var(--wobble); }
.btn { border-radius: 18px 14px 19px 15px / 15px 19px 14px 18px; }
.sec-head .h2::after, .p-hero .display::after {
  content: ""; display: block; width: 84px; height: 12px; margin-top: 14px;
  background: var(--squiggle) no-repeat left center / 84px 12px;
}
.rv.in .h2::after, .rv.in.h2::after, .p-hero .rv.in.display::after { animation: squiggle-draw .9s cubic-bezier(.22, .8, .2, 1) .35s both; }
@keyframes squiggle-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sec-head.center .h2::after { margin-inline: auto; }
