/* ============================================================
   RaddiBook — explainer site
   Palette built around the burnt-amber accent #B45309 on kraft
   scrap-book paper. Signature: money and weights are always set
   in tabular monospace, so the whole page reads like a weigh-slip
   ledger (the kabadiwala's book).
   ============================================================ */

:root {
  --ink:        #241A11;   /* deep kraft-brown text */
  --ink-soft:   #57493B;   /* muted body text */
  --paper:      #F7F1E8;   /* warm kraft paper */
  --paper-2:    #FFFDF9;   /* raised cards */
  --accent:     #B45309;   /* burnt amber — primary / cash */
  --accent-dk:  #8A3F06;   /* darker amber */
  --tint:       #EBDDC7;   /* muted sand panel */
  --tint-2:     #F1E8D8;   /* faint sand */
  --warn:       #A13210;   /* deep rust — loss / under-paid */
  --warn-soft:  #F3DDD0;
  --gain:       #3F6B2E;   /* olive green — resale margin gain */
  --gain-soft:  #DEE9D3;
  --line:       #E4D8C4;   /* hairline rule on paper */
  --line-dk:    #D2C2A6;

  --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/weight helper: tabular monospace everywhere ---------- */
.reg-row__amt, .regstat__val, .kpi__val, .price-card__amt,
.dtable .num, .screen__url, .reg-row__wt {
  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(180,83,9,.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(180,83,9,.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: 32ch; 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: live weigh-slip register ---------- */
.register {
  background: var(--paper-2);
  border: 1px solid var(--line-dk);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: 0 30px 60px -34px rgba(36,26,17,.4), 0 2px 0 var(--line);
  position: relative;
}
.register::after {
  content: ""; position: absolute; left: 20px; top: 66px; bottom: 118px; width: 3px;
  background: var(--accent); border-radius: 3px; opacity: .12;
}
.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;
}
.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; } }

.register__rows { list-style: none; margin: 6px 0; padding: 0; }
.reg-row {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "name wt amt";
  gap: 2px 12px; align-items: center;
  padding: 13px 0 13px 14px; border-bottom: 1px dashed var(--line);
}
.reg-row:last-child { border-bottom: 0; }
.reg-row__name { grid-area: name; font-weight: 650; font-size: 14.5px; }
.reg-row__name em { color: var(--ink-soft); font-style: normal; font-weight: 500; font-size: 12.5px; display: block; margin-top: 2px; }
.reg-row__wt { grid-area: wt; font-weight: 600; font-size: 13px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.reg-row__amt { grid-area: amt; font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; }

.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(--gain); }
.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: 21ch;
}
.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: 62ch; }
.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(36,26,17,.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(36,26,17,.5);
  background: var(--paper-2);
}
.screen__bar { display: flex; align-items: center; gap: 8px; background: #EDE4D5; padding: 12px 16px; border-bottom: 1px solid var(--line-dk); }
.screen__dot { width: 11px; height: 11px; border-radius: 50%; background: #CBBEA6; }
.screen__dot:nth-child(1) { background: #E0A08E; }
.screen__dot:nth-child(2) { background: #E4C98E; }
.screen__dot:nth-child(3) { background: #B7C79C; }
.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(--gain); }
.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(--gain); }
.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(--gain); }
.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); }
.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: 560px; 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--gain { background: var(--gain); color: #fff; }
.s--hold { background: var(--tint); color: var(--accent-dk); }
.s--loss { 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(36,26,17,.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; 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: 46ch; }
  .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; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}
