/* KeepitCloud — kic.css v1 (29 oct 2026; paleta mov / roz / verde, 7 nov 2026: 60% roz pal, 30% lavanda, 10% verde natural)
   Sursa: sistemul de design „KeepitCloud” (https://claude.ai/artifact/SJpYaosY1Z2kCDynTEXXxM).
   Fișier comun pentru site, Hub, panoul de invitații + editor, STD, HugLink și login.
   NU se editează în produse: orice schimbare se face în sursă și se copiază identic peste tot. */

/* Font găzduit local (OFL), latin + latin-ext (ă â î ș ț) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-latin-ext-wght.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-latin-wght.woff2) format('woff2-variations');
  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, [data-theme="light"] {
  --surface-page: #fdf6f6;
  --surface-soft: #f9eced;
  --surface-card: #ffffff;
  --tint-indigo: #ebe6fb;
  --line-soft: #f0e4e6;
  --line-indigo: #e2daf5;
  --ink-strong: #1c1922;
  --ink: #2b2731;
  --ink-2: #45404d;
  --text: #5f5967;
  --text-muted: #736b7c;
  --text-faint: #958c9c;
  --line-strong: #b6abbd;
  --brand: #6b7a37;
  --brand-strong: #55632a;
  --brand-soft: #c7cfa6;
  --brand-deep: #3f4a1e;
  --on-brand: #ffffff;
  --rose: #f2c4c8;
  --lavanda: #a99be8;
  --lavanda-soft: #ebe6fb;
  --rose-soft: #fbe9ea;
  --rose-strong: #f43f5e;
  --danger: #be123c;
  --danger-deep: #881337;
  --success: #198754;
  --success-strong: #146c43;
  --success-soft: #e8f3ee;
  --warning: #ffc107;
  --warning-soft: #fff4cc;
  --warning-strong: #b78800;
  --logo-ink: #49444d;
  --shadow-none: none;
  --shadow-pop: 0 10px 30px rgba(43, 39, 49, 0.10);
  --shadow-focus: 0 0 0 3px #55632A;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 30px;
  --space-10: 40px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-sans: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.display { font-family: var(--font-sans); font-size: 48px; line-height: 1.1; font-weight: 600; letter-spacing: -0.4px; }
.h1 { font-family: var(--font-sans); font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -0.4px; }
.h2 { font-family: var(--font-sans); font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.4px; }
.h3 { font-family: var(--font-sans); font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.4px; }
.h4 { font-family: var(--font-sans); font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.4px; }
.lead { font-family: var(--font-sans); font-size: 20px; line-height: 1.5; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 600; letter-spacing: -0.4px; }
.label { font-family: var(--font-sans); font-size: 16px; line-height: 1.5; font-weight: 500; }
.small { font-family: var(--font-sans); font-size: 14px; line-height: 1.5; font-weight: 400; }
.button { font-family: var(--font-sans); font-size: 20px; line-height: 1; font-weight: 600; }
.button-sm { font-family: var(--font-sans); font-size: 16px; line-height: 1; font-weight: 600; letter-spacing: 0.5px; }
.eyebrow { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 600; }

/* KeepitCloud — componente comune (kic-*). Se încarcă după tokens.css.
   Același fișier în site, Hub, panoul de invitații, editor, STD, HugLink și login. */

/* ---------- Bază ---------- */
.kic-page {
  margin: 0;
  background: var(--surface-page);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.kic-page h1, .kic-page h2, .kic-page h3, .kic-page h4 { color: var(--ink); text-wrap: balance; margin: 0; }
/* Specificitate zero: orice clasă de componentă (kic-btn, kic-tabbar…) își păstrează culoarea pe <a>. */
:where(.kic-page) a { color: var(--brand-strong); text-underline-offset: 3px; }
:where(.kic-page), :where(.kic-page) *, :where(.kic-page) *::before, :where(.kic-page) *::after { box-sizing: border-box; }
.kic-page :focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-md); }

/* Fundalul hero al site-ului: lavandă la stânga, roz pal în centru, roz în colțul din dreapta jos, cu granulație fină.
   Doar pe site, pe ecranul de login și pe ecranul „Gata!” de după plată. Nu în ecranele de lucru. */
.kic-hero-bg {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(242, 196, 200, 0.70), rgba(242, 196, 200, 0) 70%),
    linear-gradient(90deg, rgba(169, 155, 232, 0.42) 0%, rgba(169, 155, 232, 0.18) 30%, rgba(235, 230, 251, 0.25) 50%, rgba(253, 246, 246, 0) 75%),
    var(--surface-page);
}
.kic-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cuvântul evidențiat din titlu („foto-video digitală”) */
.kic-hl { color: var(--brand); }

/* ---------- Butoane ---------- */
.kic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-5) var(--space-8);
  border: 0;
  border-radius: var(--radius-md);
  /* brand-strong, nu brand: textul alb pe --brand are 4,47:1, sub pragul WCAG AA de 4,5:1 */
  background: var(--brand-strong);
  color: var(--on-brand);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.kic-btn:hover { background: var(--brand-deep); }
.kic-btn:active { background: var(--brand-deep); }
.kic-btn:disabled, .kic-btn[aria-disabled="true"] { background: var(--line-indigo); color: var(--ink-2); cursor: not-allowed; }
.kic-btn[aria-busy="true"] { pointer-events: none; }
.kic-btn[aria-busy="true"]::before {
  content: "";
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: kic-spin .7s linear infinite;
}
@keyframes kic-spin { to { transform: rotate(360deg); } }

/* Mic: în carduri și ferestre. */
.kic-btn--sm { min-height: 44px; padding: 12px 20px; font-size: 16px; letter-spacing: .5px; }

/* Secundar: acțiunea a doua de pe ecran */
.kic-btn--secondary { background: var(--surface-card); color: var(--brand-strong); box-shadow: inset 0 0 0 1.5px var(--brand); }
.kic-btn--secondary:hover { background: var(--tint-indigo); }

/* Discret: „Anulează”, „Înapoi”, „Ai un cod?” */
.kic-btn--ghost { background: transparent; color: var(--brand-strong); text-transform: none; font-size: 16px; padding: 12px 8px; min-height: 44px; }
.kic-btn--ghost:hover { background: var(--tint-indigo); }

.kic-btn--danger { background: var(--danger); }
.kic-btn--danger:hover { background: var(--danger-deep); }
.kic-btn--block { display: flex; width: 100%; }

/* ---------- Insigne ---------- */
/* Pilula de deasupra titlului hero: lavanda (culoarea de 30%), text închis (contrast AA). */
.kic-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 18px 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--lavanda);
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.kic-eyebrow::before { content: "\2731"; font-size: 1.2em; line-height: 1; }

/* Pastile de stare: mereu cu cuvânt, nu doar culoare */
.kic-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; line-height: 1.4;
  background: var(--tint-indigo); color: var(--brand-deep);
}
.kic-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kic-status--success { background: var(--success-soft); color: var(--success-strong); }
.kic-status--pending { background: var(--warning-soft); color: var(--ink); }
.kic-status--pending::before { background: var(--warning-strong); }
.kic-status--danger  { background: var(--rose-soft); color: var(--danger); }
.kic-status--muted   { background: var(--surface-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-soft); }
.kic-status--premium { background: var(--tint-indigo); color: var(--brand-deep); }
.kic-status--premium::before { content: "\2726"; width: auto; height: auto; background: none; font-size: 12px; }

/* ---------- Listă cu bife (sub butonul hero) ---------- */
.kic-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); color: var(--text); }
.kic-checks li { display: flex; align-items: center; gap: 10px; }
.kic-checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.kic-checks--stack { flex-direction: column; }

/* ---------- Carduri ---------- */
.kic-card {
  display: block;
  padding: var(--space-6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  color: var(--text);
}
.kic-card--white { background: var(--surface-card); }
.kic-card--link { text-decoration: none; transition: border-color .15s ease; }
.kic-card--link:hover { border-color: var(--brand); }
.kic-card--selected { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--surface-card); }
.kic-card__title { margin: 0 0 var(--space-1); color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.4; }
.kic-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }

/* ---------- Formulare ---------- */
.kic-field { display: grid; gap: var(--space-2); }
.kic-label { color: var(--ink-2); font-size: 16px; font-weight: 500; }
.kic-input, .kic-select, .kic-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px var(--space-4);
  border: 1px solid var(--text-muted);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  color: var(--ink);
  font: 400 16px/1.4 var(--font-sans);
}
.kic-input::placeholder, .kic-textarea::placeholder { color: var(--text-faint); }
.kic-input:hover, .kic-select:hover, .kic-textarea:hover { border-color: var(--ink-2); }
.kic-input:focus, .kic-select:focus, .kic-textarea:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--tint-indigo); }
.kic-textarea { min-height: 120px; resize: vertical; }
.kic-help { color: var(--text); font-size: 14px; }
.kic-field--error .kic-input, .kic-field--error .kic-select, .kic-field--error .kic-textarea { border-color: var(--danger); }
.kic-field--error .kic-help { color: var(--danger); font-weight: 500; }
.kic-check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); cursor: pointer; }
.kic-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-strong); }

/* PIN de 6 cifre: o căsuță pe cifră */
.kic-pin { display: flex; gap: var(--space-2); }
.kic-pin input {
  width: 48px; height: 56px; box-sizing: border-box;
  border: 1px solid var(--text-muted); border-radius: var(--radius-md);
  background: var(--surface-card); color: var(--ink-strong);
  font: 600 24px/1 var(--font-sans); text-align: center;
  font-variant-numeric: tabular-nums;
}
.kic-pin input:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--tint-indigo); }
.kic-pin--error input { border-color: var(--danger); }

/* ---------- Mesaje ---------- */
.kic-alert {
  display: grid; gap: 2px;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--tint-indigo); color: var(--brand-deep);
  font-size: 15px;
}
.kic-alert strong { font-weight: 600; }
.kic-alert--success { background: var(--success-soft); color: var(--success-strong); }
.kic-alert--error { background: var(--rose-soft); color: var(--danger-deep); }
.kic-alert--warning { background: var(--warning-soft); color: var(--ink); }

/* ---------- Antet comun ---------- */
.kic-header {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 64px; padding-inline: var(--space-4);
  background: var(--surface-page);
  border-bottom: 1px solid var(--line-soft);
}
.kic-header__logo { display: flex; align-items: center; gap: var(--space-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.4px; }
.kic-header__logo img { width: 40px; height: 40px; }
.kic-header__nav { display: flex; gap: var(--space-1); }
.kic-header__nav a { padding: 10px 12px; border-radius: var(--radius-md); color: var(--ink-2); font-weight: 500; text-decoration: none; }
.kic-header__nav a[aria-current="page"] { background: var(--tint-indigo); color: var(--brand-deep); }

/* Bara de jos pe telefon (Hub, panou): max 4 destinații */
.kic-tabbar {
  display: flex; justify-content: space-around;
  padding: 6px var(--space-2) calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--surface-card);
  border-top: 1px solid var(--line-soft);
}
.kic-tabbar a { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: var(--radius-md); color: var(--text); font-size: 12px; font-weight: 500; text-decoration: none; }
.kic-tabbar a svg { width: 24px; height: 24px; }
.kic-tabbar a[aria-current="page"] { color: var(--brand-strong); background: var(--tint-indigo); }

/* ---------- Fereastră și toast ---------- */
.kic-modal { max-width: 440px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-pop); }
.kic-toast { display: inline-flex; align-items: center; gap: var(--space-2); padding: 12px var(--space-4); border-radius: var(--radius-md); background: var(--ink); color: var(--on-brand); box-shadow: var(--shadow-pop); font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .kic-btn, .kic-card--link { transition: none; }
  .kic-btn[aria-busy="true"]::before { animation-duration: 2s; }
}
