/* Qualian - site.css
   Paleta si tonul continua exact screenshot-urile din App Store:
   gradient "mistic warm" #3A2246 -> #7E4A63, titluri crem #F6E7D8,
   verde si auriu preluate din iconita (margareta cu sase petale). */

:root {
  --plum-950: #1F1128;
  --plum-900: #2A1833;
  --plum-800: #3A2246;
  --mauve-600: #7E4A63;
  --mauve-500: #8A5270;

  --cream: #F6E7D8;
  --cream-dim: #E3CDBC;
  --muted: #B79CAE;

  --green: #7BAA6E;
  --green-bright: #8FC47F;
  --gold: #D3AE4E;

  --line: rgba(246, 231, 216, 0.14);
  --card: rgba(246, 231, 216, 0.05);
  --card-hover: rgba(246, 231, 216, 0.08);

  --radius: 18px;
  --device-radius: 13.7% / 6.6%;

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream-dim);
  background: var(--plum-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); color: var(--cream-dim); }

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--plum-900);
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 17, 40, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--cream); }

@media (max-width: 620px) {
  .site-nav a.nav-optional { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(138, 82, 112, 0.55), transparent 60%),
    linear-gradient(155deg, var(--plum-800), var(--mauve-600));
  padding-block: clamp(48px, 8vw, 92px) clamp(0px, 2vw, 20px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy { padding-bottom: clamp(30px, 6vw, 70px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(246, 231, 216, 0.12);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero p.lede { max-width: 46ch; color: rgba(246, 231, 216, 0.86); }

.hero-device {
  justify-self: center;
  width: min(300px, 78vw);
  border-radius: var(--device-radius);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 30px 70px rgba(0, 0, 0, 0.45);
  margin-bottom: -6%;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lede { margin-inline: auto; }
  .hero-copy { padding-bottom: 0; }
  .cta-row { justify-content: center; }
  .hero-note { margin-inline: auto; }
}

/* ---------- CTA ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 9px 18px 9px 15px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.badge-appstore:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.badge-appstore svg { width: 25px; height: 25px; flex-shrink: 0; fill: #fff; }
.badge-appstore .b-small { display: block; font-size: 0.63rem; line-height: 1.25; opacity: 0.9; }
.badge-appstore .b-big { display: block; font-size: 1.06rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 20px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.97rem;
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(246, 231, 216, 0.1); color: var(--cream); }

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(246, 231, 216, 0.72);
  max-width: 42ch;
}

.hero-note strong { color: var(--cream); font-weight: 700; }

/* ---------- sections ---------- */

section { padding-block: clamp(56px, 9vw, 104px); }

.section-dark { background: var(--plum-900); }
.section-darker { background: var(--plum-950); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

.kicker {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 12px;
}

/* ---------- pitch ---------- */

.pitch p {
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 34ch;
}
.pitch strong { color: var(--cream); font-weight: 700; }

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 44px);
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(34px, 5vw, 54px);
}

.feature + .feature { border-top: 1px solid var(--line); }

.feature:nth-child(even) .feature-media { order: -1; }

.feature-media { display: flex; justify-content: center; }

.feature-media img {
  width: min(272px, 72vw);
  border-radius: var(--device-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 24px 54px rgba(0, 0, 0, 0.4);
}

.feature-copy p { color: var(--muted); }
.feature-copy p strong { color: var(--cream-dim); font-weight: 650; }

@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-copy { text-align: center; }
}

/* ---------- card grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: background 0.18s ease;
}
.card:hover { background: var(--card-hover); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; color: var(--muted); margin: 0; }

.card-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

/* ---------- privacy strip ---------- */

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 20px 34px;
}

.privacy-list li {
  padding-left: 32px;
  position: relative;
  color: var(--muted);
  font-size: 0.99rem;
}

.privacy-list li strong { color: var(--cream); display: block; font-weight: 700; margin-bottom: 2px; }

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px rgba(31, 17, 40, 0.55);
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: start;
  max-width: 860px;
  margin-inline: auto;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  height: 100%;
}

.plan.featured {
  background: linear-gradient(165deg, rgba(138, 82, 112, 0.42), rgba(58, 34, 70, 0.42));
  border-color: rgba(143, 196, 127, 0.42);
  position: relative;
}

.plan-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--green);
  color: #12240E;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan h3 { margin-bottom: 4px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.plan-amount {
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-then { font-size: 0.92rem; color: var(--muted); }

.plan-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.plan li {
  position: relative;
  padding-left: 27px;
  font-size: 0.96rem;
  color: var(--cream-dim);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
}

.plan li.off { color: var(--muted); opacity: 0.72; }
.plan li.off::before { background: var(--muted); opacity: 0.5; }

.save-pill {
  display: inline-block;
  background: rgba(143, 196, 127, 0.18);
  border: 1px solid rgba(143, 196, 127, 0.42);
  color: var(--green-bright);
  font-size: 0.83rem;
  font-weight: 750;
  padding: 3px 11px;
  border-radius: 999px;
}

.price-footnote {
  text-align: center;
  margin-top: 30px;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 60ch;
  margin-inline: auto;
}

/* ---------- prose (privacy / support) ---------- */

.page-head {
  background: linear-gradient(155deg, var(--plum-800), var(--mauve-600));
  padding-block: clamp(46px, 7vw, 76px);
}
.page-head p { color: rgba(246, 231, 216, 0.82); margin: 0; }

.prose {
  max-width: 74ch;
  padding-block: clamp(44px, 6vw, 72px);
}

.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}
.prose > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 { margin-top: 1.9em; font-size: 1.1rem; }

.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--green); }

.prose strong { color: var(--cream); }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 1.6em 0;
}
.callout p { margin: 0; }

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 2.4em;
}
.toc p { font-weight: 700; color: var(--cream); margin-bottom: 10px; font-size: 0.95rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.toc li { margin: 0; font-size: 0.95rem; }

.meta-line {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2.4em;
}

/* tabel responsiv, nu lasa pagina sa scroll-eze orizontal */
.table-scroll { overflow-x: auto; margin: 1.5em 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 0.94rem; }
.table-scroll th, .table-scroll td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table-scroll th { color: var(--cream); font-weight: 700; }
.table-scroll td { color: var(--muted); }

/* ---------- faq ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--cream);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-bright);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }

.faq details > *:not(summary) { padding-bottom: 4px; }
.faq details > p { color: var(--muted); font-size: 0.97rem; margin-bottom: 18px; }

/* ---------- final CTA ---------- */

.final-cta {
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(138, 82, 112, 0.6), transparent 65%),
    var(--plum-950);
  text-align: center;
}

.final-cta .cta-row { justify-content: center; }
.final-cta img.mark { width: 76px; height: 76px; border-radius: 19px; margin: 0 auto 24px; }

/* ---------- language switch ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 7px;
  border-radius: 7px;
}
.lang-switch a:hover { color: var(--cream); background: rgba(246, 231, 216, 0.08); }
.lang-switch a[aria-current="page"] { color: var(--cream); background: rgba(246, 231, 216, 0.13); }

/* in header: divider + spacing from the nav */
.site-header .lang-switch {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

/* on the tightest screens, nudge everything closer */
@media (max-width: 480px) {
  .site-header .wrap { gap: 10px; }
  .site-header .lang-switch { padding-left: 9px; margin-left: 0; }
  .lang-switch a { padding: 4px 5px; }
}

/* in footer: labelled row under the main footer grid */
.footer-lang {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.footer-lang .lang-label {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--plum-950);
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cream); }

.footer-note { font-size: 0.84rem; opacity: 0.75; margin-top: 18px; }

/* ---------- utilitare ---------- */

.privacy-more { margin-top: 30px; }

.narrow-center { max-width: 44ch; margin-inline: auto; }

/* marcaj vizibil pentru ce trebuie completat inainte de publicare */
mark.todo {
  background: rgba(211, 174, 78, 0.22);
  color: var(--cream);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9em;
}
