/* ==========================================================================
   ApsidaERP — base, layout, components
   ========================================================================== */

/* --- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Safety net: decorative bleeds must never give the page a sideways scroll. */
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

/* --- Type ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: var(--step-5); letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
h4 { font-size: var(--step-0); letter-spacing: 0; }
p  { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }

/* Eyebrow: names the section's role in the product, not decoration */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: var(--sp-3);
}

/* --- Layout --------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 9vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.section--dark { background: var(--plum); color: #d9cddd; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--brand-bright); }
.section--alt { background: var(--surface-2); }

.section__head { max-width: 46rem; margin-bottom: var(--sp-7); }
.section__head p { margin-top: var(--sp-4); font-size: var(--step-1); line-height: 1.5; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100%;
  background: var(--brand); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md); z-index: 200; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .8em 1.5em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 10px 34px rgba(165,2,168,.32); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }

.btn--on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--on-dark:hover { background: rgba(255,255,255,.16); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

/* --- Header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 252, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 68px;
}
.logo {
  display: inline-flex; align-items: baseline; gap: .12em; text-decoration: none;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
}
.logo b { color: var(--brand); font-weight: 800; }

.nav { margin-inline-start: auto; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.5rem); list-style: none; padding: 0; }
.nav__list a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96rem;
  padding: var(--sp-2) 0; position: relative;
}
.nav__list a:hover { color: var(--brand); }
.nav__list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Sign-in lives in the header on desktop and in the drawer below it. */
.nav__app { display: none; }

.lang-switch { display: flex; gap: 2px; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; }
.lang-switch a {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--ink-3); padding: .3em .7em; border-radius: var(--r-pill);
}
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .45rem .55rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Greek nav labels are long: the drawer has to take over well before the
   usual tablet breakpoint, or the last item pushes the page sideways. */
@media (max-width: 1150px) {
  .nav-toggle { display: block; order: 3; }
  .header__actions { order: 2; margin-inline-start: auto; }
  .nav {
    order: 4; flex-basis: 100%; margin: 0;
    display: none; padding-bottom: var(--sp-5);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__list a { display: block; padding: var(--sp-4) 0; font-size: 1.05rem; }
  .nav__list a[aria-current="page"]::after { display: none; }
  .nav__app { display: block; }
  .site-header__bar { flex-wrap: wrap; }
}

/* On narrow phones the sign-in link would wrap the header onto three rows;
   it stays reachable from the drawer and the app link in the footer. */
@media (max-width: 30rem) {
  .header__actions .btn--ghost { display: none; }
  .logo { font-size: 1.2rem; }
}

/* --- Hero ----------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -12%; top: -30%;
  width: 60vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,51,228,.13), transparent 62%);
  pointer-events: none;
}
.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; position: relative; }
@media (min-width: 62rem) { .hero__inner { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { margin-bottom: var(--sp-6); }
.hero .btn-row { margin-bottom: var(--sp-5); }

.trust-line {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  font-size: var(--step--1); color: var(--ink-3); list-style: none; padding: 0;
}
.trust-line li { display: flex; align-items: center; gap: var(--sp-2); }
.trust-line svg { color: var(--signal); flex: none; }

/* --- Signature: the παραστατικό → ΜΑΡΚ transmission card ------------ */
.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  max-width: 30rem;
  margin-inline: auto;
}
.doc-card__bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(100deg, var(--brand), var(--brand-bright));
  color: #fff;
}
.doc-card__bar span { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-card__body { padding: var(--sp-5); }
.doc-card__body dl { margin: 0; }
.doc-row { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.doc-row:last-of-type { border-bottom: 0; }
.doc-row dt { color: var(--ink-3); }
.doc-row dd { font-family: var(--font-mono); color: var(--ink); font-weight: 500; text-align: end; margin: 0; }

.doc-card__status {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: var(--signal-tint); border-radius: var(--r-md);
  color: #0a6b4a; font-weight: 600; font-size: .92rem;
}
.doc-card__status svg { flex: none; color: var(--signal); }

/* --- Cards ---------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: rgba(165,2,168,.3); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { font-size: .96rem; }
.card__icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand);
  margin-bottom: var(--sp-4);
}
.section--dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .card:hover { border-color: rgba(214,51,228,.45); }
.section--dark .card p { color: #c3b5c8; }
.section--dark .card__icon { background: rgba(214,51,228,.16); color: var(--brand-bright); }

/* --- Module list (mirrors the app sidebar) -------------------------- */
.modules {
  list-style: none; padding: 0; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.modules li {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: .95rem; color: var(--ink);
}
.modules li[data-soon] { border-style: dashed; color: var(--ink-3); }
.modules svg { flex: none; color: var(--brand); }
/* Release-status badges: shipped, in progress, planned. */
.badge-soon, .badge-live, .badge-planned {
  margin-inline-start: auto; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2em .55em; border-radius: var(--r-sm); white-space: nowrap;
}
.badge-soon    { background: var(--brand-tint);  color: var(--brand); }
.badge-live    { background: var(--signal-tint); color: #0a6b4a; }
.badge-planned { background: transparent; color: var(--ink-3); border: 1px solid var(--line); }

/* --- Founder -------------------------------------------------------- */
.founder { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 52rem) {
  .founder { grid-template-columns: minmax(0, 17rem) 1fr; }
}
/* Stacked, a full-width 2:3 portrait would push the story off the screen. */
@media (max-width: 52rem) {
  .founder__photo { max-width: 14rem; }
}
.founder__photo {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  /* The studio backdrop is near-white; multiply lets the brand tint show
     through it so the portrait sits on the page instead of on a grey box. */
  background: linear-gradient(165deg, var(--brand-tint), var(--surface-2));
}
.founder__photo img { width: 100%; height: auto; mix-blend-mode: multiply; }

.founder__quote > p { font-size: var(--step-0); }
.founder__quote > p:first-child::first-letter { font-weight: 600; }

.founder__sign {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.founder__sign b {
  display: block; font-family: var(--font-display); font-weight: 700;
  color: var(--ink); font-size: var(--step-0); letter-spacing: -.01em;
}
.founder__sign span {
  display: block; font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .04em; color: var(--ink-3); margin-top: .15rem;
}

/* --- Roadmap -------------------------------------------------------- */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.roadmap li {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-2) var(--sp-4);
  align-items: start;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.roadmap li[data-state="planned"] { background: transparent; border-style: dashed; }
.roadmap li[data-state="live"] { border-color: rgba(14, 159, 110, .35); }
.roadmap li[data-state="soon"] { border-color: rgba(165, 2, 168, .3); }
.roadmap h3 { font-size: var(--step-0); margin: 0 0 .2rem; }
.roadmap p { font-size: .92rem; line-height: 1.5; margin: 0; color: var(--ink-3); }
.roadmap li[data-state="planned"] h3 { color: var(--ink-2); }
@media (max-width: 30rem) {
  .roadmap li { grid-template-columns: 1fr; }
  .roadmap [class^="badge-"] { margin-inline-start: 0; justify-self: start; }
}

/* --- Product screenshots -------------------------------------------- */
.shots { display: grid; gap: var(--sp-6); }
.shots__pair {
  display: grid; gap: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
}
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}
.shot figcaption {
  margin-top: var(--sp-4);
  font-size: .92rem; line-height: 1.55; color: var(--ink-3);
  max-width: 56ch;
}
.shot figcaption strong { color: var(--ink); font-weight: 600; }

/* --- Pricing -------------------------------------------------------- */
/* stretch, not start: the three cards share a height so the row reads as one
   comparison rather than three ragged columns. */
.plans { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.plans .plan { display: flex; flex-direction: column; }
/* The slack from a shorter feature list opens directly after the contents, so
   the add-on checkbox, the activation note and the button stay grouped at the
   bottom of every card instead of drifting apart. */
.plans .plan__opts { margin-top: auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-3); position: relative; }
.plan__tag {
  position: absolute; top: -.85rem; inset-inline-start: var(--sp-6);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; padding: .35em .8em; border-radius: var(--r-pill);
}
.plan__price { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); font-weight: 700; margin-block: var(--sp-4) var(--sp-2); }
.plan__price small {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 400;
  color: var(--ink-3); margin-inline-start: .3em;
}
.plan ul { list-style: none; padding: 0; margin-block: var(--sp-5); display: grid; gap: var(--sp-3); font-size: .94rem; }
.plan li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.plan li svg { flex: none; color: var(--signal); margin-top: .3em; }

/* --- Flow: a real ordered sequence, so the numbers carry information --- */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.flow li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
  position: relative;
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-tint); color: var(--brand);
  border: 1px solid rgba(165, 2, 168, .18);
}
/* Connector between steps, not after the last one. */
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.125rem; top: 2.6rem; bottom: .5rem;
  width: 1px; background: linear-gradient(var(--line), transparent);
}
.flow li:last-child { padding-bottom: 0; }
.flow h3, .flow h4 { font-size: var(--step-0); margin-bottom: var(--sp-2); }
.flow p { font-size: .96rem; margin: 0; }

.section--dark .flow li::before { background: rgba(214, 51, 228, .16); color: var(--brand-bright); border-color: rgba(214, 51, 228, .3); }
.section--dark .flow li:not(:last-child)::after { background: linear-gradient(rgba(255,255,255,.18), transparent); }
.section--dark .flow p { color: #c3b5c8; }

/* --- Pricing controls ----------------------------------------------- */
.pricing { border: 0; padding: 0; margin: 0; }

.tier-select { border: 0; padding: 0; margin: 0 0 var(--sp-6); }
.tier-select legend {
  padding: 0; margin-bottom: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.tier-select__options {
  display: inline-flex; flex-wrap: wrap; gap: 2px;
  background: var(--surface-2); border-radius: var(--r-pill); padding: 4px;
}
.tier-option { position: relative; }
.tier-option input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.tier-option span {
  display: block; padding: .5em 1.1em; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease);
}
.tier-option input:checked + span {
  background: var(--surface); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-1);
}
.tier-option input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.tier-option:hover input:not(:checked) + span { color: var(--brand); }

/* Reserve three lines: the longest blurb wraps to three, and without this the
   prices sit at different heights across the row. */
.tier-hint {
  margin-top: var(--sp-3); max-width: 46ch;
  font-size: .88rem; line-height: 1.5; color: var(--ink-3);
}
.plan__blurb { font-size: .93rem; color: var(--ink-3); margin-top: var(--sp-2); min-height: 5em; }
.plan__note { font-size: .85rem; color: var(--ink-3); margin-top: var(--sp-2); }
.plan__price span[data-price] { font-variant-numeric: tabular-nums; }

.plan__price s {
  display: block;
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 400;
  color: var(--ink-3); text-decoration-thickness: 1px; margin-bottom: .1rem;
}
.plan__save {
  display: inline-block; vertical-align: .35em;
  margin-inline-start: .4em;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  background: var(--signal-tint); color: #0a6b4a;
  padding: .25em .5em; border-radius: var(--r-sm);
}
.plan__billed {
  font-size: .85rem; color: var(--ink-3); margin-top: var(--sp-2);
}
.plan__billed span { font-variant-numeric: tabular-nums; }

.plan__vat {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--ink-3); margin-top: var(--sp-2);
}

.plan__features-title {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.plan__features {
  list-style: none; padding: 0;
  margin-block: var(--sp-4) var(--sp-5); display: grid; gap: var(--sp-3);
  font-size: .94rem;
}
.plan__features li { display: flex; gap: var(--sp-3); align-items: flex-start; }
/* The Agriculture card is full width, so its list reads better in columns
   than as one long stack. */
.plan__features--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.plan .plan__features svg { color: var(--signal); flex: none; margin-top: .25em; }

/* "Everything in X" is a pointer to another plan, not a feature of this one. */
.plan__inherits {
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-1);
  border-bottom: 1px dashed var(--line);
  font-weight: 600; color: var(--ink);
}
.plan .plan__inherits svg { color: var(--brand); }


.plan__addon {
  font-size: .82rem; line-height: 1.5; color: var(--ink-3);
  margin-bottom: var(--sp-5);
  padding-inline-start: var(--sp-4);
  border-inline-start: 2px solid var(--line);
}
.plan__addon b { color: var(--ink-2); white-space: nowrap; }

.plan__opts { display: grid; gap: var(--sp-2); margin-block: var(--sp-5); }
.plan__opt {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; background: var(--paper);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.plan__opt:hover { border-color: rgba(165, 2, 168, .35); }
.plan__opt input { margin: .15em 0 0; accent-color: var(--brand); flex: none; }
.plan__opt b { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); }
.plan__opt small { display: block; font-size: .8rem; color: var(--ink-3); margin-top: .1rem; }
.plan__opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* Agriculture sits apart: it is a different offer, not a fourth column. */
.plan--agri {
  margin-top: var(--sp-6);
  display: grid; gap: var(--sp-5); align-items: center;
  border-style: dashed;
}
@media (min-width: 46rem) {
  .plan--agri { grid-template-columns: 1fr auto; }
  .plan--agri__buy { text-align: end; }
}
.plan--agri .plan__price { margin-top: 0; }
.plan--agri__buy .btn { margin-top: var(--sp-3); }

/* Enterprise: the top tier, so it carries the dark brand surface rather than
   sitting as another white card in the row. */
.plan--enterprise {
  margin-top: var(--sp-5);
  display: grid; gap: var(--sp-6); align-items: center;
  background: linear-gradient(120deg, var(--plum), #4a0b52);
  border-color: transparent; color: #c3b5c8;
}
@media (min-width: 52rem) {
  .plan--enterprise { grid-template-columns: 1fr minmax(0, 15rem); }
  .plan--enterprise__buy { text-align: end; }
}
.plan--enterprise h3 { color: #fff; }
.plan--enterprise .eyebrow { color: var(--brand-bright); }
.plan--enterprise .plan__blurb { color: #c3b5c8; min-height: 0; }
.plan--enterprise .plan__note { color: #a899ad; }
.plan--enterprise__list {
  list-style: none; padding: 0; margin-top: var(--sp-5);
  display: grid; gap: var(--sp-3);
}
.plan--enterprise__list li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .94rem; }
/* Needs the parent class: `.plan li svg` (0,1,2) would otherwise win and paint
   these with the ΑΑΔΕ-success green, which is reserved for compliance states. */
.plan--enterprise .plan--enterprise__list svg { color: var(--brand-bright); flex: none; margin-top: .25em; }
.plan__price--quote { font-size: var(--step-1); color: #fff; }
.plan--enterprise__buy .btn { margin-top: var(--sp-4); }

.included { margin-top: var(--sp-7); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.included h3 { font-size: var(--step-0); margin-bottom: var(--sp-4); }
.included ul {
  list-style: none; padding: 0; display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.included li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: .94rem; }
.included svg { color: var(--signal); flex: none; margin-top: .25em; }

/* --- Data table ----------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-block: var(--sp-5); -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
  min-width: 34rem; /* below this the columns stop being readable, so scroll */
}
.data-table th, .data-table td {
  text-align: start; padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.data-table thead th {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  border-bottom-width: 2px;
}
.data-table td:first-child { font-family: var(--font-mono); font-size: .82rem; color: var(--ink); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.status-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md);
  background: var(--signal-tint); color: #0a6b4a;
  font-size: .94rem; line-height: 1.55;
}
.status-note svg { flex: none; margin-top: .2em; }

/* --- FAQ ------------------------------------------------------------ */
.faq { display: grid; gap: var(--sp-3); max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary {
  cursor: pointer; padding: var(--sp-4) var(--sp-5); font-weight: 600; color: var(--ink);
  font-family: var(--font-display); font-size: var(--step-0); list-style: none;
  display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3em; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 var(--sp-5) var(--sp-5); font-size: .96rem; }

/* --- CTA band ------------------------------------------------------- */
.cta-band { background: linear-gradient(115deg, var(--plum), var(--brand-deep) 70%, var(--brand)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3d4e6; margin-top: var(--sp-4); font-size: var(--step-1); }
.cta-band .btn-row { margin-top: var(--sp-6); }

/* --- Footer --------------------------------------------------------- */
.site-footer { background: var(--plum); color: #a899ad; padding-block: var(--sp-8) var(--sp-6); }
.footer__grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer__brand .logo { color: #fff; }
.footer__brand .logo b { color: var(--brand-bright); }
.footer__brand p { margin-top: var(--sp-4); font-size: .9rem; max-width: 30ch; }
.footer__heading {
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--font-mono); font-weight: 500; margin-bottom: var(--sp-4);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.site-footer a { color: #c3b5c8; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__gemi { font-family: var(--font-mono); font-size: .78rem; color: #8d7f92; }
.footer__legal {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); justify-content: space-between;
  font-size: .85rem;
}

/* --- Forms ---------------------------------------------------------- */
.form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, var(--sp-6));
  box-shadow: var(--shadow-2);
}
/* Short fields pair up once there is room; message and consent always span. */
.form__grid { display: grid; gap: var(--sp-4); }
@media (min-width: 34rem) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field label .req { color: var(--brand); margin-inline-start: .15em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .75em .9em;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .75; }
.field input:hover, .field textarea:hover { border-color: rgba(165, 2, 168, .3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(165, 2, 168, .14);
}
/* Only flag invalid fields the visitor has actually left, not every empty one. */
.field input:user-invalid, .field textarea:user-invalid {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.field small { color: var(--ink-3); font-size: .82rem; }

.form__consent {
  grid-column: 1 / -1;
  display: flex; gap: var(--sp-3); align-items: flex-start;
  padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper);
}
.form__consent input { margin: .2em 0 0; accent-color: var(--brand); flex: none; }
.form__consent label { font-size: .86rem; line-height: 1.55; color: var(--ink-3); font-weight: 400; }

.form__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-2);
}
.form__foot .btn:disabled { opacity: .6; cursor: progress; transform: none; }

.form__status {
  flex: 1 1 14rem; min-width: 0;
  font-size: .9rem; line-height: 1.5; margin: 0;
}
.form__status.is-ok { color: #0a6b4a; }
.form__status.is-error { color: #a33025; }

/* The honeypot must be reachable to a bot but invisible and unfocusable to a
   person — display:none would let smarter bots skip it. */
.hp-field {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.contact-cards { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-5);
}
.contact-card h3 {
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: var(--sp-2);
}
.contact-card a, .contact-card p { font-size: 1rem; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--brand); text-decoration: underline; }

/* --- 404 ------------------------------------------------------------ */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: var(--sp-8); }
.error-page__code {
  font-family: var(--font-mono); font-size: clamp(4rem, 16vw, 9rem); font-weight: 600;
  line-height: 1; color: var(--brand); opacity: .18; letter-spacing: -.04em;
}
.error-page h1 { margin-block: -1rem var(--sp-4); font-size: var(--step-3); }

/* --- Utilities ------------------------------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--sp-7); margin-bottom: var(--sp-4); font-size: var(--step-2); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose ul, .prose ol { margin-block: var(--sp-4); padding-inline-start: var(--sp-5); display: grid; gap: var(--sp-2); }
.stub {
  border: 1px dashed var(--line); border-radius: var(--r-md); padding: var(--sp-5);
  color: var(--ink-3); font-size: .92rem; background: var(--surface-2);
}
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: var(--step-4); margin-bottom: var(--sp-4); }
