/* Axio — restaurant management platform
   Design tokens and components ported from the Claude Design source.
   Layout is desktop-first to match the source; breakpoints at 960/720/520. */

:root {
  --cream: #f4f3e7;
  --ink: #0e150e;
  --forest: #00473c;
  --lime: #e6ff55;
  --sage: #d8e5d6;
  --sand: #e8dcc6;
  --rule: #8c8c82;
  --muted: #555555;

  --sans: 'Space Grotesk', 'Noto Sans Armenian', 'Noto Sans', sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  --shell: 1200px;
  --gutter: 40px;
  --band: 100px;

  --r-pill: 9999px;
  --r-card: 24px;
  --r-img: 20px;
  --r-field: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.band-forest :focus-visible { outline-color: var(--cream); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-field) 0;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ── Layout primitives ───────────────────────────────────────── */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.band { display: block; }
.band-cream { background: var(--cream); }
.band-sage { background: var(--sage); }
.band-sand { background: var(--sand); }
.band-forest { background: var(--forest); color: var(--cream); }
.band-forest a { color: var(--cream); }

.band-pad { padding-top: var(--band); padding-bottom: var(--band); }
.band-pad-sm { padding-top: 80px; padding-bottom: 80px; }
.page-head { padding-top: 60px; padding-bottom: 60px; }

/* Grid and flex items default to min-width:auto, which lets a long unbreakable
   word (common in Armenian and Russian) push a track wider than the viewport.
   Every layout child opts out so columns can actually shrink. */
.split > *,
.section-head > *,
.contact-grid > *,
.builder-grid > *,
.builder-counts > *,
.faq-grid > *,
.card-grid-3 > *,
.plan-grid > *,
.catalog > *,
.footer-grid > *,
.product-block .shell > * { min-width: 0; }

/* Armenian and Russian compound words routinely exceed a narrow column, so
   breaking is the safe default for all copy rather than per-component. */
body { overflow-wrap: break-word; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.split-center { align-items: center; }
.split-start { align-items: start; }
.split-end { align-items: end; }

/* ── Type ────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--forest);
}
.band-forest .eyebrow { color: inherit; opacity: 0.7; }

.h1 {
  font-size: clamp(40px, 7vw, 70px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: pretty;
}
.h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.2;
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: 0.54px;
  margin: 0;
  max-width: 32em;
}
.body {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.27px;
  margin: 0;
}
.small {
  font-size: 15px;
  line-height: 1.29;
  letter-spacing: 0.24px;
}
.fine {
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.2px;
}
.num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--forest);
}
.serif-note {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 80px 0 0;
  max-width: 26em;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.017em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--lime);
  padding: 14px 24px;
}
.btn-lime:hover { background: #d9f23c; border-color: #d9f23c; color: var(--ink); }

.btn-outline {
  background: none;
  color: var(--forest);
  border: 2px solid var(--forest);
  padding: 14px 24px;
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.btn-outline-light {
  background: none;
  color: var(--cream);
  border: 2px solid var(--cream);
  padding: 14px 24px;
}
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }

.btn-small {
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-block { display: block; width: 100%; }

.link-arrow {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.017em;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { color: var(--forest); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--forest);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--forest); }
.nav-link[aria-current='page'] { color: var(--forest); border-bottom-color: var(--forest); }

.lang-switch { display: flex; gap: 4px; }
.lang-link {
  border-radius: var(--r-pill);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
}
.lang-link:hover { color: var(--forest); }
.lang-link[aria-current='true'] { background: var(--forest); color: var(--cream); }

/* ── Segmented control (billing period, contact intent) ──────── */

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 2px solid var(--forest);
  border-radius: var(--r-pill);
  align-self: flex-start;
}
.seg {
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.seg[aria-pressed='true'] { background: var(--forest); color: var(--cream); }

/* ── Chips and steppers (builder) ────────────────────────────── */

.chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--rule);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.024em;
  text-align: left;
  /* Module names are long compound words in Armenian and Russian; a chip must
     never grow past its container on a narrow screen. */
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed='true'] { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.stepper { display: flex; align-items: center; gap: 16px; }
.step-btn {
  background: none;
  color: var(--forest);
  border: 2px solid var(--forest);
  border-radius: var(--r-pill);
  width: 44px;
  height: 44px;
  flex: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.step-btn:hover:not(:disabled) { background: var(--forest); color: var(--cream); }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-value {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  min-width: 2.2em;
  text-align: center;
}

/* ── Home ────────────────────────────────────────────────────── */

.hero { padding-top: 60px; padding-bottom: 80px; }
.hero-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-img);
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg, var(--sand) 0 12px, var(--sage) 12px 24px);
}
.hero-media img,
.block-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-head .body { max-width: 30em; }

.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.category { display: flex; flex-direction: column; gap: 8px; }

.integrations {
  display: flex;
  gap: 40px;
  align-items: baseline;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.integrations .eyebrow { margin: 0; }
.integration-list { display: flex; gap: 32px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.integration-list li {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.54px;
  color: var(--muted);
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.pricing-head .h2 { margin-bottom: 16px; max-width: 22em; }
.pricing-head .body { max-width: 30em; }

.support-list { display: flex; flex-direction: column; }
.support-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.support-item .num { padding-top: 4px; }
.support-item .h3 { margin-bottom: 8px; }

.band-forest .h1, .band-forest .h2 { color: inherit; }
.cta-band .h1 { max-width: 18em; }
.cta-band .lede { margin-bottom: 40px; }

/* ── Plan cards ──────────────────────────────────────────────── */

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.plan {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.plan-featured { background: var(--forest); color: var(--cream); }

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.plan-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-badge {
  display: inline-flex;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.plan-amount {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-strike {
  font-size: 24px;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.4;
}
.plan-from {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24px;
  opacity: 0.75;
}
.plan-period { font-size: 14px; letter-spacing: 0.24px; opacity: 0.65; }
.plan-savings { font-size: 12px; line-height: 1.33; letter-spacing: 0.2px; opacity: 0.65; margin: 0 0 20px; }
.plan-desc { margin: 0 0 28px; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  margin: 0 0 32px;
  border-top: 1px solid rgba(14, 21, 14, 0.16);
  list-style: none;
}
.plan-featured .plan-features { border-top-color: rgba(244, 243, 231, 0.28); }
.plan-features li { display: flex; gap: 12px; align-items: flex-start; }
.plan-features li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  margin-top: 7px;
  background: var(--forest);
}
.plan-featured .plan-features li::before { background: var(--lime); }
.plan .btn { margin-top: auto; }

/* Billing period toggle: both variants render server-side. */
.plan-price [data-period='yearly'],
.plan-savings [data-period='yearly'] { display: none; }
[data-billing='yearly'] .plan-price [data-period='monthly'],
[data-billing='yearly'] .plan-savings [data-period='monthly'] { display: none; }
[data-billing='yearly'] .plan-price [data-period='yearly'] { display: inline; }
[data-billing='yearly'] .plan-savings [data-period='yearly'] { display: inline; }

/* ── Modules page ────────────────────────────────────────────── */

.product-block .shell {
  padding-top: var(--band);
  padding-bottom: var(--band);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-block .h2 { margin-bottom: 24px; }
.product-block .body { margin-bottom: 24px; max-width: 32em; }
.block-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-img);
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg, var(--sand) 0 12px, var(--sage) 12px 24px);
}
.point-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.point { display: flex; gap: 16px; }
.point .num { padding-top: 3px; flex: none; }
.point-text {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.27px;
  font-weight: 700;
}

.catalog-title { margin-bottom: 48px; }
.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 60px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unit {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
/* Category labels are single long words in Armenian and Russian, so they must
   be allowed to wrap rather than force the row wider than its column. */
.unit .num { padding-top: 4px; min-width: 7em; overflow-wrap: anywhere; }
.unit .h3 { margin-bottom: 8px; }

/* ── Pricing page ────────────────────────────────────────────── */

.price-foot { color: var(--muted); margin: 24px 0 0; max-width: 48em; }
.builder-link { margin-top: 32px; }

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.faq-item .h3 { margin-bottom: 8px; }
.faq-item .body { max-width: 40em; }

/* ── Builder ─────────────────────────────────────────────────── */

.builder-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: start;
  padding-top: 80px;
  padding-bottom: var(--band);
}
.builder-questions { display: flex; flex-direction: column; gap: 40px; }
.builder-question .h3 { margin-bottom: 16px; }
.builder-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.builder-result {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--r-card);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.builder-result .eyebrow { margin-bottom: 20px; }
.result-label { font-size: 12px; letter-spacing: 0.2px; margin: 0 0 4px; opacity: 0.7; }
.result-scale { margin: 0 0 20px; }
.result-modules { margin: 0 0 24px; }
.builder-result .fine { margin: 16px 0 0; opacity: 0.65; }

/* ── Contact ─────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: var(--band);
}
.contact-grid .lede { margin-bottom: 48px; }
.contact-rows { display: flex; flex-direction: column; gap: 20px; }
.contact-row { border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.contact-row dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--muted);
}
.contact-row dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 0.6px; }

.form-card {
  background: var(--sage);
  border-radius: var(--r-card);
  padding: 40px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; letter-spacing: 0.24px; }
.field input,
.field textarea {
  border: 1px solid var(--ink);
  border-radius: var(--r-field);
  padding: 12px 14px;
  font-size: 16px;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
.field textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.form-legal { color: var(--muted); margin: 0; }
.form-error {
  color: #8a1c1c;
  font-weight: 700;
  margin: 0;
}

.form-sent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 40px 0;
}
.form-sent .h2 { font-size: clamp(28px, 4vw, 40px); line-height: 0.9; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer { background: var(--forest); color: var(--cream); }
.footer-grid {
  padding-top: 60px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { font-size: 25px; font-weight: 700; margin-bottom: 12px; }
.footer-tag { font-size: 14px; line-height: 1.29; letter-spacing: 0.24px; margin: 0; max-width: 22em; opacity: 0.8; }
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
  opacity: 0.7;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a,
.footer-contact {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.017em;
  color: var(--cream);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-contact { font-weight: 400; letter-spacing: 0.27px; }
.footer-legal {
  border-top: 1px solid rgba(244, 243, 231, 0.3);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.2px;
  opacity: 0.75;
}
.footer-bottom { padding-bottom: 40px; }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 960px) {
  :root { --gutter: 28px; --band: 72px; }

  .card-grid-3,
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .faq-grid,
  .builder-grid { grid-template-columns: 1fr; gap: 40px; }
  .builder-result { position: static; }
  .contact-grid { gap: 48px; }
}

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 16px 20px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; }
  .lang-switch { margin-left: auto; }

  .split,
  .section-head,
  .product-block .shell,
  .contact-grid,
  .catalog,
  .builder-counts { grid-template-columns: 1fr; gap: 32px; }

  .split-center .hero-media { order: -1; }
  .card-grid-3,
  .plan-grid { grid-template-columns: 1fr; gap: 24px; }

  .serif-note { margin-top: 56px; }
  .section-head { margin-bottom: 40px; }
  .form-card { padding: 28px; }
  .unit .num { min-width: 0; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .header-inner { gap: 12px 16px; }
  .site-nav { gap: 14px; }
  .nav-link { font-size: 13px; }
  .header-cta { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan { padding: 24px; }

  /* Long localized labels cannot sit side by side at this width. */
  .segmented { flex-wrap: wrap; width: 100%; }
  .seg { flex: 1 1 auto; text-align: center; }
  .step-value { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-row, .segmented { display: none; }
  body { background: #fff; }
}
