/* 3DineBase landing page
   Layout: single centred column (max 1160px) with full-width bands for the offline pitch and apply form.
   Look: deep teal "kitchen pass" ink, turmeric accent, receipt-paper white; receipt mono for figures. */

:root {
  --ink: #0E2A2D;
  --ink-2: #1B3F43;
  --paper: #FBFAF6;
  --surface: #FFFFFF;
  --line: #DCE3E1;
  --muted: #546A6C;
  --text: #13292B;
  --accent: #E39B12;        /* turmeric */
  --accent-ink: #2B1C00;
  --accent-soft: #FCF0D6;
  --leaf: #1F8A5B;
  --leaf-soft: #E2F3EA;
  --bkash: #D12053;
  --band-text: #EAF2F1;
  --band-muted: #A9C2C0;

  --f-display: "Sora", "Hind Siliguri", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "Inter", "Hind Siliguri", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 45, .06), 0 12px 32px rgba(14, 42, 45, .10);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1A1C;
    --surface: #112426;
    --line: #233B3E;
    --muted: #93ABA9;
    --text: #E6EFEE;
    --accent: #F0AE33;
    --accent-ink: #1E1300;
    --accent-soft: #33270F;
    --leaf: #4CC48A;
    --leaf-soft: #133126;
    --ink: #081416;
    --ink-2: #102629;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
html[lang="bn"] body { font-size: 18px; line-height: 1.7; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow { font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 14px; }
.eyebrow-light { color: var(--accent); }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }
.section-lede { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #22403F;
  color: var(--band-text);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--band-muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid #2E5357; border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--band-muted); cursor: pointer;
  font: 600 .8rem/1 var(--f-body); padding: 7px 10px; border-radius: 999px; min-width: 40px; white-space: nowrap;
}
.lang button[aria-pressed="true"] { background: #fff; color: #0E2A2D; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #2E5357; border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav { display: grid; padding: 8px var(--gutter-r) 16px var(--gutter); border-top: 1px solid #22403F; }
.mobile-nav a { padding: 14px 4px; text-decoration: none; font-weight: 600; color: #fff; border-bottom: 1px solid #22403F; }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.lede { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231F8A5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.hero-visual { position: relative; min-width: 0; display: flex; justify-content: center; padding: 12px 0 40px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 2% 0 8%; border-radius: 28px;
  background: radial-gradient(120% 90% at 70% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--ink);
}
.ticket {
  position: relative; width: min(340px, 86%); margin-top: 0; padding: 22px 22px 30px;
  background: #FFFDF7; color: #1B1B18; font: 400 .86rem/1.5 var(--f-mono);
  border-radius: 8px 8px 0 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transform: rotate(-2deg); animation: print 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 10px; padding-bottom: 12px; border-bottom: 1px dashed #BDB6A4; }
.ticket-logo { font: 700 1rem/1 var(--f-display); }
.ticket-status { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 600; color: #8A5A00; background: #FFF1D2; border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.ticket-status i { width: 7px; height: 7px; border-radius: 50%; background: #E39B12; }
.ticket-status b { font-weight: 600; }
.ticket-status.synced { color: #10603F; background: #DDF3E7; }
.ticket-status.synced i { background: #1F8A5B; }
.ticket-meta { display: flex; justify-content: space-between; margin: 12px 0 8px; color: #6B675C; font-size: .74rem; letter-spacing: .06em; }
.ticket-lines { list-style: none; margin: 0; padding: 0; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.ticket-lines li.note { color: #8A857A; padding-left: 14px; font-style: italic; }
.ticket-sum { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #BDB6A4; font-variant-numeric: tabular-nums; }
.ticket-sum div { display: flex; justify-content: space-between; }
.tk { font: inherit; font-family: "Hind Siliguri", var(--f-body); font-style: normal; }
.ticket-sum .total { font-weight: 600; font-size: 1.05rem; margin-top: 6px; }
.ticket-pay { display: flex; gap: 8px; margin-top: 14px; }
.chip { font: 600 .72rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; border: 1px solid #D8D2C2; }
.chip-bkash { background: var(--bkash); border-color: var(--bkash); color: #fff; }
.ticket-tear { position: absolute; left: 0; right: 0; bottom: -10px; height: 12px;
  background: linear-gradient(-45deg, transparent 6px, #FFFDF7 0) 0 0 / 12px 12px repeat-x,
              linear-gradient(45deg, transparent 6px, #FFFDF7 0) 0 0 / 12px 12px repeat-x; }
.kds-card {
  position: absolute; right: 2%; bottom: 8px; display: flex; gap: 12px; align-items: center;
  background: var(--surface); color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .88rem; animation: rise .6s .9s cubic-bezier(.2, .8, .2, 1) both;
}
.kds-card b { display: block; font-family: var(--f-display); }
.kds-card span { color: var(--muted); }
.kds-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px var(--leaf-soft); flex: none; }

@keyframes print { from { clip-path: inset(0 0 100% 0); transform: rotate(-2deg) translateY(-12px); } to { clip-path: inset(0 0 -20px 0); transform: rotate(-2deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.mode { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mode p { color: var(--muted); }
.mode-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.mode-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flow li { font: 500 .74rem/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--leaf) 10%, transparent); color: var(--text); }
.flow li.pay { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 60%, var(--text)); font-weight: 600; }

/* Offline band */
.band { background: var(--ink); color: var(--band-text); padding-block: clamp(56px, 8vw, 96px); }
.band h2 { color: #fff; }
.band p { color: var(--band-muted); margin-top: 16px; max-width: 56ch; }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-grid > * { min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 14px 16px 14px 48px; border: 1px solid #2B4C50; border-radius: 12px; background: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%;
  background: #1F8A5B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 26px 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }
.hardware { margin-top: 40px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.hardware > * { min-width: 0; }
.hw-intro h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
.hw-intro p:last-child { color: var(--muted); margin-top: 10px; }
.hw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hw-list li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.hw-list b { font-family: var(--f-display); font-weight: 600; }
.hw-list span { color: var(--muted); font-size: .95rem; }
.hw-list .hw-sunmi { border: 2px solid var(--accent); background: var(--accent-soft); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding-top: 18px; border-top: 3px solid var(--text); }
.steps li::before { content: "0" counter(step); font: 600 .85rem/1 var(--f-mono); color: var(--leaf); }
.steps b { font: 600 1.15rem/1.2 var(--f-display); }
.steps span { color: var(--muted); }

/* Pricing */
.offer-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 28px; max-width: 880px;
  background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.offer-box > div { flex: 1 1 380px; min-width: 0; display: grid; gap: 10px; }
.offer-lede { font-size: 1.06rem; line-height: 1.55; }
.offer-box .btn { flex: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; max-width: 880px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price span { font: 700 2.6rem/1 var(--f-display); letter-spacing: -.02em; }
.price small { color: var(--muted); }
.plan-note { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }
.plan-after { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.plan-after p { font-weight: 500; }
.plan-trust { color: var(--leaf); font: 600 .8rem/1.4 var(--f-mono) !important; letter-spacing: .04em; }
.plan .btn { align-self: flex-start; margin-top: 6px; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.faq-wrap > * { min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font: 600 1.05rem/1.4 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem/1 var(--f-body); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 64ch; }

/* Apply */
.apply { background: var(--ink); color: var(--band-text); }
.apply h2 { color: #fff; }
.apply-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.apply-grid > * { min-width: 0; }
.apply p { color: var(--band-muted); margin-top: 14px; }
.contact { margin: 28px 0 0; display: grid; gap: 16px; }
.contact div { display: grid; gap: 2px; }
.contact dt { font: 600 .74rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact a { text-decoration: none; border-bottom: 1px solid #3C6266; }
.apply-form { background: var(--surface); color: var(--text); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--text); font: 400 1rem/1 var(--f-body);
}
.field input:focus, .field select:focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 3px var(--leaf-soft); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.apply-form .btn, .form-error, .form-note { grid-column: 1 / -1; }
.form-error { color: #B42318; background: #FDECEA; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin: 0; }
.form-note { color: var(--muted) !important; font-size: .85rem; margin: 0 !important; }

/* Footer */
.site-footer { background: var(--ink); color: var(--band-muted); border-top: 1px solid #22403F; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand-footer .brand-logo { height: 38px; }
.copy { margin-left: auto; }

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav, .header-actions .btn-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .band-grid, .faq-wrap, .apply-grid, .hardware { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .hero-visual { padding-top: 0; }
}
@media (min-width: 861px) { .mobile-nav { display: none !important; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features, .steps, .plans,   .lang button { min-width: 34px; padding: 7px 8px; }
  .kds-card { right: 0; }
  .ticket-status { white-space: normal; }
  .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket, .kds-card { animation: none; }
  .btn { transition: none; }
}

/* Apply form: hidden spam trap, and the thank-you note */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-form [hidden] { display: none !important; }   /* the form's own display rules must not undo hidden */
.apply-form .form-ok { grid-column: 1 / -1; background: var(--leaf-soft); color: var(--text); border-radius: 10px; padding: 14px 16px; font-weight: 600; margin: 0; }
.apply-form button[disabled] { opacity: .7; cursor: progress; }

/* WhatsApp: the quickest way to reach sales */
.btn-wa { background: #1FA855; color: #fff; display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; }
.btn-wa:hover { background: #178A46; }
.wa-icon { width: 22px; height: 22px; flex: none; }
.wa-float {
  position: fixed; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; background: #1FA855; color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .wa-icon { width: 30px; height: 30px; }
.wa-float:focus-visible, .btn-wa:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
