/* Minicurs — varianta de citit: hârtie deschisă, text mare, o coloană.
   Culorile și Poppins vin din fișa lui Luca; galbenul e doar marcaj și buton. */
:root {
  --paper: #F4F0E8;
  --paper-2: #EBE5D9;
  --ink: #16130F;
  --muted: #554F46;
  --line: #D6CEBF;
  --yellow: #E2B017;
  --night: #0A0908;
  --cream: #F3EFE8;
  --cream-light: #FBF8F1;
  --warm-grey: #D0CABF;
  --measure: 40rem;
  --gutter: clamp(1.2rem, 5.6vw, 4.8rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.7 Poppins, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gutter), 69.5rem); margin-inline: auto; }
.col { max-width: var(--measure); }
mark { background: linear-gradient(transparent 58%, rgba(226,176,23,.55) 58%); color: inherit; padding: 0 .1em; }

/* bara */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 2rem; min-height: 4rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.1rem; letter-spacing: .01em; }
.brand b { font-weight: 600; }
.brand__mark { display: block; width: 40px; height: 40px; } .brand em { font-style: normal; font-weight: 400; }
.top nav { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; font-size: .9rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a[aria-current] { font-weight: 800; box-shadow: inset 0 -2px var(--yellow); }
.top nav a:hover { box-shadow: inset 0 -2px var(--ink); }

/* primul ecran */
.hero { padding: 3.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; align-items: start; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; max-width: 18ch; }
.hero h1 span { font-weight: 400; }
.hero .sub { font-size: 1.25rem; color: var(--muted); margin-top: 1rem; }
.hero .hook { margin-top: 2rem; max-width: 34rem; }
.video { position: relative; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--night); }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 4.5rem; height: 4.5rem; border-radius: 50%;
  border: 0; background: var(--yellow); cursor: pointer; transition: transform .2s ease-out;
}
.video__play { display: grid; place-items: center; }
.video__play span { width: 0; height: 0; border-left: 1.1rem solid var(--night); border-block: .7rem solid transparent; transform: translateX(.15rem); }
.video__play:hover { transform: scale(1.06); }
.video__play:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

/* formular */
.signup { margin-top: 1.6rem; max-width: 34rem; }
.signup label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.signup__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup input {
  flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; padding: .85rem 1rem;
  border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink);
}
.signup input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.btn {
  font: 600 1rem/1 Poppins, sans-serif; padding: 1rem 1.4rem; border-radius: 4px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--yellow); color: var(--night); text-decoration: none;
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: #f0c22c; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.signup__note { font-weight: 600; margin-top: .8rem; }
.end .signup__note { color: var(--ink); }
.fine { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.signup__msg:empty { display: none; }
.signup__msg { font-size: .9rem; margin-top: .6rem; }

.hero-cta { margin-top: 1.6rem; max-width: 34rem; }
.hero-cta .btn { display: inline-block; }

/* secțiuni */
.sec { padding: 5rem 0; border-top: 1px solid var(--line); }
.sec--tint { background: var(--paper-2); }
.sec--save { padding-bottom: 2.5rem; }
.sec--save + .sec { padding-top: 3rem; }
.sec h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 1.6rem; }
.sec .intro { margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; }
.split > h2 { margin: 0; }

/* cuprinsul: ce vei învăța */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 2rem; }
.toc li:first-child { border-top: 1px solid var(--line); }
.toc b { font-weight: 600; display: block; font-size: 1.2rem; line-height: 1.4; }
.toc p { color: var(--muted); grid-column: 1; }
.toc .pg { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-size: .85rem; font-weight: 600; white-space: nowrap; padding: .2rem .6rem; border: 1px solid var(--ink); border-radius: 3px; }

.toc-hook { margin-bottom: 1.6rem; }

/* restul lecțiilor, la cerere: triunghiul se întoarce când se deschide */
.more { margin-top: 1.4rem; }
.more summary { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; list-style: none; padding: .35rem 0; box-shadow: inset 0 -2px var(--yellow); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ""; width: 0; height: 0; border-left: .6rem solid var(--ink); border-block: .4rem solid transparent; transition: transform .2s ease-out; }
.more[open] summary::before { transform: rotate(90deg); }
.more summary:hover { box-shadow: inset 0 -2px var(--ink); }
.more summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.more__list { margin: 1.2rem 0 0; padding-left: 1.2rem; }
.more__list li { margin-bottom: .4rem; }
.more__list li::marker { color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .more summary::before { transition: none; } }

/* economii */
.save { list-style: none; margin: 0; padding: 0; }
.save li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.save strong { font-size: 2.2rem; font-weight: 700; line-height: 1.1; }

/* cum funcționează */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; list-style: none; margin: 0; padding: 0; counter-reset: h; }
.how li { counter-increment: h; padding: 1.5rem 0 1.5rem 3rem; border-top: 1px solid var(--line); position: relative; }
.how li::before { content: counter(h); position: absolute; left: 0; top: 1.45rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.how h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.how p { color: var(--muted); }
.how a { color: var(--ink); font-weight: 600; }

/* calculatorul, din pagina planificatorului */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 3rem; align-items: center; }
.calc__q { font-weight: 600; margin-top: 1.2rem; }
.calc__list { margin: .8rem 0 1.2rem; padding-left: 1.2rem; }
.calc__list li { margin-bottom: .4rem; }
.calc__list li::marker { color: var(--yellow); }
.calc__btn { display: inline-block; margin-top: 1.2rem; }
.calc__fig { margin: 0; }
.calc__fig img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }

/* recenzii: capturile lor, cum sunt */
.reviews { columns: 3; column-gap: 1rem; margin-top: 1.2rem; }
.reviews--first { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 1rem; align-items: start; margin-top: 0; }
.reviews--first a:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.reviews--first a:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.reviews--rest { display: none; }
.rev-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rev-toggle:checked ~ .reviews--rest { display: block; }
.rev-more { justify-self: start; display: inline-flex; align-items: center; gap: .7rem; margin-top: .6rem; padding: .35rem 0; cursor: pointer; font-weight: 600; box-shadow: inset 0 -2px var(--yellow); }
.rev-more::before { content: ""; width: 0; height: 0; border-left: .6rem solid var(--ink); border-block: .4rem solid transparent; transition: transform .2s ease-out; }
.rev-toggle:checked ~ .reviews--first .rev-more::before { transform: rotate(90deg); }
.rev-more:hover { box-shadow: inset 0 -2px var(--ink); }
.rev-toggle:focus-visible ~ .reviews--first .rev-more { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rev-more::before { transition: none; } }
.reviews--first a { margin-bottom: 0; }
.reviews a { display: block; break-inside: avoid; margin-bottom: 1rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #111; }
.reviews img { width: 100%; height: auto; }
.reviews a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (min-width: 821px) {
  .sec h2.reviews-title { white-space: nowrap; font-size: min(2.6vw, 2.05rem); }
}

/* echipa */
.team-intro { margin-bottom: 3rem; }
.person { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.person img { align-self: start; height: auto; width: 100%; aspect-ratio: 700 / 770; object-fit: cover; border-radius: 6px; background: var(--paper-2); }
.person h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.person ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.person li { margin-bottom: .4rem; }
.person li::marker { color: var(--yellow); }
.person details summary { cursor: pointer; font-weight: 600; display: inline-block; box-shadow: inset 0 -2px var(--yellow); list-style: none; }
.person details summary::-webkit-details-marker { display: none; }
.person details[open] summary { margin-bottom: 1rem; }
.person details p + p { margin-top: 1rem; }

/* finalul: înscrierea */
/* formularul stă pe gri cald (ales de Alin), distribuirea și footerul pe culoarea secțiunii de deasupra formularului */
.end { --line: rgba(22, 19, 15, .22); --muted: #4A4336; background: var(--warm-grey); color: var(--ink); padding: 5rem 0 4rem; }
.end h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; }
.end p { color: var(--muted); }
.end .signup label { color: var(--ink); margin-top: 2rem; }
.end .fine { color: var(--muted); }
.end .fine a { color: var(--ink); }
.share-band { background: var(--paper-2); padding: 3rem 0; }
.share { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.share span { flex-basis: 100%; color: var(--ink); font-weight: 600; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: rgba(22, 19, 15, .08); }

.foot { background: var(--paper-2); color: #4A4336; font-size: .9rem; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  body { font-size: 1.0625rem; }
  .hero { padding-top: 2rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero .video { width: 100%; max-width: 17rem; justify-self: center; }
  .split, .save li, .person { grid-template-columns: 1fr; gap: 1rem; }
  .split > h2 { margin-bottom: .6rem; }
  .how { grid-template-columns: 1fr; }
  .toc li { grid-template-columns: 1fr; }
  .toc .pg { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .4rem; }
  .person img { max-width: 14rem; }
  .sec { padding: 3.5rem 0; }
  .signup .btn { flex: 1 1 100%; }
  .hero-cta .btn { display: block; text-align: center; }
  .top nav { gap: 0 1rem; line-height: 1.5; }
  .top nav a { padding-block: .35rem; }
  .foot a { display: inline-block; padding-block: .35rem; }
  .calc { grid-template-columns: 1fr; gap: 2rem; }
  .reviews { columns: 1; max-width: 26rem; }
  .reviews--first { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .reviews--first a:nth-child(2), .reviews--first a:nth-child(3) { grid-column: auto; grid-row: auto; }
}
