/* ==========================================================================
   accora – marketing theme
   Design principle: light, sharp-cornered (border-radius: 0), flat, with a calm
   green as the single accent. Deliberately NOT playful – no gradients, no glass,
   no rounded corners. Structure and whitespace carry the design.
   ========================================================================== */

:root {
  --green: #366E39;          /* primary green (= accora app primary.main) */
  --green-dark: #2b582d;     /* hover / active */
  --green-tint: #eef3ee;     /* very light green fill */
  --green-line: #c9d8ca;     /* green lines / grid */

  --ink: #1b1f1b;            /* headings, near-black with a green cast */
  --text: #3a403a;          /* body text */
  --muted: #6b726b;         /* secondary text */

  --bg: #ffffff;
  --bg-alt: #f6f7f6;        /* offset sections */
  --border: #e2e5e2;        /* default border (= app divider) */
  --border-strong: #cdd2cd;

  --max: 1160px;
  --space: clamp(4rem, 8vw, 7rem);   /* vertical section spacing */
  --font: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
::selection { background: var(--green); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* wordmark "acco" + "ra" (ra = green), as in the app ----------------------- */
.brand { font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.brand .ra { color: var(--green); }

/* accent eyebrow above headings ------------------------------------------- */
.overline {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.overline::before {
  content: "";
  display: inline-block;
  width: 1.6rem; height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-right: .6rem;
  transform: translateY(-2px);
}
/* Symmetric trailing rule for centered eyebrows (hero + section headers).
   Left-aligned overlines (e.g. the platform band) keep only the leading rule. */
.hero .overline::after,
.section-header .overline::after {
  content: "";
  display: inline-block;
  width: 1.6rem; height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-left: .6rem;
  transform: translateY(-2px);
}

/* --- buttons (sharp, flat) ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.4rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--green); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: .25rem; padding-right: .25rem; }
.btn-ghost:hover { color: var(--green); }

/* --- header (sticky, white, bottom rule) --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  height: 64px; display: flex; align-items: center; gap: 1.5rem;
}
.site-header .logo { font-size: 1.3rem; display: inline-flex; align-items: center; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .98rem; }
.main-nav a:not(.btn):hover { color: var(--green); }
.nav-divider { width: 1px; height: 24px; background: var(--border); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* faint grid in the background – a nod to the sharp / structured design */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; max-width: 820px; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--green); }
.hero .subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 620px; margin: 0 auto 2rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero-note { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.hero-note strong { color: var(--green); }

/* --- sections ------------------------------------------------------------ */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-header p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* --- feature grid (sharp bordered cards, no shadow) ---------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;                      /* 1px gap = shared grid image */
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: #fff;
  padding: 2rem 1.75rem;
  transition: background .15s ease;
}
.feature-card:hover { background: var(--green-tint); }
.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  border: 1px solid var(--green-line);
  background: #fff;
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* --- USP band (statement + bullet points) -------------------------------- */
.usp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.usp h2 { margin-bottom: 1rem; }
.usp .lead { color: var(--muted); font-size: 1.1rem; }
.usp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.usp-list li { background: #fff; padding: 1rem 1.25rem; display: flex; gap: .8rem; align-items: flex-start; }
.usp-list li::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; margin-top: .2rem;
  background: var(--green);
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
          mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='square'/%3E%3C/svg%3E");
}
.usp-list li strong { color: var(--ink); }
.usp-list li span { color: var(--muted); }

/* --- contact cards ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.contact-card { background: #fff; border: 1px solid var(--border); padding: 2.25rem; text-align: center; }
.contact-card .feature-icon { margin: 0 auto 1.1rem; }
.contact-card h3 { margin-bottom: .35rem; }
/* min-height = 2 lines so short/long descriptions keep both cards' buttons
   on the same baseline. */
.contact-card p { color: var(--muted); margin-bottom: 1.25rem; min-height: 3.3em; }
.btn-copy { margin-top: .75rem; background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.btn-copy:hover { color: var(--green); }

/* --- footer -------------------------------------------------------------- */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; margin: .75rem 0 0; max-width: 30ch; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: var(--text); font-size: .98rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: .9rem;
}
.no-cookies { display: inline-flex; align-items: center; gap: .6rem; }
.no-cookies-badge { font-weight: 700; color: var(--green); border: 1px solid var(--green-line); padding: .15rem .5rem; }
/* In-text link inside the copyright line: underline so it is distinguishable
   without relying on colour alone (WCAG 1.4.1). */
.footer-bottom a { text-decoration: underline; text-underline-offset: 2px; }

/* --- prose / legal pages ------------------------------------------------- */
.page-legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 1.2rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .usp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .5rem 1.5rem 1.25rem;
    transform: translateY(-130%); transition: transform .25s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); }
  .nav-divider { display: none; }
  .main-nav .btn { margin-top: .9rem; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
}
