/* ============================================================
   business.smardoo.gr — Smardoo brand v2 design system
   Single hand-authored stylesheet. No framework, no build step.
   Brand DNA from smardoo.gr (Manrope replaces Plus Jakarta Sans:
   PJS ships zero Greek glyphs — see glyphs audit).
   ============================================================ */

@import '../fonts/subsets.css';

:root {
  /* Surfaces */
  --surface:         #FFFFFF;
  --surface-tint:    #F0F7EE;
  --surface-deep:    #1A5C38;   /* the ONE dark band */
  --surface-sunken:  #F4FAF5;   /* form wells, skeletons */

  /* Text */
  --fg:              #101828;
  --fg-soft:         #344054;
  --fg-muted:        #667085;
  --fg-on-deep:      #FCFDFC;
  --fg-on-deep-muted: rgba(252,253,252,.72);
  --hairline:        #C8DEC4;
  --hairline-on-deep: rgba(252,253,252,.18);

  /* Action */
  --action:          #1A5C38;
  --action-hover:    #0F3D26;
  --focus-ring:      0 0 0 3px rgba(82,183,136,.4);
  --detail:          #52B788;   /* glyphs only, never body text */

  /* Elevation (only these two exist) */
  --elev-1: 0 4px 15px rgba(26,92,56,.25);
  --elev-2: 0 20px 40px rgba(26,92,56,.15);

  /* Shape lock */
  --r-media: 24px;
  --r-card:  24px;
  --r-btn:   12px;
  --r-badge: 999px;

  /* Motion */
  --dur-fast: .25s;
  --dur-med:  .5s;
  --ease-brand: cubic-bezier(.4,0,.2,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);

  /* Type scale */
  --step--1: 0.875rem;
  --step-0:  1.0625rem;
  --step-1:  1.375rem;
  --step-2:  clamp(1.5rem, 3vw, 2.25rem);
  --step-3:  clamp(2.4rem, 5.5vw, 3.75rem);
}

/* ── Reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--surface);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--action); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.c-btn:focus-visible, a:focus-visible { box-shadow: var(--focus-ring); }
::selection { background: rgba(82,183,136,.25); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* Skip link: invisible until focused */
.c-skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-btn);
  background: var(--action); color: #FFFFFF; font-weight: 700; font-size: var(--step--1);
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-brand);
}
.c-skip:focus-visible { transform: none; }

/* ── Buttons (brand geometry, one grammar) ── */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 2rem;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  border: 0;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.c-btn--primary {
  background: var(--action);
  color: #FFFFFF;
  box-shadow: var(--elev-1);
}
.c-btn--primary:hover { background: var(--action-hover); transform: translateY(-2px); }
.c-btn--primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(26,92,56,.18); }
.c-btn--ghost {
  background: transparent;
  color: var(--action);
  border: 2px solid var(--action);
  box-shadow: none;
}
.c-btn--ghost:hover { background: rgba(26,92,56,.05); transform: translateY(-2px); }
.c-btn--ghost:active { transform: translateY(0); }
.c-btn--ondeep { background: #FCFDFC; color: var(--action); box-shadow: none; }
.c-btn--ondeep:hover { background: #FFFFFF; transform: translateY(-2px); }
.c-btn--ondeep:active { transform: translateY(0); }
.c-btn[disabled] { opacity: .55; pointer-events: none; }
.c-btn .c-ico { width: 18px; height: 18px; }

.c-ico { width: 22px; height: 22px; flex: 0 0 auto; }

/* ── Eyebrow (max 2 uses on page) ── */
.c-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 8px;
}

/* ── Nav (sentinel-gated, no scroll listeners) ── */
#nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.c-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-brand), box-shadow var(--dur-fast) var(--ease-brand);
}
.c-nav.is-stuck { border-bottom-color: var(--hairline); }
.c-nav__row {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.c-nav__brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg); }
.c-nav__brand b { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.c-nav__brand span {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--action);
  border: 1px solid var(--hairline); border-radius: var(--r-badge);
  padding: 2px 10px; transform: translateY(-2px);
}
.c-nav__links { display: flex; gap: 28px; margin-left: auto; }
.c-nav__links a {
  position: relative;
  color: var(--fg-soft); font-weight: 600; font-size: 1rem;
  padding-block: 4px;
}
.c-nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--action);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-brand);
}
.c-nav__links a:hover::after { transform: scaleX(1); }
.c-nav__links a:hover { color: var(--fg); }
.c-nav .c-btn { padding: 0.625rem 1.5rem; font-size: 0.9375rem; }

/* ── Hero ── */
.c-hero {
  position: relative;
  overflow: clip;
  background: var(--surface);
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(3.5rem, 8vh, 6rem);
}
.c-hero::before {  /* tonal field, brand tint, bleeds right */
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: -8%;
  width: 52%;
  background: var(--surface-tint);
  border-radius: var(--r-media) 0 0 var(--r-media);
  z-index: 0;
}
.c-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.c-hero h1 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 20px;
}
.c-hero h1 strong { color: var(--action); font-weight: 800; }
.c-hero__sub {
  color: var(--fg-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.c-hero__media {
  position: relative;
}
.c-hero__media img {
  width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--r-media);
  box-shadow: var(--elev-2);
}

/* Hero load-in (staggered via --i) */
@media (prefers-reduced-motion: no-preference) {
  .c-hero [data-in] { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* ── ΑΦΜ module (light + deep themes) ── */
.c-afm { max-width: 560px; }
.c-afm__row { display: flex; gap: 12px; }
.c-afm__inputwrap { flex: 1; position: relative; }
.c-afm input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--fg);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  transition: border-color var(--dur-fast) var(--ease-brand);
}
.c-afm input::placeholder { color: var(--fg-muted); font-weight: 500; }
.c-afm input:hover { border-color: var(--action); }
.c-afm input:focus-visible { box-shadow: var(--focus-ring); border-color: var(--action); }
.c-afm__helper {
  margin-top: 10px;
  font-size: var(--step--1);
  color: var(--fg-muted);
  max-width: 52ch;
}
.c-afm__error {
  margin-top: 8px;
  font-size: var(--step--1);
  font-weight: 600;
  color: #B42318;
  display: none;
}
.c-afm.is-error .c-afm__error { display: block; }
.c-afm.is-error input { border-color: #B42318; }

.c-afm--deep .c-afm input {
  background: rgba(252,253,252,.06);
  border-color: var(--hairline-on-deep);
  color: var(--fg-on-deep);
}
/* deep-theme placeholder needs full-token opacity: 0.72 measures 4.3:1, under AA */
.c-afm--deep .c-afm input::placeholder { color: rgba(252,253,252,.88); }
.c-afm--deep .c-afm input:hover { border-color: var(--detail); }
.c-afm--deep .c-afm input:focus-visible { border-color: var(--detail); }
.c-afm--deep .c-afm__helper { color: var(--fg-on-deep-muted); }
.c-afm--deep .c-afm__error { color: #FDA29B; }

/* Result card (expands under the form) */
.c-afm__result {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease-brand);
}
.c-afm__result > div { overflow: hidden; }
.c-afm.has-result .c-afm__result { grid-template-rows: 1fr; }
.c-resultcard {
  margin-top: 20px;
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  display: grid; gap: 10px;
}
.c-afm--deep .c-resultcard { border-top-color: var(--hairline-on-deep); }
.c-resultcard__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.c-resultcard__meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: var(--step--1); color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.c-afm--deep .c-resultcard__name { color: var(--fg-on-deep); }
.c-afm--deep .c-resultcard__meta { color: var(--fg-on-deep-muted); }
.c-resultcard__meta .dot { color: var(--detail); font-weight: 700; }
.c-resultcard .c-btn { justify-self: start; margin-top: 6px; }
.c-resultcard__note { font-size: var(--step--1); color: var(--fg-muted); }
.c-afm--deep .c-resultcard__note { color: var(--fg-on-deep-muted); }
/* default link color IS the deep-band background — empty-state link must be themed */
.c-afm--deep .c-resultcard a { color: var(--fg-on-deep); text-decoration: underline; text-underline-offset: 2px; }
.c-afm--deep .c-resultcard a:hover { color: var(--detail); }

/* Company picker when several results */
.c-afm__pick { display: none; margin-top: 8px; }
.c-afm.has-pick .c-afm__pick { display: flex; gap: 12px; }
.c-afm__pick select {
  flex: 1; height: 56px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-btn);
  background: var(--surface); color: var(--fg);
  font: inherit;
}
/* deep-theme picker mirrors the deep-theme input */
.c-afm--deep .c-afm__pick select {
  background: rgba(252,253,252,.06);
  border-color: var(--hairline-on-deep);
  color: var(--fg-on-deep);
}
.c-afm--deep .c-afm__pick select:focus-visible { border-color: var(--detail); }
/* Firefox inherits select colors into the opened dropdown — pin option colors */
.c-afm--deep .c-afm__pick select option { color: var(--fg); background: var(--surface); }

/* Skeleton (shape-matched, no spinners) */
.c-skeleton { display: none; margin-top: 20px; gap: 10px; }
.c-afm.is-loading .c-skeleton { display: grid; }
.c-skeleton span {
  display: block; height: 16px; border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--surface-tint) 50%, var(--surface-sunken) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.c-skeleton span:nth-child(1) { width: 55%; height: 20px; }
.c-skeleton span:nth-child(2) { width: 75%; }
.c-skeleton span:nth-child(3) { width: 40%; }
@media (prefers-reduced-motion: reduce) { .c-skeleton span { animation: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* aria-live status text (visible, small) */
.c-afm__status {
  margin-top: 10px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-soft);
  min-height: 1.4em;
}
.c-afm--deep .c-afm__status { color: var(--fg-on-deep-muted); }

/* Hero micro disclaimer */
.c-micro-disclaimer {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  max-width: 52ch;
}

/* ── Trust strip (under hero) ── */
.c-trust { border-block: 1px solid var(--hairline); background: var(--surface); }
.c-trust__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-block: 20px;
}
.c-trust__item {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--step--1); font-weight: 600; color: var(--fg-soft);
  padding-inline: 20px;
}
.c-trust__item + .c-trust__item { border-left: 1px solid var(--hairline); }
.c-trust__item .c-ico { color: var(--detail); width: 20px; height: 20px; }

/* ── Section base ── */
.c-section { padding-block: clamp(4rem, 9vh, 6.5rem); }
.c-section--tint { background: var(--surface-tint); }
.c-section__head { max-width: 65ch; margin-bottom: 48px; }
.c-section__head h2 {
  font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  margin-bottom: 12px;
}
.c-section__head p { color: var(--fg-muted); max-width: 60ch; }

/* ── Steps ── */
.c-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.c-steps__step { padding: 8px 32px 8px 0; }
.c-steps__step + .c-steps__step { border-left: 1px solid var(--hairline); padding-left: 32px; }
.c-steps__num {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--detail);
  font-variant-numeric: tabular-nums;
  line-height: 1; margin-bottom: 14px;
}
.c-steps__step h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.c-steps__step p { color: var(--fg-muted); font-size: 1rem; }

/* ── Bento (5 cells: 4+2, 2+2+2) ── */
.c-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.c-bento__cell {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.c-bento__cell h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.c-bento__cell p { color: var(--fg-muted); font-size: 1rem; max-width: 44ch; }
.c-bento__cell .c-ico { color: var(--detail); }
.c-bento__cell--media {
  border-top: 0; padding-top: 0;
}
.c-bento__cell--media img {
  width: 100%; height: 100%; min-height: 260px; object-fit: cover;
  border-radius: var(--r-media);
}
.c-bento__cell--a { grid-column: span 4; }
.c-bento__cell--b { grid-column: span 2; }
.c-bento__cell--c { grid-column: span 2; }
.c-bento__cell--media.c-bento__cell--c { min-height: 100%; }

/* ── Pricing ── */
.c-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.c-plan {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.c-plan--pop {
  position: relative;
  border: 1px solid var(--action);
  border-radius: var(--r-card);
  padding: 32px 28px 28px;
  box-shadow: var(--elev-2);
  background: var(--surface);
}
.c-plan__name { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.c-plan__price {
  font-size: 2.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.c-plan__price small { font-size: var(--step--1); font-weight: 600; color: var(--fg-muted); letter-spacing: 0; }
.c-plan ul { display: grid; gap: 10px; margin-bottom: 8px; }
.c-plan li {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 1rem; color: var(--fg-soft);
}
.c-plan li .c-ico { width: 16px; height: 16px; color: var(--detail); margin-top: 2px; }
.c-plan .c-btn { margin-top: auto; justify-content: center; }

/* ── Split (why smardoo) ── */
.c-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.c-split img { width: 100%; border-radius: var(--r-media); box-shadow: var(--elev-2); aspect-ratio: 4/3; object-fit: cover; }
.c-split__points { display: grid; gap: 20px; margin-top: 28px; }
.c-split__points > div { border-top: 1px solid var(--hairline); padding-top: 16px; }
.c-split__points h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.c-split__points p { color: var(--fg-muted); font-size: 1rem; }

/* ── FAQ (native details, chevron rotates) ── */
.c-faq { max-width: 760px; margin-inline: auto; }
.c-faq details { border-top: 1px solid var(--hairline); }
.c-faq details:last-child { border-bottom: 1px solid var(--hairline); }
.c-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary .c-ico { color: var(--action); transition: transform var(--dur-fast) var(--ease-brand); }
.c-faq details[open] summary .c-ico { transform: rotate(180deg); }
.c-faq details p { color: var(--fg-muted); max-width: 62ch; padding: 0 4px 22px; }

/* ── Dark band ── */
.c-band { background: var(--surface-deep); color: var(--fg-on-deep); padding-block: clamp(4rem, 9vh, 6rem); }
.c-band h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.c-band .c-band__sub { color: var(--fg-on-deep-muted); max-width: 60ch; margin-bottom: 32px; }

/* ── Footer ── */
.c-footer { border-top: 1px solid var(--hairline); background: var(--surface); padding-block: 40px; }
.c-footer__disclaimer {
  font-size: var(--step--1); font-weight: 600; color: var(--fg-muted);
  max-width: 70ch; margin-bottom: 24px;
}
.c-footer__row {
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between;
  font-size: var(--step--1); color: var(--fg-muted);
}
.c-footer__brand b { font-weight: 800; font-size: 1rem; color: var(--fg); letter-spacing: -0.01em; }
.c-footer__links { display: flex; gap: 24px; }
.c-footer__links a { color: var(--fg-muted); font-weight: 600; }
.c-footer__links a:hover { color: var(--action); }

/* ── Scroll reveals (IO fallback class .is-in; CSS scroll-timeline where supported) ── */
@media (prefers-reduced-motion: no-preference) {
  body.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  body.js [data-reveal].is-in { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.js [data-reveal] {
      animation: none;
      transition: none;
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* ── Mobile collapse (explicit per pattern) ── */
@media (max-width: 960px) {
  .c-hero__grid { grid-template-columns: 1fr; }
  .c-hero::before { width: 100%; border-radius: 0; opacity: .55; }
  .c-hero__media { margin-top: 8px; max-width: 560px; }
  .c-steps { grid-template-columns: 1fr; gap: 20px; }
  .c-steps__step { padding: 0 0 20px; border-left: 0; border-top: 1px solid var(--hairline); padding-top: 20px; }
  .c-steps__step:first-child { border-top: 0; padding-top: 0; }
  .c-bento { grid-template-columns: 1fr; }
  .c-bento__cell--a, .c-bento__cell--b, .c-bento__cell--c { grid-column: 1 / -1; }
  .c-pricing { grid-template-columns: 1fr; }
  .c-split { grid-template-columns: 1fr; }
  .c-trust__row { grid-template-columns: 1fr; gap: 12px; }
  .c-trust__item { border-left: 0 !important; padding-inline: 0; }
}
@media (max-width: 720px) {
  .c-nav__links { display: none; }
  .c-afm__row { flex-direction: column; }
  .c-afm__row .c-btn { justify-content: center; height: 56px; }
  .c-afm__pick { flex-direction: column; }
}
