/* Easyfoto — landing page styles. Colors, type and radii come from tokens.css. */

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

a { color: var(--brand); }
a:hover { color: var(--brand-strong); }

img, video { display: block; max-width: 100%; }

h1, h2, h3, p { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 1100px; }

.section { padding: 96px 24px; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: #0b1b3f; color: #ffffff; }
.section--brand { background: var(--brand); color: #ffffff; }

.section__inner { display: flex; flex-direction: column; gap: 48px; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head--center { max-width: 680px; text-align: center; align-items: center; }
.section-head--split {
  max-width: none; flex-direction: row; flex-wrap: wrap;
  align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-head__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
}
.section--dark .eyebrow { color: var(--sun); }

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 40px; line-height: 46px; letter-spacing: -0.015em;
}

.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.lead--side { max-width: 420px; }
.section--dark .lead { color: #c9d4ee; }

.grid { display: grid; gap: 24px; }
.grid--steps { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--reels { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-md);
  font-family: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn svg { flex-shrink: 0; }
.btn--md { min-height: 52px; padding: 0 24px; font-size: 16px; gap: 10px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; gap: 10px; }

.btn--wa { background: #15803d; color: #ffffff; }
.btn--wa:hover { background: #166534; color: #ffffff; }
.btn--wa.btn--glow { box-shadow: 0 10px 30px rgba(21,128,61,0.35); }

.btn--ghost { border-color: rgba(255,255,255,0.5); color: #ffffff; }
.btn--ghost:hover { background: rgba(255,255,255,0.16); color: #ffffff; }

.btn--brand { background: var(--brand); color: #ffffff; }
.btn--brand:hover { background: var(--brand-strong); color: #ffffff; }

.btn--white {
  background: #ffffff; color: #0b1b3f;
  box-shadow: 0 10px 30px rgba(11,27,63,0.25);
}
.btn--white:hover { background: #eef3fe; color: #0b1b3f; }

/* ---------- Chips / pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
}
.pill--glass { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); }
.pill--outline-light { border: 1px solid rgba(255,255,255,0.3); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; color: #0b1b3f;
}
.tag--sun { background: var(--sun); }
.tag--white { background: #ffffff; }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.card--soft { background: var(--surface-alt); }
.card--outline { background: var(--surface); border: 1px solid var(--border); padding: 28px; gap: 14px; }
.card--glass { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); gap: 20px; }
.card--light { background: #ffffff; color: #0b1b3f; border: 1px solid #ffffff; gap: 20px; }

.card-lift { transition: transform .25s ease, box-shadow .25s ease; }
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(11,27,63,.06), 0 16px 36px rgba(11,27,63,.10);
}

.card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 28px;
}
.card__title--lg { font-size: 24px; line-height: 30px; }
.card__text { font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.card__text--grow { flex-grow: 1; }
.card--glass .card__text { color: #c9d4ee; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__stack { display: flex; flex-direction: column; gap: 8px; }
.card .btn--push { margin-top: auto; }

.step-number {
  font-family: var(--font-display); font-weight: 700;
  font-size: 40px; color: var(--border);
}

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--brand-tint); color: var(--brand);
}
.icon-tile--sm { width: 52px; height: 52px; border-radius: 14px; }
.icon-tile--xs { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile--solid { background: var(--brand); color: #ffffff; }

.badge {
  align-self: flex-start; padding: 6px 12px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
}
.badge--glass { background: rgba(255,255,255,0.12); }
.badge--sun { background: var(--sun); color: #0b1b3f; }
.badge--tint { padding: 4px 10px; background: var(--brand-tint); color: var(--ink); }

.check-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 16px; line-height: 24px;
}
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 1px; }

.price-amount {
  font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 40px;
  font-variant-numeric: tabular-nums;
}
.price-currency { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.price-card__list { margin-bottom: 8px; }

.grid--price-extra { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.price-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.price-rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 16px; line-height: 24px;
}
.price-rows li:last-child { border-bottom: 0; }
.price-rows__amount {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.price-note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.terms {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  font-size: 15px; font-weight: 600;
}
.terms li { display: flex; align-items: center; gap: 8px; }
.terms svg { color: var(--success); flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 780px; overflow: hidden;
  background: #0b1b3f; color: #ffffff;
  display: flex; flex-direction: column;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  max-width: none;
  animation: kb 24s ease-in-out infinite alternate; transform-origin: 60% 40%;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,27,63,0.9) 0%, rgba(11,27,63,0.7) 42%, rgba(11,27,63,0.25) 100%);
}

.nav {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 15px; font-weight: 600; }
.nav__link { color: #ffffff; text-decoration: none; opacity: .88; }
.nav__link:hover { color: #ffffff; opacity: 1; text-decoration: underline; }

.hero__body {
  position: relative; z-index: 2; flex-grow: 1;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 24px 96px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__copy .pill { align-self: flex-start; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px); line-height: 1.1; letter-spacing: -0.02em;
}
.hero__underline {
  width: 120px; height: 6px; border-radius: var(--radius-pill); overflow: hidden;
  background: rgba(255,255,255,0.15); margin-top: -8px;
}
.hero__underline span {
  display: block; width: 100%; height: 100%; background: var(--sun); border-radius: var(--radius-pill);
  animation: grow 3s cubic-bezier(.7,0,.3,1) infinite; transform-origin: left center;
}
.hero__lead { max-width: 540px; font-size: 19px; line-height: 30px; color: #dbe3f5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.dot-pulse {
  width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--sun);
  animation: dotp 1.8s ease-in-out infinite;
}

.ticker {
  display: inline-block; height: 1.1em; overflow: hidden;
  vertical-align: bottom; position: relative;
}
.ticker__inner {
  display: flex; flex-direction: column;
  animation: tick 9s cubic-bezier(.7,0,.3,1) infinite;
}
.ticker__inner span { display: block; height: 1.1em; line-height: 1.1em; }

.hero-card { flex: 0 1 400px; min-width: 0; }
.hero-card__frame {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg); padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  animation: float 6s ease-in-out infinite;
}
.hero-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.hero-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card__after { animation: sweepc 5s ease-in-out infinite alternate; }
.hero-card__line {
  position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: #ffffff; box-shadow: 0 0 12px rgba(0,0,0,0.4);
  animation: sweepl 5s ease-in-out infinite alternate;
}
.hero-card__media .tag { position: absolute; top: 10px; }
.hero-card__media .tag--sun { left: 10px; }
.hero-card__media .tag--white { right: 10px; }
.hero-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 6px 4px;
}
.hero-card__meta-text { display: flex; flex-direction: column; gap: 2px; }
.hero-card__meta-title { font-size: 14px; font-weight: 600; }
.hero-card__meta-sub { font-size: 13px; color: #c9d4ee; }
.hero-card__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill); background: var(--brand);
}

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; margin-left: -22px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: #ffffff;
}
.scroll-cue:hover { color: #ffffff; }
.scroll-cue svg { animation: cue 2s ease-in-out infinite; }

/* Entrance animation */
.rise { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .5s; }
.d4 { animation-delay: .7s; } .d5 { animation-delay: .95s; }

/* ---------- Marquee ---------- */
.marquee { background: var(--brand); color: #ffffff; overflow: hidden; padding: 18px 0; }
.marquee__track {
  display: flex; gap: 48px; width: max-content;
  font-family: var(--font-display); font-weight: 600; font-size: 20px; white-space: nowrap;
  animation: marq 32s linear infinite;
}
.marquee__star { color: var(--sun); }

/* ---------- Reels ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Ficha Pro ---------- */
.ficha {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.ficha__copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ficha__note { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.ficha__preview {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; justify-self: center;
}
.ficha__page {
  position: absolute; width: 62%; height: auto; max-width: none;
  border: 1px solid var(--border); border-radius: var(--radius-md); background: #ffffff;
  box-shadow: 0 2px 4px rgba(11,27,63,.06), 0 18px 40px rgba(11,27,63,.14);
  transition: transform .3s ease;
}
.ficha__page--back { right: 0; top: 0; transform: rotate(4deg); }
.ficha__page--front { left: 0; bottom: 0; transform: rotate(-3deg); }
.ficha__preview:hover .ficha__page--front { transform: rotate(-1deg) translateY(-6px); }
.price-rows a { color: inherit; }
.price-rows a:hover { color: var(--brand); }

/* ---------- Before / after ---------- */
.compare-wrap { display: flex; flex-direction: column; gap: 32px; align-items: center; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); background: #ffffff; color: #0b1b3f;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.tab[aria-pressed="true"] { border-color: #0b1b3f; background: #0b1b3f; color: #ffffff; }

.compare {
  --pos: 50%;
  position: relative; width: 100%; max-width: 900px; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  background: #121c36; user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #ffffff; box-shadow: 0 0 14px rgba(0,0,0,0.35); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: var(--radius-pill); background: #ffffff; color: #0b1b3f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.compare .tag { position: absolute; top: 16px; padding: 6px 12px; font-size: 14px; pointer-events: none; }
.compare .tag--sun { left: 16px; }
.compare .tag--white { right: 16px; }
.compare__note {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(11,27,63,0.8); color: #ffffff; font-size: 13px; pointer-events: none;
}
.compare__note[hidden] { display: none; }
.compare__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.compare:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }
.compare__desc { font-size: 16px; line-height: 24px; color: var(--ink-muted); text-align: center; }

/* ---------- CTA band ---------- */
.cta { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.015em;
}
.cta__text { max-width: 560px; font-size: 18px; line-height: 28px; color: #e3eafc; }

/* ---------- Footer ---------- */
.footer { padding: 40px 24px; background: #0b1b3f; color: #c9d4ee; }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 14px;
}
.footer__inner img { height: 26px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: #c9d4ee; }
.footer a:hover, .footer a[aria-current="page"] { color: #ffffff; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 13px; line-height: 18px;
}

.cta__legal { max-width: 560px; font-size: 13px; line-height: 18px; color: #e3eafc; }
.cta__legal a { color: #ffffff; }
.cta__legal a:hover { color: #ffffff; text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal-header { background: #0b1b3f; color: #ffffff; }
.legal-header__inner {
  padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.legal { padding: 64px 24px 96px; }
.legal__body { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.legal__head { display: flex; flex-direction: column; gap: 8px; }
.legal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 40px; line-height: 46px; letter-spacing: -0.015em; text-wrap: balance;
}
.legal__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.legal section { display: flex; flex-direction: column; gap: 12px; }
.legal h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 30px; }
.legal p, .legal li { font-size: 16px; line-height: 26px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal__box {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
mark.todo { background: #fef3c7; color: var(--ink); padding: 0 4px; border-radius: 4px; }

/* ---------- Floating WhatsApp button ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: 60px; height: 60px; border-radius: var(--radius-pill);
  background: #15803d; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(21,128,61,0.4);
}
.fab:hover { color: #ffffff; background: #166534; }
.fab__ring {
  position: absolute; inset: 0; border-radius: var(--radius-pill); background: #15803d;
  animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite;
}
.fab svg { position: relative; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Keyframes ---------- */
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tick {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(-25%); }
  66%, 92% { transform: translateY(-50%); }
  100% { transform: translateY(-75%); }
}
@keyframes grow {
  0% { transform: scaleX(0); }
  20%, 80% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes dotp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.6); }
  50% { box-shadow: 0 0 0 7px rgba(245,158,11,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-14px) rotate(-.5deg); }
}
@keyframes sweepc { from { clip-path: inset(0 0 0 78%); } to { clip-path: inset(0 0 0 22%); } }
@keyframes sweepl { from { left: 78%; } to { left: 22%; } }
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(8px); opacity: 1; }
}
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes ping {
  0% { transform: scale(1); opacity: .55; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ficha { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .hero-card, .hide-sm { display: none !important; }
  .section { padding: 72px 16px; }
  .section-title { font-size: 32px; line-height: 38px; }
  .hero { min-height: 640px; }
  .hero__body { padding: 32px 16px 72px; }
  .nav { padding: 16px; }
  .legal { padding: 40px 16px 72px; }
  .ficha { gap: 40px; }
  .legal__title { font-size: 32px; line-height: 38px; }
  .legal-header__inner { padding: 12px 16px; }
}

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