/* Redesign nov 2026 (#106) — stilul paginilor de prezentare: landing-ul static din index.html
   (#landing) + paginile de continut + 404.html. Fisier SEPARAT de src/styles.css: paginile de
   continut nu incarca bundle-ul aplicatiei, deci tokenurile sunt repetate aici.
   Totul e sub .site, ca sa nu atinga nimic din aplicatie. Textul si titlurile raman in HTML;
   tests/test-seo-snapshot.mjs pica daca se schimba ceva din ce vede Google. */

.site {
  --page: #0d0e10;
  --panel: #17181b;
  --panel-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f4f1;
  --text-2: rgba(244, 244, 241, 0.74);
  --muted: rgba(244, 244, 241, 0.64);
  --accent: #86e3bd;
  --accent-border: rgba(134, 227, 189, 0.4);
  --pill: #f4f4f1;
  --pill-ink: #111113;
  --bubble: rgba(255, 255, 255, 0.1);
  --bubble-ink: #f4f4f1;
  --hero: #0b0c0e;
  --atmos:
    linear-gradient(118deg, transparent 50%, rgba(255, 255, 255, 0.05) 57%, rgba(255, 255, 255, 0.085) 65%, rgba(255, 255, 255, 0.03) 73%, transparent 80%),
    radial-gradient(70% 90% at 6% 100%, rgba(196, 116, 52, 0.3), transparent 70%);
  --font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
}

/* Zi: tema aleasa in aplicatie (data-theme, pusa de boot.js) sau, pe paginile fara
   aplicatie, preferinta sistemului */
html[data-theme='light'] .site {
  --page: #e6e5e1; --panel: #f6f6f3; --panel-2: rgba(0, 0, 0, 0.07); --border: rgba(0, 0, 0, 0.06);
  --text: #131314; --text-2: rgba(19, 19, 20, 0.74); --muted: rgba(19, 19, 20, 0.66);
  --accent: #131314; --accent-border: rgba(19, 19, 20, 0.3);
  --pill: #131314; --pill-ink: #fafaf7;
  --bubble: rgba(0, 0, 0, 0.07); --bubble-ink: #131314;
  --hero: #d9d7d2;
  --atmos: linear-gradient(118deg, transparent 48%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0.72) 66%, transparent 79%);
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .site {
    --page: #e6e5e1; --panel: #f6f6f3; --panel-2: rgba(0, 0, 0, 0.07); --border: rgba(0, 0, 0, 0.06);
    --text: #131314; --text-2: rgba(19, 19, 20, 0.74); --muted: rgba(19, 19, 20, 0.66);
    --accent: #131314; --accent-border: rgba(19, 19, 20, 0.3);
    --pill: #131314; --pill-ink: #fafaf7;
    --bubble: rgba(0, 0, 0, 0.07); --bubble-ink: #131314;
    --hero: #d9d7d2;
    --atmos: linear-gradient(118deg, transparent 48%, rgba(255, 255, 255, 0.55) 58%, rgba(255, 255, 255, 0.72) 66%, transparent 79%);
  }
}
/* Seara: doar daca a fost aleasa in aplicatie */
html[data-theme='evening'] .site {
  --page: #22140e; --panel: #2f1d15; --panel-2: rgba(255, 232, 208, 0.13); --border: rgba(255, 228, 200, 0.16);
  --text: #fcf4ea; --text-2: rgba(252, 244, 234, 0.78); --muted: rgba(252, 244, 234, 0.68);
  --accent: #b7d1c5; --accent-border: rgba(185, 212, 200, 0.4);
  --pill: #fcf4ea; --pill-ink: #2b1a11;
  --bubble: rgba(255, 232, 208, 0.14); --bubble-ink: #fcf4ea;
  --hero: #2a1910;
  --atmos:
    radial-gradient(50% 80% at 90% 0%, rgba(226, 138, 74, 0.58), transparent 70%),
    radial-gradient(36% 60% at 46% 58%, rgba(150, 160, 70, 0.22), transparent 70%),
    radial-gradient(60% 90% at 0% 100%, rgba(128, 60, 30, 0.62), transparent 70%);
}

/* boot.js decide vizibilitatea INAINTE de primul paint */
html[data-view='app'] #landing { display: none; }
html[data-view='landing'] #root { display: none; }

body.site { margin: 0; background: var(--page); }
#landing { position: relative; display: flow-root; min-height: 100vh; background: var(--page); }
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site a { color: var(--accent); }
.site h1, .site h2, .site h3 { font-family: var(--font-ui); font-weight: 500; line-height: 1.1; margin: 0; }
/* :where = specificitate zero, ca .s-lead / .s-note sa-si poata pune margin-top */
:where(.site) p { margin: 0; }

.s-wrap { max-width: 1240px; margin: 0 auto; padding: 0 14px; }

/* bara de sus: capsula */
.s-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px; margin-top: 14px; padding: 8px 12px 8px 24px;
  border: 1px solid var(--border); border-radius: 30px; background: var(--panel);
}
.s-brand { font-weight: 500; font-size: 24px; color: var(--text) !important; text-decoration: none; }
.s-nav-links { display: flex; gap: 8px; align-items: center; }

/* butoane */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 28px;
  font-weight: 500; font-size: 16.5px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .12s ease, opacity .12s ease;
}
.s-btn:active { transform: scale(.98); }
.s-btn:hover { opacity: .92; }
.s-btn-primary { background: var(--pill); color: var(--pill-ink) !important; }
.s-btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.s-btn-sm { min-height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 24px; }

/* hero: carcasa mare cu atmosfera si coltul decupat */
.s-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; align-items: end;
  min-height: 640px; margin-top: 12px; padding: 54px 28px 28px 44px;
  border-radius: 34px; background: var(--atmos), var(--hero);
}
.s-hero > div:first-child { align-self: center; padding: 24px 0 26px; }
.s-eyebrow {
  position: absolute; top: 0; right: 0; z-index: 1;
  height: 48px; padding: 0 20px;
  display: inline-flex; align-items: center;
  font-size: 15px; color: var(--text);
  border: 1px solid var(--border); border-radius: 24px; background: var(--panel);
  box-shadow: 0 0 0 12px var(--page);
}
.s-eyebrow::before, .s-eyebrow::after {
  content: ''; position: absolute; width: 30px; height: 30px;
  background: radial-gradient(circle at 0 100%, transparent 30px, var(--page) 30.5px);
}
.s-eyebrow::before { top: -1px; left: -42px; }
.s-eyebrow::after { right: -1px; bottom: -42px; }
.s-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.015em; }
.s-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.42; color: var(--text-2); margin-top: 20px; max-width: 620px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.s-note { font-size: 14px; color: var(--text-2); margin-top: 18px; max-width: 560px; }

/* mesajul de WhatsApp, plutind in hero */
.s-phone { padding: 12px; border: 1px solid var(--border); border-radius: 26px; background: var(--panel); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.s-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.s-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--pill); color: var(--pill-ink); display: grid; place-items: center; font-weight: 500; }
.s-chat-name { font-weight: 500; font-size: 15px; }
.s-chat-sub { font-size: 13.5px; color: var(--text-2); }
.s-bubble { background: var(--bubble); color: var(--bubble-ink); border-radius: 18px 18px 18px 6px; padding: 10px 13px 7px; font-size: 15px; line-height: 1.3; }
.s-bubble + .s-bubble { margin-top: 6px; }
.s-time { display: block; text-align: right; font-size: 12px; color: var(--text-2); margin-top: 1px; }
.s-reply { margin: 6px 0 0 auto; width: fit-content; max-width: 70%; padding: 10px 13px; border-radius: 18px 18px 6px 18px; background: var(--pill); color: var(--pill-ink); font-size: 15px; }

/* cardurile de sub hero si linkurile din bara */
.s-nav-link { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 22px; font-size: 15px; color: var(--text) !important; text-decoration: none; }
.s-nav-link:hover { background: var(--panel-2); }
.s-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.s-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 236px; padding: 22px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.s-t5 { grid-column: span 5; } .s-t3 { grid-column: span 3; } .s-t4 { grid-column: span 4; }
.s-tile p { color: var(--text-2); font-size: 15.5px; line-height: 1.42; margin-top: 8px; }
.s-tile .s-tile-title { color: var(--text); font-size: 23px; line-height: 1.16; margin-top: 0; }
.s-tile .s-tile-big { color: var(--text); font-size: 44px; font-weight: 500; line-height: 1; margin-top: 0; }
.s-inv { background: var(--pill); border-color: transparent; color: var(--pill-ink); }
.s-inv p, .s-inv .s-tile-title { color: inherit; }
.s-inv p:not(.s-tile-title) { opacity: .78; }
.s-inv .s-btn { align-self: flex-start; margin-top: auto; min-height: 48px; padding: 0 22px; background: var(--pill-ink); color: var(--pill) !important; }
.s-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.s-lock span { height: 52px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 26px; background: var(--panel-2); font-size: 14.5px; white-space: nowrap; }
.s-lock .hot { background: var(--pill); color: var(--pill-ink); }
.s-lock i { font-style: normal; letter-spacing: 2px; color: var(--muted); }
.s-dial { display: block; width: 116px; height: 116px; margin: auto auto 0; }

/* sectiuni */
.s-section { padding: 64px 0 0; }
.s-section h2, .s-article > h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.01em; padding: 0 10px; }
.s-section-lead { color: var(--text-2); margin-top: 10px; padding: 0 10px; max-width: 660px; font-size: 18px; }
.s-grid { display: grid; gap: 12px; margin-top: 20px; }
.s-grid-3 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.s-grid-3 > * { grid-column: span 4; }
.s-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-card { padding: 22px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.s-card h3 { font-size: 23px; font-weight: 400; line-height: 1.16; margin-bottom: 8px; }
.s-card p { color: var(--text-2); font-size: 15.5px; line-height: 1.42; }
.s-step { display: inline-flex; align-items: center; height: 28px; margin-bottom: 14px; padding: 0 12px; border-radius: 14px; background: var(--panel-2); color: var(--text); font-size: 13.5px; font-weight: 400; }

/* bento: „Real stakes” si „Everything else” */
#landing main > section:nth-of-type(3) .s-card:nth-child(1) { grid-column: span 5; }
#landing main > section:nth-of-type(3) .s-card:nth-child(2) { grid-column: span 4; }
#landing main > section:nth-of-type(3) .s-card:nth-child(3) { grid-column: span 3; background: var(--pill); color: var(--pill-ink); border-color: transparent; }
#landing main > section:nth-of-type(3) .s-card:nth-child(3) p { color: inherit; opacity: .78; }
#landing main > section:nth-of-type(4) .s-card:nth-child(1),
#landing main > section:nth-of-type(4) .s-card:nth-child(6) { grid-column: span 6; }
#landing main > section:nth-of-type(4) .s-card:nth-child(n+2):nth-child(-n+5) { grid-column: span 3; }

.s-list { margin: 12px 0 0; padding: 0; list-style: none; }
.s-list li { position: relative; padding-left: 22px; margin-top: 9px; color: var(--text-2); font-size: 15.5px; line-height: 1.42; }
.s-list li::before { content: ''; position: absolute; left: 3px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.s-list strong { color: var(--text); font-weight: 500; }

/* comparatie */
.s-table-wrap { overflow-x: auto; margin-top: 20px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.s-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.s-table th, .s-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.s-table th { font-size: 15.5px; font-weight: 500; color: var(--text); }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td:first-child { font-weight: 400; color: var(--text-2); }
.s-table .s-us { background: var(--panel-2); color: var(--text); }

/* intrebari */
.s-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 20px; }
.s-faq details { padding: 4px 22px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.s-faq summary { cursor: pointer; font-size: 18px; font-weight: 500; line-height: 1.25; padding: 16px 0; list-style: none; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: '+'; float: right; margin-left: 12px; color: var(--muted); font-weight: 300; }
.s-faq details[open] summary::after { content: '–'; }
.s-faq details p { color: var(--text-2); padding-bottom: 16px; font-size: 15.5px; line-height: 1.42; }

/* pagini de continut */
.s-article { padding-top: 12px; padding-bottom: 0; }
.s-article .s-faq { margin-top: 20px; }
.s-head {
  position: relative; overflow: hidden;
  padding: 64px 44px 54px; border-radius: 34px;
  background: var(--atmos), var(--hero);
}
.s-head h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.015em; max-width: 900px; }
.s-head .s-lead { max-width: 760px; }
.s-crumbs { font-size: 14.5px; color: var(--text-2); margin-bottom: 18px; }
.s-crumbs a { color: var(--text-2); }
.s-blocks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.s-block { grid-column: span 6; padding: 22px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.s-block:nth-child(4n + 1), .s-block:nth-child(4n) { grid-column: span 7; }
.s-block:nth-child(4n + 2), .s-block:nth-child(4n + 3) { grid-column: span 5; }
.s-block:last-child:nth-child(odd) { grid-column: span 12; }
.s-block h2 { font-size: 23px; font-weight: 400; line-height: 1.16; }
.s-block h3 { font-size: 18px; margin-top: 14px; }
.s-block p { color: var(--text-2); margin-top: 9px; font-size: 15.5px; line-height: 1.42; }
.s-article > h2 { margin-top: 64px; }

/* final + subsol */
.s-final { margin-top: 64px; padding: 70px 44px; text-align: center; border-radius: 34px; background: var(--atmos), var(--hero); }
.s-final h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; max-width: 780px; margin: 0 auto; }
.s-final .s-cta { justify-content: center; }
.s-footer { padding: 26px 10px 30px; font-size: 14.5px; color: var(--text-2); }
.s-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.s-footer a { color: var(--text-2); text-decoration: none; }
.s-footer a:hover { color: var(--text); }

/* #105 — generatorul de habit contract (/habit-contract/) */
.ct-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; align-items: start; margin-top: 12px; }
.ct-form { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.ct-field { display: flex; flex-direction: column; gap: 5px; padding-left: 0; font-size: 13.5px; font-weight: 400; color: var(--text-2); }
.ct-field em { font-style: normal; color: var(--muted); }
.ct-field input, .ct-field select {
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 26px;
  min-height: 52px; padding: 0 18px; width: 100%;
}
.ct-field select option { color: #111113; }
.ct-field input:focus, .ct-field select:focus { outline: 2px solid var(--accent-border); outline-offset: 1px; border-color: var(--accent); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); cursor: pointer; line-height: 1.35; }
.ct-check input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.ct-check strong { color: var(--text); font-weight: 500; }
.ct-preview { position: sticky; top: 16px; }
.ct-canvas { display: block; width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ct-actions .s-btn { font-family: inherit; cursor: pointer; }
.ct-fallback { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 24px; background: var(--panel); }
.ct-fallback p { font-size: 14.5px; color: var(--text-2); margin: 0; }
.ct-msg { margin-top: 8px !important; padding: 10px 14px; border-radius: 16px; background: var(--panel-2); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text) !important; }
.ct-next { margin-top: 12px; padding: 28px; border-radius: 28px; background: var(--pill); color: var(--pill-ink); }
.ct-next h2 { font-size: 26px; font-weight: 400; }
.ct-next p { color: inherit; opacity: .78; margin-top: 10px; max-width: 760px; }
.ct-next .s-btn-primary { background: var(--pill-ink); color: var(--pill) !important; }
.ct-next .s-btn-ghost { color: inherit !important; border-color: currentColor; }
.ct-example { margin-top: 12px; padding: 6px 20px 18px; border-radius: 22px; background: var(--panel-2); }
.ct-example p { font-size: 15.5px !important; }
.ct-print-img { display: none; }

@media (max-width: 1040px) {
  .s-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 74px 28px 28px; }
  .s-hero > div:first-child { padding: 0; }
  .s-phone { max-width: 420px; }
  .s-grid-3 > *,
  #landing main > section:nth-of-type(3) .s-card:nth-child(n),
  #landing main > section:nth-of-type(4) .s-card:nth-child(n) { grid-column: span 6; }
  .s-block:nth-child(n) { grid-column: span 12; }
  .s-t3, .s-t4 { grid-column: span 6; }
  .s-t5 { grid-column: span 12; }
}

@media (max-width: 720px) {
  .s-wrap { padding: 0 10px; }
  .s-nav { margin-top: 10px; padding-left: 18px; }
  .s-nav-links .s-hide-sm { display: inline-flex; }
  .s-btn-sm { padding: 0 16px; }
  .s-nav-link { display: none; }
  .s-t5, .s-t3, .s-t4 { grid-column: span 12; }
  .s-hero { padding: 78px 22px 22px; border-radius: 28px; }
  .s-eyebrow { height: 40px; max-width: calc(100% - 24px); padding: 0 13px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .s-head { padding: 44px 22px 34px; border-radius: 28px; }
  .s-section { padding-top: 44px; }
  .s-article > h2 { margin-top: 44px; }
  .s-grid-3 > *,
  #landing main > section:nth-of-type(3) .s-card:nth-child(n),
  #landing main > section:nth-of-type(4) .s-card:nth-child(n) { grid-column: span 12; }
  .s-grid-2 { grid-template-columns: 1fr; }
  .s-faq { grid-template-columns: 1fr; }
  .s-final { margin-top: 44px; padding: 48px 22px; border-radius: 28px; }
  .ct-tool { grid-template-columns: 1fr; }
  .ct-preview { position: static; }
}

/* tiparirea paginii contractului = doar hartia */
@media print {
  .ct-body > :not(.ct-print-img) { display: none !important; }
  body.ct-body { background: #fff; }
  .ct-print-img { display: block; width: 100%; max-width: 17cm; margin: 0 auto; }
}
