/* obai.app - the front door. Routes to Kamochi (drivers) and Tools (pros).
   Built in the shared Obai brand: Kamochi cream/tan + Tools orange accent. */
:root {
  --cream:   #f4efe4;   /* kamochi.ai bg */
  --cream-2: #ece5d6;
  --cream-3: #f6f1e7;
  --card:    #fffdf9;
  --line:    #e4d8c2;
  --ink:     #1a1713;
  --ink-soft:#4a443b;
  --muted:   #8b8373;
  --tan:     #c79a5b;
  --tan-deep:#a9803f;
  --gold:    #d9ad63;
  --orange:  #ff5f1e;   /* tools.obai.app accent */
  --orange-2:#ffb800;
  --dark:    #17140f;
  --tool:    #1f6f5c;
  --r: 22px;
  --shadow: 0 30px 70px -34px rgba(60,40,20,.42);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--cream-3) 0%, var(--cream) 46%);
  color: var(--ink);
  font-family: 'Red Hat Text', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Red Hat Display', system-ui, sans-serif; letter-spacing: -.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ── Header ── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(244,239,228,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228,216,194,.6);
}
.logo { height: 34px; width: auto; display: block; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav a { font-weight: 700; font-size: 15px; color: var(--ink-soft); padding: 9px 16px; border-radius: 999px; transition: .16s; }
.top-nav a:hover { background: var(--cream-2); color: var(--ink); }
.top-nav .top-cta { background: var(--dark); color: #fff; }
.top-nav .top-cta:hover { background: #000; color: #fff; }

/* ── Hero (centered) ── */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
.hero { text-align: center; padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 52px); }
.pill {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .01em;
  color: var(--tan-deep); background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px; margin: 0 0 24px;
}
h1 { font-weight: 900; font-size: clamp(38px, 7.2vw, 72px); line-height: 1.02; margin: 0 auto 20px; max-width: 16ch; }
.accent { background: linear-gradient(100deg, var(--orange), var(--orange-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-soft); margin: 0 auto 30px; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Products ── */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 26px); padding: clamp(20px, 4vw, 40px) 0; }
.prod {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3.2vw, 38px); border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s;
}
.prod:hover { transform: translateY(-6px); box-shadow: 0 40px 84px -34px rgba(60,40,20,.5); }
.prod::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; border-radius: var(--r) var(--r) 0 0; }
.prod-kam::before  { background: linear-gradient(90deg, var(--tan-deep), var(--gold)); }
.prod-tool::before { background: linear-gradient(90deg, var(--orange), var(--orange-2)); }

.prod-tag { font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.prod-kam  .prod-tag { color: var(--tan-deep); }
.prod-tool .prod-tag { color: var(--orange); }
.prod h2 { font-weight: 900; font-size: clamp(27px, 3.6vw, 36px); margin: 0 0 11px; }
.prod-desc { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 22px; }

.prod-cta { display: inline-flex; align-items: center; gap: 9px; font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); margin-top: 22px; }
.prod-cta svg { width: 19px; height: 19px; transition: transform .22s; }
.prod:hover .prod-cta svg { transform: translateX(5px); }

/* preview frame shared — both cream so the two previews are a matched pair */
.prev { margin-top: auto; border-radius: 16px; padding: 20px; overflow: hidden; background: var(--cream-3); border: 1px solid var(--line); }

/* Kamochi answer-card mock (white, mirrors the ACV report) */
.kcard2 { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px 18px; box-shadow: 0 8px 22px -14px rgba(60,40,20,.4); }
.kcard2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kcard2-ttl { display: inline-flex; align-items: center; gap: 8px; font-family: 'Red Hat Display', sans-serif; font-weight: 900; font-size: 15px; color: var(--ink); }
.kcard2-ttl i { color: var(--tan-deep); font-style: normal; }
.kcard2-tap { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), var(--tan-deep)); color: #fff; }
.kcard2-tap svg { width: 15px; height: 15px; }
.kcard2-mi { font-size: 12.5px; color: var(--muted); }
.kcard2-car { margin: 8px 0 12px; font-size: 13px; color: var(--muted); }
.kcard2-said { padding: 11px 0 12px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.kcard2-said span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tan-deep); font-weight: 800; margin-bottom: 3px; }
.kcard2-said p { margin: 0; font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 16px; color: var(--ink); }
.kcard2-rows { margin-top: 10px; display: flex; flex-direction: column; }
.kcard2-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13px; }
.kcard2-rows > div + div { border-top: 1px solid var(--line); }
.kcard2-rows span { color: var(--muted); }
.kcard2-rows b { color: var(--ink); text-align: right; font-weight: 700; }
.kcard2-rows b.hot { color: var(--orange); }

/* Tools ACV report mock */
.trep { background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 16px 18px; box-shadow: 0 8px 22px -14px rgba(60,40,20,.4); }
.trep-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trep-ttl { font-family: 'Red Hat Display', sans-serif; font-weight: 800; font-size: 14px; color: var(--ink); }
.trep-badge { font-size: 11px; font-weight: 800; color: var(--tool); background: rgba(31,111,92,.1); padding: 4px 10px; border-radius: 999px; }
.trep-car { margin: 8px 0 14px; font-size: 13px; color: var(--muted); }
.trep-val { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.trep-val span { font-size: 12.5px; color: var(--ink-soft); }
.trep-val b { font-family: 'Red Hat Display', sans-serif; font-weight: 900; font-size: 26px; color: var(--orange); }
.trep-bars { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 12px; }
.trep-bars i { height: 7px; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); opacity: .85; }
.trep-src { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ── About ── */
.about { text-align: left; padding: clamp(44px, 8vw, 90px) 0 clamp(30px, 5vw, 50px); }
.about-eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin: 0 0 14px; }
.about h2 { font-weight: 900; font-size: clamp(28px, 4.6vw, 44px); margin: 0 0 18px; max-width: 18ch; }
.about-lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--ink-soft); margin: 0 0 48px; max-width: 64ch; }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 26px); text-align: left; align-items: stretch; }
.about-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.about-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); color: var(--tan-deep); margin-bottom: 14px; }
.about-ic svg { width: 24px; height: 24px; }
.about-grid h3 { font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.about-grid p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ── Demo ── */
.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center;
  background: var(--dark); color: #fff; border-radius: var(--r);
  padding: clamp(32px, 5vw, 56px); margin: clamp(26px, 4vw, 44px) 0;
}
.demo-eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.demo h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 14px; color: #fff; }
.demo-copy p { color: rgba(255,255,255,.72); font-size: 16px; margin: 0; }
.demo-form { display: flex; flex-direction: column; gap: 12px; }
.df-row { display: flex; gap: 12px; }
.demo-form input, .demo-form textarea {
  width: 100%; font: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 13px 15px; resize: vertical;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: rgba(255,255,255,.45); }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }
.demo-form .btn-dark { background: var(--orange); margin-top: 4px; }
.demo-form .btn-dark:hover { background: #ff7a42; }
.demo-msg { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.demo-msg.ok  { color: #8ff0bf; }
.demo-msg.err { color: #ffb37a; }

/* ── Footer (Powered by OBAI, cream band) ── */
.foot {
  background: #f1ebdd; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 26px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line);
}
.foot p { margin: 0; font-size: 13.5px; }
.foot .foot-right { color: var(--muted); }
.foot .foot-right strong { color: var(--orange); font-weight: 800; letter-spacing: .02em; }
.foot a { color: var(--ink-soft); text-decoration: underline; }
.foot a:hover { color: var(--tan-deep); }

/* ── Mobile ── */
@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top-nav a:not(.top-cta) { display: none; }
  .df-row { flex-direction: column; }
  .foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .prod, .btn, .prod-cta svg { transition: none; } }

/* ── The Kamochi brand, as it is actually printed ──────────────────────────
   The wordmark is a drawn lockup, not a typeface: a dotless i with a pair of
   cat ears floating where the tittle would be, and a flame-coloured period.
   Red Hat Display 900 set as live text cannot carry the ears, so where there
   is room the real artwork goes in. */
.kam-wm { margin: 0 0 11px; line-height: 0; }
.kam-wm img { height: clamp(27px, 3.6vw, 36px); width: auto; display: block; }

/* Inline among other text links, the full lockup would shrink to a smudge —
   so those keep live text and take just the flame period. Same correction
   kamochi.ai needed: the period is #FF5F1E on the card, never tan. */
.kdot { color: var(--orange, #ff5f1e); }

/* The real card front, replacing the receipt mock that was drawn in CSS. */
.kcard-real { display: block; width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 18px 38px -16px rgba(60,40,20,.42), 0 2px 6px rgba(60,40,20,.12); }
