/* ==========================================================================
   ROCRAFT — landing /inscriere
   Culori brand: orange #be542d · green #193f30 · brown #342616
   ========================================================================== */

/* ---------- Fonturi (găzduite local, fără Google Fonts) ---------- */
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/lexend-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --orange: #be542d;
  --orange-600: #a4461f;
  --orange-100: #f7e6dd;
  --green: #193f30;
  --green-700: #12301f;
  --green-500: #2f6b3a;
  --green-100: #e3ece6;
  --brown: #342616;
  --brown-600: #5b4a36;
  --brown-400: #8a7a66;
  --cream: #f8f3ea;
  --cream-200: #f1e8d8;
  --sand: #e9dcc6;
  --line: #e6dccb;
  --white: #ffffff;
  --danger: #b3261e;

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(52, 38, 22, .06);
  --shadow: 0 1px 2px rgba(52, 38, 22, .05), 0 12px 32px -12px rgba(52, 38, 22, .18);
  --shadow-lg: 0 2px 4px rgba(52, 38, 22, .04), 0 24px 60px -20px rgba(25, 63, 48, .30);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--brown);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); color: var(--brown); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section-cream { background: var(--cream); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.375rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 1px solid transparent; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-600); color: var(--white); }

.btn-outline { background: transparent; color: var(--green); border-color: rgba(25, 63, 48, .3); }
.btn-outline:hover { background: var(--green-100); color: var(--green); border-color: var(--green); }

.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--cream-200); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 234, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand:hover { color: var(--brown); }
.brand-logo { display: block; width: auto; height: 52px; }
.site-footer .brand-logo { height: 48px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.brand--light, .brand--light:hover { color: var(--white); }


@media (max-width: 760px) {
  .header-inner { min-height: 68px; }
  .site-header .brand-logo { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(190, 84, 45, .10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(25, 63, 48, .08), transparent 60%),
    var(--cream);
  padding-top: clamp(40px, 7vw, 88px);
  padding-bottom: clamp(96px, 12vw, 160px);
  overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .875rem; font-weight: 600; color: var(--green);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(190, 84, 45, .18); }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--green);
  text-wrap: balance;
}
.lead {
  margin-top: 20px; max-width: 34rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--brown-600);
}
.hero-points { margin-top: 28px; display: grid; gap: 12px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.hero-points svg {
  flex: none; width: 24px; height: 24px; padding: 4px;
  border-radius: 50%; background: var(--green); stroke: var(--white);
  fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}

.hero-land { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(60px, 10vw, 140px); z-index: 0; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.2vw, 36px);
  box-shadow: var(--shadow-lg);
}
.form-title { font-size: 1.5rem; font-weight: 700; }
.form-sub { margin-top: 4px; color: var(--brown-400); font-size: .9375rem; }

.signup-form { margin-top: 24px; display: grid; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.label { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; font-size: .9375rem; color: var(--brown); }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; color: var(--brown);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #a99b88; }
.input:hover { border-color: #d3c5ae; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(25, 63, 48, .12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }

.label-optional { font-weight: 400; color: var(--brown-400); }
.field-hint { margin-top: 6px; font-size: .8125rem; color: var(--brown-400); }
.field-error { margin-top: 6px; font-size: .8125rem; font-weight: 500; color: var(--danger); }

/* tip utilizator */
.type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-option { position: relative; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-box {
  display: grid; gap: 2px; height: 100%; align-content: start;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.type-box svg { width: 24px; height: 24px; margin-bottom: 6px; fill: none; stroke: var(--brown-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.type-name { font-family: var(--font-head); font-weight: 600; color: var(--brown); }
.type-desc { font-size: .8125rem; color: var(--brown-400); }
.type-option:hover .type-box { border-color: #d3c5ae; }
.type-option input:checked + .type-box { border-color: var(--green); background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green); }
.type-option input:checked + .type-box svg { stroke: var(--green); }
.type-option input:focus-visible + .type-box { outline: 3px solid var(--orange); outline-offset: 2px; }

/* consimțământ */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--brown-600); line-height: 1.5; cursor: pointer; }
.check input {
  flex: none; appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; margin: 1px 0 0;
  border: 1.5px solid #cbbda5; border-radius: 6px; background: var(--white);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.check input::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2.4px solid var(--white); border-bottom: 2.4px solid var(--white);
  transform: rotate(-45deg) scale(0); transition: transform .12s;
}
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check a { font-weight: 500; }

.form-note { font-size: .8125rem; color: var(--brown-400); text-align: center; }
.form-status {
  padding: 12px 14px; border-radius: 12px; font-size: .875rem; line-height: 1.5;
  background: var(--cream); border: 1px solid var(--line); color: var(--brown-600);
}
.form-status.is-success { background: var(--green-100); border-color: #c4d8cb; color: var(--green); }
.signup-form.is-sending .btn { opacity: .7; cursor: progress; }
.form-status.is-error { background: #fbeceb; border-color: #f0c9c6; color: var(--danger); }

/* honeypot */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { font-family: var(--font-head); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-head h2 { margin-top: 10px; font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 700; text-wrap: balance; }
.section-lead { margin-top: 18px; font-size: 1.0625rem; color: var(--brown-600); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.pillar-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--orange-100); }
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--orange); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: 20px; font-size: 1.1875rem; font-weight: 600; }
.pillar p { margin-top: 8px; color: var(--brown-600); }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
}
.audience-card h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700; color: var(--green); text-wrap: balance; }
.audience-tag {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--green-100); color: var(--green); font-size: .8125rem; font-weight: 600;
}
.audience-card .btn { align-self: flex-start; margin-top: auto; }
.audience-card--dark { background: var(--green); border-color: var(--green); color: #dbe6df; }
.audience-card--dark h3 { color: var(--white); }
.audience-card--dark .audience-tag { background: rgba(255, 255, 255, .12); color: var(--white); }

.ticks { display: grid; gap: 12px; margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23be542d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.audience-card--dark .ticks li::before { background-color: rgba(255, 255, 255, .12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b08f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; cursor: pointer; list-style: none;
  border-radius: 8px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  margin: 0; font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
  letter-spacing: -0.01em; color: var(--brown); transition: color .15s;
}
.faq-item summary:hover .faq-q, .faq-item[open] .faq-q { color: var(--green); }
.faq-item summary:focus-visible { outline: 1px solid var(--orange); outline-offset: 2px; }

/* iconiță plus / minus */
.faq-icon {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  transition: background-color .2s, border-color .2s;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.75px; border-radius: 2px; background: var(--green);
  transform: translate(-50%, -50%); transition: transform .25s ease, background-color .2s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item summary:hover .faq-icon { border-color: #d3c5ae; }
.faq-item[open] .faq-icon { background: var(--green); border-color: var(--green); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--white); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a { padding: 0 52px 24px 2px; }
.faq-a p { color: var(--brown-600); }
.faq-item[open] .faq-a { animation: faq-in .28s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Deschidere lină a înălțimii, în browserele care o suportă (fără JavaScript). */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- CTA ---------- */
.cta { padding-block: clamp(48px, 6vw, 72px); background: var(--green); color: #cfdcd4; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; }
.cta p { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-700); color: #a9bcb1; padding-block: 40px; font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
.footer-tag { color: #a9bcb1; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-links a { color: #dbe6df; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 8px; list-style: none; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: #dbe6df;
  transition: background-color .15s, border-color .15s, color .15s;
}
.footer-social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .32); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social svg.icon-fill { fill: currentColor; stroke: none; }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .pillars { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .faq-item summary { padding-block: 18px; }
  .faq-q { font-size: 1rem; }
  .faq-a { padding-right: 0; }
  .audience-card .btn, .cta .btn { width: 100%; }
}

/* ---------- Pagini de conținut (confidențialitate) ---------- */
.legal { padding-block: clamp(40px, 6vw, 72px) var(--section-y); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; color: var(--green); }
.legal .updated { margin-top: 10px; color: var(--brown-400); font-size: .9375rem; }
.legal h2 { margin-top: 44px; font-size: 1.375rem; font-weight: 600; }
.legal h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 600; }
.legal p, .legal li { color: var(--brown-600); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 1.25rem; display: grid; gap: 6px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.legal th { background: var(--cream); font-weight: 600; color: var(--brown); width: 34%; }
.legal .table-wrap { overflow-x: auto; }
.todo {
  background: #fff3cd; color: #6b4e00; padding: 1px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em;
}
.legal-note {
  margin-top: 24px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fff8e6; border: 1px solid #f1dfae; color: #6b4e00; font-size: .9375rem;
}
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-weight: 500; text-decoration: none; }
.ml-auto { margin-left: auto; }
.not-found { min-height: 100vh; display: grid; align-items: center; }
.not-found h1 { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content { transition: none !important; }
}
