/* TableTap product site. The same palette and type as the menu and dashboard (public/index.html). */
:root {
  color-scheme: light;
  --paper: #faf7f1;
  --cream: #f3ede1;
  --surface: #ffffff;
  --ink: #1f2420;
  --muted: #5d6259;
  --line: #e6e0d3;
  --green: #1f4d33;
  --green-hover: #163a26;
  --on-green: #ffffff;
  --green-soft: #e6eedf;
  --leaf: #3d7a4f;
  --tomato: #c4361f;
  --deep: #17301f;
  --deep-ink: #eef2ea;
  --deep-muted: #b5c2b4;
  --deep-line: rgba(255, 255, 255, .14);
  --bezel: #141714;
  --shadow: 0 1px 2px rgba(31, 36, 32, .06), 0 12px 32px rgba(31, 36, 32, .10);
  --shadow-lg: 0 2px 6px rgba(31, 36, 32, .08), 0 28px 60px rgba(31, 36, 32, .16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #141915;
    --cream: #1a201b;
    --surface: #1f2620;
    --ink: #f2efe8;
    --muted: #a8ada2;
    --line: #2f3830;
    --green: #5fb87f;
    --green-hover: #70d494;
    --on-green: #0f2418;
    --green-soft: #1f3a29;
    --leaf: #6dcc95;
    --tomato: #ff7a63;
    --deep: #0f1511;
    --deep-ink: #eef2ea;
    --deep-muted: #a9b5a8;
    --deep-line: rgba(255, 255, 255, .1);
    --bezel: #0a0c0a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 60px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
.nowrap { white-space: nowrap; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--green); color: var(--on-green); }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); margin-bottom: 14px; }
.center { text-align: center; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.01em; text-wrap: balance; }
.section-title.center { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-lead { color: var(--muted); font-size: 18px; margin-top: 14px; }
.section-lead.center { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.button.primary { background: var(--green); color: var(--on-green); }
.button.primary:hover { background: var(--green-hover); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); }
.button.small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.button.wide { width: 100%; }
.button:active { transform: translateY(1px); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -.01em; }
.for-dark { display: none; }
@media (prefers-color-scheme: dark) { .for-light { display: none; } .for-dark { display: block; } }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:hover { color: var(--green); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 959px) {
  .nav.open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    padding: 8px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.open a:last-child { border-bottom: 0; }
}
@media (max-width: 380px) { .top-actions .button.small { padding: 8px 12px; font-size: 14px; } .brand-name { font-size: 21px; } }
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 26px; margin-left: 28px; }
  .nav-toggle { display: none; }
}

/* Device frames */
.phone { background: var(--bezel); border-radius: 34px; padding: 7px; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 28px; width: 100%; }
.tablet { background: var(--bezel); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-lg); }
.tablet img { border-radius: 12px; width: 100%; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--cream); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(38px, 6.2vw, 64px); letter-spacing: -.015em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .lead { margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .icon { color: var(--leaf); }
.hero-visual { position: relative; padding: 0 0 72px 15%; }
.hero-phone { position: absolute; left: 0; bottom: 0; width: 26%; max-width: 190px; }
.toast {
  position: absolute; right: -6px; bottom: 22px; display: flex; gap: 12px; align-items: center; max-width: 290px;
  padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: toast-in .6s .5s both cubic-bezier(.2, .8, .2, 1);
}
.toast .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.toast strong { display: block; font-size: 14.5px; }
.toast span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
@media (max-width: 559px) { .hero-visual { padding-bottom: 56px; } .hero-phone { width: 28%; } .toast { right: 0; bottom: 8px; max-width: 220px; padding: 10px 12px; } .toast span { display: none; } }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: .95fr 1.15fr; gap: 48px; }
  .toast { right: -24px; }
}

/* Why */
.why { padding: 64px 0; border-top: 1px solid var(--line); }
.why-grid { display: grid; gap: 18px; margin-top: 40px; }
.why-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-number { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--tomato); }
.why-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 10px 0 10px; }
.why-card p { color: var(--muted); }
.why-card strong { color: var(--ink); font-weight: 600; }
@media (min-width: 860px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* How it works: kitchen tickets */
.how { padding: 72px 0; background: var(--cream); }
.ticket-strip { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 18px; counter-reset: step; }
.ticket {
  position: relative; padding: 26px 24px 26px; background: var(--surface); border-radius: 6px;
  box-shadow: var(--shadow); counter-increment: step;
  -webkit-mask: radial-gradient(circle 7px at 0 54px, transparent 98%, #000) , radial-gradient(circle 7px at 100% 54px, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.ticket::before { content: ""; position: absolute; left: 14px; right: 14px; top: 54px; border-top: 2px dashed var(--line); }
.ticket-step { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); height: 18px; }
.ticket-step::after { content: "#0" counter(step); color: var(--muted); letter-spacing: .06em; }
.ticket h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 30px 0 10px; }
.ticket p { color: var(--muted); font-size: 16px; }
.ticket strong { color: var(--ink); }
@media (min-width: 640px) { .ticket-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .ticket-strip { grid-template-columns: repeat(4, 1fr); } }

/* Roles */
.roles { padding: 80px 0 40px; }
.role { display: grid; gap: 36px; align-items: center; margin-top: 64px; }
.role-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); }
.role h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.2vw, 36px); margin: 10px 0 14px; }
.role-copy > p:not(.role-label) { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { margin-top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.ticks strong { font-weight: 600; }
.role-visual { min-width: 0; }
.phones { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; max-width: 480px; margin: 0 auto; }
.phone-offset { margin-top: 48px; }
@media (min-width: 960px) {
  .role { grid-template-columns: 1fr 1.25fr; gap: 64px; margin-top: 96px; }
  .role.flip .role-copy { order: 2; }
  .role.flip { grid-template-columns: 1.25fr 1fr; }
}

/* Videos: a picture until it's played, then YouTube's player in its place (site.js) */
.video-block { max-width: 920px; margin: 48px auto 0; text-align: center; }
.video-block.together { margin-top: 80px; }
.video-block .role-label { margin-bottom: 14px; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bezel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--green); color: var(--on-green); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); transition: transform .2s, background-color .2s;
}
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video.play-low .video-play { top: 80%; } /* below the walkthrough's title text */
.video.play-aside .video-play { left: 81%; top: 52%; } /* beside the phone on the plans video's cover */
a.video:hover .video-play { transform: scale(1.06); background: var(--green-hover); }
a.video:hover img { filter: brightness(.95); }
a.video:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.video-block figcaption { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 16px; text-wrap: balance; }
.video-block figcaption strong { color: var(--ink); font-weight: 600; }
.video-length { display: inline-block; margin: 0 4px 0 8px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; vertical-align: 1px; }
.button.ghost .icon { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .video-play, .video img { transition: none; } }
@media (max-width: 559px) { .video { border-radius: 12px; } .video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .video-play .icon { width: 22px; height: 22px; margin-left: 3px; } }
@media (min-width: 960px) { .video-block { margin-top: 64px; } .video-block.together { margin-top: 112px; } }

/* Insights */
.insights { margin-top: 72px; padding: 80px 0; background: var(--deep); color: var(--deep-ink); }
.insights .eyebrow { color: #f19b88; }
.insights .lead { color: var(--deep-muted); margin-top: 16px; }
.insights-grid { display: grid; gap: 44px; align-items: center; }
.insight-list { margin: 30px 0 0; display: grid; gap: 18px; }
.insight-list div { padding-bottom: 18px; border-bottom: 1px solid var(--deep-line); }
.insight-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.insight-list dt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.insight-list dt .icon { color: #8fd0a6; }
.insight-list dd { margin: 4px 0 0 30px; color: var(--deep-muted); font-size: 16px; }
.insights-visual img { border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); border: 1px solid var(--deep-line); }
@media (min-width: 960px) { .insights-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }

/* Features */
.features { padding: 88px 0 72px; }
.feature-grid { display: grid; gap: 16px; margin-top: 44px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.feature h3 { font-size: 18px; font-weight: 700; margin: 16px 0 6px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* Plans */
.plans { padding: 80px 0; background: var(--cream); }
.plan-grid { display: grid; gap: 18px; margin-top: 44px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.plan-tag { color: var(--muted); margin-top: 4px; }
.plan-price { margin: 20px 0 4px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 18px; }
.plan-plus { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan .ticks { margin: 14px 0 26px; }
.plan .button { margin-top: auto; }
.plan.featured { border: 2px solid var(--green); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--tomato); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } .plan { min-height: 100%; } }

/* FAQ */
.faq { padding: 88px 0; }
.faq-grid { display: grid; gap: 36px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--muted); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* Demo request */
.demo { padding: 88px 0; background: var(--green-soft); }
.demo-grid { display: grid; gap: 40px; align-items: start; }
.demo .lead { margin-top: 16px; }
.demo-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.demo-steps li { display: flex; gap: 14px; align-items: flex-start; }
.demo-steps span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 700; font-size: 15px; }
.demo-call { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 600; }
.demo-call a { font-weight: 700; }
.demo-form { padding: 28px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.field [aria-invalid="true"] { border-color: var(--tomato); }
.form-message:empty { display: none; }
.form-message { padding: 12px 14px; border-radius: 12px; background: var(--cream); font-size: 15px; }
.form-message.error { color: var(--tomato); }
.form-note { color: var(--muted); font-size: 14px; text-align: center; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } .demo-form { padding: 32px; } }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Footer */
.foot { background: var(--deep); color: var(--deep-ink); padding: 56px 0 28px; }
.foot-grid { display: grid; gap: 32px; }
.foot .brand-logo { width: 44px; height: 44px; }
.foot-brand p { margin-top: 12px; color: var(--deep-muted); max-width: 280px; }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links h2 { font: 700 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--deep-muted); margin-bottom: 4px; }
.foot-links a { color: var(--deep-ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--deep-line); color: var(--deep-muted); font-size: 14px; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
