/* ============================================================
   ThaliBook — explainer site
   Palette built around the saffron accent #ea580c on warm paper.
   Signature: money and quantities are always set in tabular
   monospace, so the whole page reads like a caterer's order book.
   ============================================================ */

:root {
  --ink:        #26140A;   /* deep roast-brown text */
  --ink-soft:   #5C4A3E;   /* muted body text */
  --paper:      #FBF6EF;   /* warm off-white paper */
  --paper-2:    #FFFFFF;   /* raised cards */
  --accent:     #ea580c;   /* saffron — primary */
  --accent-dk:  #9a3412;   /* deep terracotta */
  --tint:       #FCE7D5;   /* soft saffron panel */
  --tint-2:     #FDEFE2;   /* faint saffron */
  --warn:       #B4531F;   /* burnt sienna — enquiry / due */
  --warn-soft:  #F6E2D2;
  --line:       #EEE1D3;   /* hairline rule on paper */
  --line-dk:    #E4CFB9;

  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Menlo", "Cascadia Mono",
          "Roboto Mono", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --wrap: 1120px;
  --r: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- money helper: tabular monospace everywhere ---------- */
.reg-row__amt, .regstat__val, .kpi__val, .price-card__amt, .quotebar__v,
.dtable .num, .screen__url {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  background: var(--accent); color: #fff;
  font-weight: 650; font-size: 16px;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-dk);
  box-shadow: 0 1px 0 var(--accent-dk), 0 6px 16px -8px rgba(234,88,12,.6);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 1px 0 var(--accent-dk), 0 10px 22px -10px rgba(234,88,12,.7); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--block { width: 100%; }

.btn-link {
  display: inline-flex; align-items: center;
  font-weight: 600; color: var(--accent-dk);
  border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.btn-link:hover { border-bottom-color: var(--accent); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand__mark { display: inline-flex; }
.brand__book { color: var(--accent); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 550; }
.nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: var(--accent); }
.nav .btn--sm { margin-left: 8px; }

/* ============ EYEBROWS ============ */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-dk); font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow--rule { display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.eyebrow--light { color: var(--tint); }

/* ============ HERO ============ */
.hero { padding: 64px 0 74px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--tint-2) 0%, transparent 62%),
    repeating-linear-gradient(180deg, transparent, transparent 39px, var(--line) 39px, var(--line) 40px);
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, transparent 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.hero__title { font-size: clamp(42px, 6.2vw, 74px); font-weight: 850; letter-spacing: -0.035em; }
.accent-word { color: var(--accent); }
.hero__pain { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 34ch; margin: 22px 0 30px; line-height: 1.5; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__note { margin-top: 26px; font-size: 14.5px; color: var(--ink-soft); font-weight: 550; display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); flex: none; }

/* ---------- SIGNATURE: booking → shopping list widget ---------- */
.register {
  background: var(--paper-2);
  border: 1px solid var(--line-dk);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: 0 30px 60px -34px rgba(38,20,10,.4), 0 2px 0 var(--line);
  position: relative;
}
.register__head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.register__label { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.register__month { margin: 3px 0 0; font-weight: 750; font-size: 18px; }
.register__pill {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; font-weight: 600;
  background: var(--tint); color: var(--accent-dk);
  padding: 5px 10px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.register__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* quote strip: headcount × per-plate = quote */
.quotebar {
  display: flex; align-items: stretch; gap: 8px;
  margin: 14px 0 12px; padding: 12px; border-radius: var(--r-sm);
  background: var(--tint-2); border: 1px solid var(--line);
}
.quotebar__cell { flex: 1; text-align: center; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quotebar__k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.quotebar__v { font-weight: 750; font-size: 15px; }
.quotebar__cell--out .quotebar__v { color: var(--accent-dk); }
.quotebar__x { align-self: center; font-weight: 700; color: var(--ink-soft); font-size: 15px; }

.register__mini { margin: 0 0 10px; font-size: 12px; color: var(--ink-soft); line-height: 1.4; }

.register__rows { list-style: none; margin: 6px 0; padding: 0; }
.reg-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 12px 0 12px 14px; border-bottom: 1px dashed var(--line);
}
.reg-row:last-child { border-bottom: 0; }
.reg-row__name { font-weight: 650; font-size: 14.5px; }
.reg-row__amt { font-weight: 700; font-size: 14.5px; text-align: right; }
.reg-row__tag { justify-self: end; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; transition: background .3s, color .3s; white-space: nowrap; }
.tag--paid { background: var(--accent); color: #fff; }
.tag--due  { background: var(--tint); color: var(--accent-dk); }
.tag--over { background: var(--warn-soft); color: var(--warn); }

.reg-row.flash { background: var(--tint-2); border-radius: 8px; }

.register__foot { display: flex; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--line-dk); }
.regstat { flex: 1; }
.regstat__label { display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 3px; }
.regstat__val { font-weight: 750; font-size: 19px; }
.regstat__val--in { color: var(--accent); }
.regstat__val--out { color: var(--warn); }
.register__caption { margin: 14px 0 2px; font-size: 12.5px; color: var(--ink-soft); font-style: italic; min-height: 1.4em; }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--tint { background: linear-gradient(180deg, var(--tint-2), var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; max-width: 20ch; }
.section__title--sm { font-size: clamp(24px, 2.8vw, 34px); }

.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 46px; }
.prose { color: var(--ink-soft); font-size: 17px; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---------- PROBLEM ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px;
  border-left: 4px solid var(--warn);
}
.pain__i { font-size: 26px; display: block; margin-bottom: 12px; }
.pain h3 { font-size: 18.5px; font-weight: 750; margin-bottom: 8px; }
.pain p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- INSIGHT ---------- */
.insight { background: var(--ink); color: var(--paper); padding: 92px 0; }
.insight .eyebrow--light { color: color-mix(in srgb, var(--tint) 80%, var(--accent)); }
.insight__quote {
  margin: 0; font-size: clamp(26px, 4vw, 46px); font-weight: 750; line-height: 1.18;
  letter-spacing: -0.025em; max-width: 22ch;
}
.insight__quote .hl { color: #fff; background: linear-gradient(180deg, transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding: 0 2px; }
.insight__punch { margin: 32px 0 0; font-size: 18px; color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 64ch; }
.insight__punch strong { color: #fff; }

/* ---------- HOW IT WORKS ---------- */
.section__title + .steps { margin-top: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 48px; counter-reset: none; }
.step { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.step__n {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: var(--tint); color: var(--accent-dk);
  font-family: var(--mono); font-weight: 700; font-size: 20px;
  display: grid; place-items: center;
  border: 1px solid var(--line-dk);
}
.step h3 { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- FEATURES ---------- */
.section__title + .feat-grid { margin-top: 44px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px;
  position: relative; transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.feat::before { content: ""; position: absolute; top: 24px; left: 0; width: 4px; height: 26px; background: var(--accent); border-radius: 0 3px 3px 0; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(38,20,10,.4); border-color: var(--line-dk); }
.feat h3 { font-size: 18px; font-weight: 750; margin-bottom: 9px; padding-left: 14px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; padding-left: 14px; }

/* ---------- PRODUCT PREVIEW ---------- */
.section__title + .screen { margin-top: 44px; }
.screen {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-dk);
  box-shadow: 0 40px 80px -40px rgba(38,20,10,.5);
  background: var(--paper-2);
}
.screen__bar { display: flex; align-items: center; gap: 8px; background: #F0E6DA; padding: 12px 16px; border-bottom: 1px solid var(--line-dk); }
.screen__dot { width: 11px; height: 11px; border-radius: 50%; background: #D8C6B2; }
.screen__dot:nth-child(1) { background: #E0A08E; }
.screen__dot:nth-child(2) { background: #E4C98E; }
.screen__dot:nth-child(3) { background: #C6B090; }
.screen__url { margin-left: 12px; font-size: 12.5px; color: var(--ink-soft); background: var(--paper); padding: 5px 12px; border-radius: 6px; border: 1px solid var(--line); }

.screen__body { padding: 26px; background: var(--paper); }
.screen__topline { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.screen__hello { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.screen__sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.screen__tag { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; background: var(--tint); color: var(--accent-dk); padding: 7px 12px; border-radius: 8px; white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.kpi--in  { border-top: 3px solid var(--accent); }
.kpi--out { border-top: 3px solid var(--warn); }
.kpi--flat { border-top: 3px solid var(--line-dk); }
.kpi__label { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.kpi__val { margin: 8px 0 12px; font-size: 26px; font-weight: 800; }
.kpi--in .kpi__val { color: var(--accent); }
.kpi--out .kpi__val { color: var(--warn); }
.kpi__bar { height: 6px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.kpi__bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.kpi__bar--out span { background: var(--warn); }
.kpi__meta { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.kpi--flat .kpi__val { color: var(--ink); }

.tablecard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tablecard__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.tablecard__head p { margin: 0; font-weight: 750; font-size: 15px; }
.tablecard__hint { font-family: var(--mono); font-size: 11px; color: var(--accent-dk); letter-spacing: .04em; }
.tablescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dtable { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 14px; }
.dtable th { text-align: left; padding: 11px 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; background: var(--tint-2); border-bottom: 1px solid var(--line); }
.dtable td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .num { text-align: right; font-weight: 650; }
.dtable td:first-child { font-weight: 650; }
.s { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.s--paid { background: var(--accent); color: #fff; }
.s--due  { background: var(--tint); color: var(--accent-dk); }
.s--over { background: var(--warn-soft); color: var(--warn); }

/* ---------- PRICING ---------- */
.price-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; margin-top: 12px; }
.price-copy .prose { margin: 20px 0 24px; }
.price-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.price-includes li { position: relative; padding-left: 30px; font-weight: 550; font-size: 15.5px; }
.price-includes li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

.price-card {
  background: var(--ink); color: var(--paper);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: 0 36px 70px -34px rgba(38,20,10,.6);
  position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%); }
.price-card__eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--tint); }
.price-card__amt { margin: 12px 0 6px; font-weight: 800; font-size: 58px; letter-spacing: -0.03em; line-height: 1; }
.price-card__line { margin: 0 0 22px; font-size: 13.5px; color: color-mix(in srgb, var(--paper) 68%, transparent); }
.price-card .btn { border-color: var(--accent-dk); }

/* ---------- WHO + FAQ ---------- */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.who .prose { margin: 18px 0 24px; }
.who-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.who-tags span { font-size: 14px; font-weight: 600; background: var(--tint); color: var(--accent-dk); padding: 8px 14px; border-radius: 30px; border: 1px solid var(--line-dk); }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px 20px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--line-dk); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); flex: none; transition: transform .2s; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: var(--paper); padding: 54px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { color: var(--paper); }
.footer .brand__book { color: color-mix(in srgb, var(--tint) 75%, var(--accent)); }
.footer__tag { margin: 12px 0 0; color: color-mix(in srgb, var(--paper) 66%, transparent); font-size: 15px; }
.footer__meta { text-align: right; }
.footer__studio { margin: 0 0 8px; font-size: 15px; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.footer__studio strong { color: #fff; letter-spacing: .12em; }
.footer__mail { color: var(--tint); border-bottom: 1px solid color-mix(in srgb, var(--tint) 40%, transparent); font-size: 15px; }
.footer__mail:hover { color: #fff; }
.footer__fine { margin: 14px 0 0; font-size: 12.5px; color: color-mix(in srgb, var(--paper) 46%, transparent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__pain { max-width: 48ch; }
  .register { max-width: 460px; }
  .two-col { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; gap: 32px; }
  .who-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav__links { display: none; }
  .nav__inner { height: 60px; }
  .hero { padding: 40px 0 52px; }
  .section { padding: 60px 0; }
  .insight { padding: 66px 0; }
  .pain-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .screen__body { padding: 16px; }
  .hero__cta { gap: 14px; }
  .quotebar { flex-wrap: wrap; }
  .quotebar__x { display: none; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}
