/* ═══════════════════════════════════════════════════════════════
   DineXpro main site — single shared stylesheet (PASUL 2024)
   No external resources: system font stack, inline SVG icons only.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --brand: #E65100;
  --brand-strong: #BF360C;
  --brand-soft: #FFF3E9;
  --ink: #201A17;
  --ink-2: #52463F;
  --ink-3: #85756B;
  --surface: #FFFFFF;
  --surface-2: #FAF6F3;
  --surface-3: #F3ECE7;
  --line: #E7DCD4;
  --ok: #2E7D32;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-height: 64px;
  --shadow-1: 0 1px 2px rgba(32, 26, 23, .06), 0 4px 16px rgba(32, 26, 23, .06);
  --shadow-2: 0 2px 6px rgba(32, 26, 23, .08), 0 12px 32px rgba(32, 26, 23, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #FF8A50;
    --brand-strong: #FFA726;
    --brand-soft: #33251C;
    --ink: #EDE5E0;
    --ink-2: #C4B8B0;
    --ink-3: #93857C;
    --surface: #17120F;
    --surface-2: #1E1814;
    --surface-3: #272019;
    --line: #3A2F27;
    --shadow-1: none;
    --shadow-2: none;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px;
  border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.nav.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner {
  height: var(--nav-height);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff; font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav__logo--sm { width: 26px; height: 26px; font-size: 15px; }
.nav__links {
  display: flex; align-items: center; gap: 22px; margin-left: auto;
  font-size: 15px; font-weight: 500;
}
.nav__links > a:not(.btn) { color: var(--ink-2); }
.nav__links > a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav__lang {
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2) !important;
}
.nav__lang:hover { border-color: var(--brand); color: var(--brand) !important; }
.nav__toggle {
  display: none; margin-left: auto;
  background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px;
}
.nav__mobile { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile.is-open {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .nav__mobile a { padding: 10px 4px; font-weight: 500; color: var(--ink-2); }
  .nav__mobile .btn { text-align: center; margin-top: 8px; color: #fff; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; cursor: pointer;
  border-radius: 12px; font-family: var(--font);
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 14px 24px; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-strong); }
.btn--outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); padding: 12.5px 22.5px;
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--block { display: block; text-align: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(44px, 7vw, 90px);
  background:
    radial-gradient(1000px 460px at 82% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 62%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hero__inner { max-width: 780px; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08;
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero__subtitle { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin-bottom: 32px; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}
.section__title {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 12px;
}
.section__subtitle { font-size: 17px; color: var(--ink-2); max-width: 680px; margin-bottom: 40px; }

/* ── Card grids ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-1);
}
.section--alt .card { box-shadow: none; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card__text { font-size: 15px; color: var(--ink-2); }
.card__tag {
  display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
}

/* ── Steps ───────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step__text { font-size: 14.5px; color: var(--ink-2); }

/* ── Split feature rows ──────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 22px; } }
.split__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.split__text { color: var(--ink-2); margin-bottom: 14px; }
.split ul { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.split ul li { margin-bottom: 6px; }
.split__panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2); padding: 28px; min-height: 200px;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.split__chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-1); display: flex; align-items: center; gap: 10px;
}
.split__chip svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ── Pricing ─────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); padding: 30px 26px; position: relative;
  display: flex; flex-direction: column; box-shadow: var(--shadow-1);
}
.tier--recommended { border: 2px solid var(--brand); }
.tier__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 14px; white-space: nowrap;
}
.tier__name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.tier__desc { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; min-height: 44px; }
.tier__price { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.tier__price small { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tier__alt { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.tier__list { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14.5px; }
.tier__list li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.tier__list li:first-child { border-top: none; }
.tier__list li.is-included { color: var(--ink); }
.tier__list li.is-included::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 16px; height: 16px;
  background: var(--ok);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/contain no-repeat;
}
.tier__list li.is-excluded { color: var(--ink-3); }
.tier__list li.is-excluded::before {
  content: "–"; position: absolute; left: 6px; top: 7px; font-weight: 700; color: var(--ink-3);
}
.tier .btn { margin-top: auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.price-table td:nth-child(2), .price-table td:nth-child(3),
.price-table th:nth-child(2), .price-table th:nth-child(3) { text-align: right; white-space: nowrap; }
.price-table .price-table__name { font-weight: 700; color: var(--ink); }
.price-table .price-table__desc { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-scroll .price-table th { background: var(--surface-2); }
.table-scroll .price-table td, .table-scroll .price-table th { border-bottom: 1px solid var(--line); }
.table-scroll .price-table tr:last-child td { border-bottom: none; }

/* ── Notices / badges ────────────────────────────────────────── */
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  background: var(--brand-soft); border-radius: 10px;
  padding: 16px 18px; font-size: 14.5px; color: var(--ink);
}
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px dashed var(--line); border-radius: 12px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: none; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 600; font-size: 15.5px; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 600; color: var(--ink-3);
}
.faq details[open] summary::after { content: "–"; }
.faq .faq__body { padding: 0 20px 18px; font-size: 15px; color: var(--ink-2); }
.faq .faq__body p + p { margin-top: 8px; }

/* ── CTA band ────────────────────────────────────────────────── */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 120%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%),
    var(--surface-2);
  border-top: 1px solid var(--line);
}
.cta__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.015em; }
.cta__subtitle { color: var(--ink-2); margin-bottom: 26px; }

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-hero { padding: clamp(40px, 6vw, 64px) 0 clamp(26px, 4vw, 40px); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.legal-hero__back { font-size: 14px; font-weight: 600; display: inline-block; margin-bottom: 14px; }
.legal-hero__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.legal-hero__subtitle { color: var(--ink-2); max-width: 640px; }
.legal-hero__meta { display: inline-block; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

.legal-content { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px); }
.legal-content h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal-content p, .legal-content li { font-size: 15.5px; color: var(--ink-2); }
.legal-content p { margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--ink); }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 14px 0 18px; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--ink-2); }
.legal-content th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.legal-toc {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2); padding: 18px 20px; margin-bottom: 30px;
}
.legal-toc__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 10px; }
.legal-toc ol { columns: 2; column-gap: 28px; padding-left: 20px; margin: 0; font-size: 14.5px; }
@media (max-width: 620px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin-bottom: 5px; }
.legal-note {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 24px;
}

/* ── Identity block (legal page) ─────────────────────────────── */
.id-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 620px) { .id-grid { grid-template-columns: 1fr; } }
.id-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.id-item__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 4px; }
.id-item__value { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 44px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.footer__tagline { font-size: 14px; color: var(--ink-2); max-width: 280px; }
.footer__heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 12px; }
.footer__links { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--brand); }
.footer__legalline {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 13px; color: var(--ink-3); line-height: 1.7;
}
.footer__legalline strong { color: var(--ink-2); }

/* ── Utility ─────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--ink-3); }
