/* Culinary Analytics product site
   Tokens: teal brand from the existing product, deep teal ink, kitchen-ticket gold used only
   for the money moment (receipt total, primary closing button, focus ring).
   Type: Bricolage Grotesque (display), Public Sans (text), IBM Plex Mono (receipts and tickets only). */

:root {
  --teal: #1e6a7d;
  --teal-2: #17586a;
  --deep: #0f3440;
  --ink: #16323b;
  --muted: #516a72;
  --line: #d3e1e3;
  --tint: #eef4f4;
  --white: #ffffff;
  --gold: #f2b632;
  --gold-soft: #fff4d6;
  --good: #2c7a4b;
  --warn: #a5541b;

  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --text: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--deep);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.narrow > * { max-width: 820px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.measure { max-width: 64ch; }
.mt { margin-top: 1.5em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--text); font-weight: 600; font-size: 0.98rem;
  padding: 10px 18px; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-2); color: #fff; }
.btn-line { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-line:hover { background: var(--tint); color: var(--teal-2); }
.btn-gold { background: var(--gold); color: var(--deep); }
.btn-gold:hover { background: #e2a520; color: var(--deep); }
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; }

/* Header ------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn), .login summary { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav > a:not(.btn):hover, .login summary:hover { color: var(--teal); }
.nav > a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); }
.menu-btn { display: none; font: 600 0.95rem var(--text); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; color: var(--deep); }

.login { position: relative; }
.login summary { cursor: pointer; list-style: none; }
.login summary::-webkit-details-marker { display: none; }
.login summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.login[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 14px); width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(15,52,64,0.16); padding: 6px;
}
.login-menu a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.login-menu a:hover { background: var(--tint); }
.login-menu strong { display: block; font-size: 0.95rem; }
.login-menu span { display: block; font-size: 0.85rem; color: var(--muted); }

/* Sections ----------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-flush { padding-top: 0; }
.section-tint { background: var(--tint); }
.section-title { margin-bottom: 1.2em; max-width: 24ch; }
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 20ch; }

/* Hero + receipt (the one bold moment) ------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 96px); background:
  linear-gradient(180deg, var(--tint) 0%, #fff 78%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 17ch; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }

.receipt { margin: 0; justify-self: center; width: min(100%, 370px); transform: rotate(1.6deg); filter: drop-shadow(0 18px 30px rgba(15,52,64,0.18)); }
.receipt-paper {
  background: #fff;
  padding: 26px 26px 34px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
}
.r-head { text-align: center; font-weight: 600; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.r-head span { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.r-lines { list-style: none; margin: 0; padding: 0; }
.r-lines li, .r-sub, .r-total { display: flex; justify-content: space-between; gap: 12px; }
.r-lines li { position: relative; padding: 3px 0; color: var(--muted); }
.r-lines li::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 52%; height: 1.5px;
  background: var(--warn); opacity: 0.85; transform-origin: left; transform: scaleX(1);
}
.r-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--warn); }
.r-total {
  margin: 12px -10px 0; padding: 10px; font-weight: 600; font-size: 1.1rem;
  background: var(--gold-soft); border-left: 4px solid var(--gold); color: var(--deep);
}
.r-foot { margin: 14px 0 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .r-lines li::after { animation: strike 0.35s ease-out both; }
  .r-lines li:nth-child(1)::after { animation-delay: 0.5s; }
  .r-lines li:nth-child(2)::after { animation-delay: 0.68s; }
  .r-lines li:nth-child(3)::after { animation-delay: 0.86s; }
  .r-lines li:nth-child(4)::after { animation-delay: 1.04s; }
  .r-lines li:nth-child(5)::after { animation-delay: 1.22s; }
  .r-lines li:nth-child(6)::after { animation-delay: 1.4s; }
  .r-lines li:nth-child(7)::after { animation-delay: 1.58s; }
  .r-lines li:nth-child(8)::after { animation-delay: 1.76s; }
  .r-total { animation: print 0.5s 2.1s ease-out both; }
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes print { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Split (text + ring figure) ----------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-text p { color: var(--muted); }
.split-media img, .figure-wide img { width: 100%; }

/* Differentiators: text beside an example ticket ---------------------------- */
.edge { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: 32px; border-top: 1px solid var(--line); }
.edge:first-of-type { border-top: 0; padding-top: 0; }
.edge-text h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); max-width: 24ch; }
.edge-text p { color: var(--muted); max-width: 58ch; margin: 0; }
.ticket { background: #fff; border-top: 5px solid var(--teal); border-radius: 2px 2px 8px 8px; padding: 18px 20px; font-family: var(--mono); font-size: 0.88rem; box-shadow: 0 6px 18px rgba(15,52,64,0.08); }
.ticket-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--deep); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.ticket-title span { font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.ticket dl { margin: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; color: var(--deep); }
.ticket .good dd { color: var(--good); }
.ticket .warn dd { color: var(--warn); }

.expected { font-size: 1.1rem; color: var(--muted); max-width: 68ch; }

/* Segments ------------------------------------------------------------------ */
.segments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.segment { text-decoration: none; color: var(--ink); }
.segment img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.segment-name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--deep); }
.segment-desc { display: block; color: var(--muted); font-size: 0.95rem; }
.segment:hover .segment-name { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }

/* Founder ------------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; max-width: 980px; }
.founder img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; }
.founder p { color: var(--muted); max-width: 62ch; }
.prose p { color: var(--ink); font-size: 1.08rem; }
.sign { font-family: var(--display); font-weight: 700; color: var(--deep) !important; }

/* Closing band -------------------------------------------------------------- */
.closer { background: var(--deep); color: #d6e6e8; }
.closer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: clamp(48px, 7vw, 80px); }
.closer h2 { color: #fff; margin-bottom: 0.3em; }
.closer p { margin: 0; max-width: 52ch; }

/* Pricing ------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 24px; align-items: start; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #fff; }
.plan h2 { font-size: 1.4rem; margin-bottom: 0.4em; }
.plan-featured { border: 2px solid var(--teal); box-shadow: 0 16px 36px rgba(15,52,64,0.12); }
.plan-quiet { background: var(--tint); border-color: transparent; }
.plan-price { margin: 0 0 6px; color: var(--muted); }
.amt { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--deep); line-height: 1; margin-right: 4px; }
.amt-sm { font-size: 2rem; }
.plan-for { color: var(--muted); }
.plan-aside { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { position: relative; padding: 5px 0 5px 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.fine { font-size: 0.85rem; color: var(--muted); max-width: 90ch; margin-top: 20px; }

.table-scroll { overflow-x: auto; }
.cost { width: 100%; max-width: 920px; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.cost th, .cost td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cost thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--deep); }
.cost td:nth-child(2) { color: var(--muted); }
.cost .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost .sum th, .cost .sum td { font-weight: 700; background: #f7fafa; }
.cost .ours th, .cost .ours td { font-weight: 800; color: var(--deep); background: var(--gold-soft); }
.cost .gap td { border: 0; padding: 6px; background: var(--tint); }
.savings { font-size: 1.15rem; margin-top: 22px; max-width: 70ch; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--deep); }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 66ch; }

/* Platform modules ---------------------------------------------------------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.module { padding: 24px 0; border-top: 1px solid var(--line); }
.module h2 { font-size: 1.35rem; }
.module p { color: var(--muted); margin: 0; max-width: 56ch; }

/* Solutions ----------------------------------------------------------------- */
.uses { display: grid; gap: 48px; }
.use { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.use:nth-child(even) img { order: 2; }
.use img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.use p { color: var(--muted); max-width: 56ch; }

/* Demo form ----------------------------------------------------------------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--deep); }
.opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--text); color: var(--ink); padding: 11px 12px;
  border: 1px solid #b9cdd1; border-radius: 8px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 0.95rem; color: var(--deep); margin-bottom: 8px; }
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.form .check input { width: 18px; height: 18px; accent-color: var(--teal); }
.form button { justify-self: start; }
.form-errors[hidden] { display: none; }
.form-errors { background: #fbeee4; border-left: 4px solid var(--warn); padding: 12px 16px; border-radius: 4px; }
.form-errors p { margin: 0 0 4px; font-weight: 600; }
.form-errors ul { margin: 0; padding-left: 20px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-side h2 { font-size: 1.4rem; }
.steps { padding-left: 22px; margin: 0 0 28px; }
.steps li { padding: 4px 0; color: var(--muted); }
.side-card { background: var(--tint); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.side-card h3 { font-size: 1.1rem; }
.side-card p { color: var(--muted); }

.next-grid { display: grid; gap: 12px; }
.next-item { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.next-item strong { color: var(--teal); font-size: 1.05rem; }
.next-item span { color: var(--muted); }
.next-item:hover { border-color: var(--teal); }

/* Footer -------------------------------------------------------------------- */
.foot { background: #0b2a33; color: #b8cfd3; padding-top: 56px; font-size: 0.95rem; }
.foot a { color: #e2eef0; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.foot-grid > div:not(.foot-brand) { display: grid; gap: 8px; align-content: start; }
.foot h2 { font-family: var(--text); font-size: 0.95rem; font-weight: 700; color: #fff; margin: 0 0 4px; letter-spacing: 0; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 14px; }
.foot-brand p { max-width: 34ch; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .split, .demo-grid { grid-template-columns: 1fr; }
  .receipt { transform: rotate(0.8deg); }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px; }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .login summary { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .login-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 6px 12px; }
  .top-row { position: relative; }
}
@media (max-width: 720px) {
  .edge, .use, .modules, .founder { grid-template-columns: 1fr; }
  .use:nth-child(even) img { order: 0; }
  .founder img { width: 160px; height: 160px; }
  .field-row, .checks-grid { grid-template-columns: 1fr; }
  .segments { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cost th, .cost td { padding: 10px 8px; font-size: 0.9rem; }
}

/* Booking calendar on the thank-you page */
.page-head-tight { padding-bottom: 24px; }
.booking { max-width: 980px; }
.booking-frame { display: block; width: 100%; height: 860px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.booking-alt { margin-top: 10px; font-size: 0.92rem; }
@media (max-width: 720px) { .booking-frame { height: 1000px; } }
