/* ===================================================================
   yeira.io — marketing site
   Direction: evolved Yeira brand. Warm editorial + playful geometry.
   Motif: "bloques" — the product builds courses from blocks; the site
   builds itself from tiles. Coral on warm paper, Gilroy display.
   =================================================================== */

@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-light-webfont.woff') format('woff'); font-weight: 300; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-semibold-webfont.woff2') format('woff2'), url('/marketing/fonts/gilroy-semibold-webfont.woff') format('woff'); font-weight: 600; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-bold-webfont.woff2') format('woff2'); font-weight: 700; font-display: optional; }
@font-face { font-family: 'Gilroy'; src: url('/marketing/fonts/gilroy-black-webfont.woff') format('woff'); font-weight: 900; font-display: optional; }

:root {
  --coral: #f77a56;
  --coral-deep: #e85c36;
  --coral-soft: #fde4db;
  --red: #ff2759;
  --yellow: #ffba12;
  --cream: #ffeaa0;
  --pink: #ff6cc4;
  --blush: #f2dad5;
  --ink: #211d1c;
  --ink-soft: #5d5450;
  --paper: #fdf9f5;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --display: 'Gilroy', 'Rubik', sans-serif;
  --body: 'Rubik', sans-serif;
  --shadow-tile: 0 2px 0 rgba(33,29,28,.06), 0 16px 40px -18px rgba(33,29,28,.22);
  --ease-pop: cubic-bezier(.22,1.2,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* warm grain over everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--cream); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ============================== nav ============================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(33,29,28,.07);
}
.nav-inner {
  display: flex; align-items: center; gap: 36px;
  height: 76px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .18s;
}
.nav-links a:hover { color: var(--ink); }
/* specificity guard: .nav-links a outranks .btn for color */
.nav-links a.btn, .nav-links a.btn:hover,
.foot-links a.btn { color: #fff; }
.btn {
  font-family: var(--display); font-weight: 700;
  display: inline-block; text-decoration: none;
  background: var(--coral); color: #fff;
  padding: .85rem 1.7rem; border: none; cursor: pointer;
  border-radius: 999px; font-size: 1rem; letter-spacing: .01em;
  box-shadow: 0 3px 0 var(--coral-deep);
  transition: transform .16s var(--ease-pop), box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--coral-deep); background: var(--coral-deep); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--coral-deep); }
.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(33,29,28,.16);
}
.btn--ghost:hover { background: rgba(33,29,28,.05); box-shadow: inset 0 0 0 2px rgba(33,29,28,.3); transform: none; }
.btn--big { padding: 1.05rem 2.2rem; font-size: 1.1rem; }
.btn--ink { background: var(--ink); box-shadow: 0 3px 0 #000; }
.btn--ink:hover { background: #000; box-shadow: 0 5px 0 #000; }

/* ============================== hero ============================== */
.hero { position: relative; padding: 84px 0 60px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.kicker {
  font-family: var(--display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 26px; height: 3px; background: var(--coral); border-radius: 2px; }
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hl {
  position: relative; white-space: nowrap;
}
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em;
  height: .34em; background: var(--cream); z-index: -1;
  border-radius: 4px; transform: skewX(-8deg);
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 33rem; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: .85rem; color: var(--ink-soft); margin-top: 14px; }
.hero-note strong { color: var(--ink); }

/* hero load-in */
.hero [data-stagger] { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease-pop) forwards; }
.hero [data-stagger="1"] { animation-delay: .05s; }
.hero [data-stagger="2"] { animation-delay: .15s; }
.hero [data-stagger="3"] { animation-delay: .25s; }
.hero [data-stagger="4"] { animation-delay: .35s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the builder canvas — blocks assembling into a course */
.builder {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-tile);
  padding: 26px;
  transform: rotate(1.4deg);
}
.builder-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
}
.builder-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.builder-tag {
  margin-left: auto; font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  background: var(--coral-soft); color: var(--coral-deep);
  padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase;
}
.bloque {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper);
  border: 1.5px solid rgba(33,29,28,.08);
  border-radius: var(--radius-sm);
  padding: 13px 16px; margin-bottom: 10px;
  opacity: 0; transform: translateX(26px) scale(.97);
  animation: snap .55s var(--ease-pop) forwards;
}
.bloque:nth-child(2) { animation-delay: .45s; }
.bloque:nth-child(3) { animation-delay: .65s; }
.bloque:nth-child(4) { animation-delay: .85s; }
.bloque:nth-child(5) { animation-delay: 1.05s; }
.bloque:nth-child(6) { animation-delay: 1.25s; }
@keyframes snap { to { opacity: 1; transform: none; } }
.bloque .bicon {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; display: grid; place-items: center;
}
.bloque .bicon svg { width: 19px; height: 19px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bloque b { font-family: var(--display); font-weight: 700; font-size: .95rem; display: block; line-height: 1.25; }
.bloque small { color: var(--ink-soft); font-size: .8rem; }
.bloque .state {
  margin-left: auto; font-size: .72rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: 999px;
}
.st-done { background: #e5f5e8; color: #1c7c3c; }
.st-live { background: var(--cream); color: #8a6400; }

/* floating accents behind the builder */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; }
.shape--ring {
  width: 130px; height: 130px; right: 2%; top: 2%;
  border: 14px solid var(--cream); background: transparent;
  animation: drift 9s ease-in-out infinite;
}
.shape--dot { width: 26px; height: 26px; background: var(--pink); right: 44%; top: 8%; animation: drift 7s ease-in-out infinite reverse; }
/* (the coral pill accent was removed: anchored to the hero's bottom edge it
   collided with the marquee band on short-hero viewports) */
@keyframes drift { 50% { transform: translateY(-14px) rotate(4deg); } }

/* ============================ marquee ============================ */
.marquee {
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  background: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 13px 0;
  margin: 30px 0 0;
}
.marquee-track {
  display: inline-block;
  animation: scroll 36s linear infinite;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .04em;
}
.marquee span { margin: 0 18px; }
.marquee i { font-style: normal; color: var(--coral-deep); margin: 0 4px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================== sections =========================== */
section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.06;
  letter-spacing: -.01em; margin: 14px 0 16px;
}
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* scroll reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s var(--ease-pop); }
.rv.in { opacity: 1; transform: none; }

/* =========================== bento grid ========================== */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.tile {
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--white);
  box-shadow: var(--shadow-tile);
  position: relative; overflow: hidden;
  transition: transform .22s var(--ease-pop), box-shadow .22s;
  grid-column: span 4;
}
.tile:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 2px 0 rgba(33,29,28,.06), 0 26px 50px -20px rgba(33,29,28,.3); }
.tile--wide { grid-column: span 8; }
.tile--tall { grid-row: span 2; }
.tile--blush { background: var(--blush); }
.tile--cream { background: var(--cream); }
.tile--coral { background: var(--coral-soft); }
.tile--ink { background: var(--ink); color: var(--paper); }
.tile--ink .tdesc { color: rgba(253,249,245,.72); }
.tile h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.22rem;
  margin: 18px 0 8px; line-height: 1.2;
}
.tdesc { color: var(--ink-soft); font-size: .95rem; }
.ticon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(33,29,28,.06);
}
.tile--ink .ticon { background: rgba(253,249,245,.12); }
.ticon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile .chip {
  position: absolute; top: 24px; right: 24px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .65rem; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.chip--y { background: var(--yellow); color: var(--ink); }
.chip--p { background: var(--pink); color: #fff; }
.chip--r { background: var(--red); color: #fff; }

/* big number list inside wide tile */
.minilist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 16px; }
.minilist li {
  list-style: none; font-size: .92rem; color: var(--ink-soft);
  display: flex; gap: 9px; align-items: baseline;
}
.minilist li::before { content: '✶'; color: var(--coral); font-size: .8rem; }

/* =========================== showcase =========================== */
.showcase { padding-top: 0; }
.showcase-stage {
  position: relative;
  min-height: 560px;
}
.browser {
  background: var(--white); border-radius: 16px; overflow: hidden;
  box-shadow: 0 3px 0 rgba(33,29,28,.08), 0 40px 80px -30px rgba(33,29,28,.35);
  border: 1.5px solid rgba(33,29,28,.1);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--paper);
  border-bottom: 1.5px solid rgba(33,29,28,.08);
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: var(--red); }
.browser-bar i:nth-child(2) { background: var(--yellow); }
.browser-bar i:nth-child(3) { background: #35c06f; }
.browser-bar span {
  margin-left: 10px; font-size: .72rem; color: var(--ink-soft);
  background: var(--white); border-radius: 6px; padding: .15rem .8rem;
  border: 1px solid rgba(33,29,28,.08);
}
.shot-main { width: 72%; }
.shot-a { position: absolute; right: 0; top: 8%; width: 40%; transform: rotate(2deg); z-index: 2; }
.shot-b { position: absolute; right: 7%; bottom: -4%; width: 34%; transform: rotate(-2.5deg); z-index: 3; }
.shot-a .browser, .shot-b .browser { transition: transform .25s var(--ease-pop); }
.shot-a:hover .browser, .shot-b:hover .browser { transform: translateY(-6px); }
@media (max-width: 920px) {
  .showcase-stage { min-height: 0; }
  .shot-main { width: 100%; }
  .shot-a, .shot-b { position: static; width: 100%; transform: none; margin-top: 18px; }
}

/* ============================ pricing ============================ */
.pricing { background: var(--blush); border-radius: 40px; margin: 0 16px; }
.pricing .wrap { max-width: 880px; }
.price-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-tile);
  padding: 44px 48px;
}
.toggle {
  display: inline-flex; background: var(--paper); border-radius: 999px;
  padding: 5px; gap: 4px; margin-bottom: 34px;
  border: 1.5px solid rgba(33,29,28,.1);
}
.toggle button {
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  border: none; background: transparent; color: var(--ink-soft);
  padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: all .18s;
}
.toggle button.on { background: var(--ink); color: var(--paper); }
.toggle .save {
  font-size: .7rem; font-weight: 600; color: var(--coral-deep);
  background: var(--coral-soft); padding: .1rem .5rem; border-radius: 999px; margin-left: 6px;
}
.seats-read {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px;
  font-family: var(--display);
}
.seats-num { font-weight: 900; font-size: clamp(3rem, 7vw, 4.6rem); letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.seats-lbl { font-weight: 600; font-size: 1.1rem; color: var(--ink-soft); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 999px;
  background: linear-gradient(to right, var(--coral) 0%, var(--coral) var(--fill, 20%), #efe4dc var(--fill, 20%), #efe4dc 100%);
  outline: none; margin: 26px 0 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--coral);
  box-shadow: 0 4px 12px rgba(232,92,54,.4);
  cursor: grab;
  transition: transform .15s var(--ease-pop);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--coral);
  cursor: grab;
}
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin-bottom: 16px; }
.price-big {
  margin-left: auto; text-align: right;
  font-weight: 900; font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.02em;
  color: var(--coral-deep); line-height: 1;
}
.price-big small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: .8rem; letter-spacing: 0; color: var(--ink-soft); margin-top: 6px;
}
.tiers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.tier {
  flex: 1; min-width: 104px; text-align: center; padding: 10px 8px;
  border: 1.5px solid rgba(33,29,28,.12); border-radius: 14px;
  transition: border-color .2s, background .2s; text-decoration: none;
}
.tier b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.tier i { font-style: normal; font-size: .72rem; color: var(--ink-soft); }
.tier.on { border-color: var(--coral); background: var(--coral-soft); }
.tier.on b { color: var(--coral-deep); }
.tier--sales { border-style: dashed; }
.tier--sales b { color: var(--ink-soft); }
.price-line { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.price-note { font-size: .85rem; color: var(--ink-soft); }
.price-policy {
  margin-top: 26px; padding-top: 22px; border-top: 1.5px dashed rgba(33,29,28,.14);
  font-size: .85rem; color: var(--ink-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px;
}
.price-policy li { list-style: none; display: flex; gap: 8px; }
.price-policy li::before { content: '·'; color: var(--coral-deep); font-weight: 900; }

/* ============================= proof ============================= */
.proof { padding: 72px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.stat {
  padding: 36px 20px; border-radius: var(--radius);
  border: 1.5px solid rgba(33,29,28,.1);
}
.stat b {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3.2rem); display: block; line-height: 1;
  margin-bottom: 8px;
}
.stat:nth-child(1) b { color: var(--coral-deep); }
.stat:nth-child(2) b { color: var(--red); }
.stat:nth-child(3) b { color: var(--ink); }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ============================== cta ============================== */
.cta-band {
  background: var(--ink); color: var(--paper);
  border-radius: 40px; margin: 0 16px;
  position: relative; overflow: hidden;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; max-width: 760px; }
.cta-band h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05;
  margin-bottom: 18px; letter-spacing: -.01em;
}
.cta-band .hl::after { background: var(--coral); opacity: .9; }
.cta-band p { color: rgba(253,249,245,.7); margin-bottom: 34px; font-size: 1.1rem; }
.cta-deco {
  position: absolute; border-radius: 50%;
  pointer-events: none;
}
.cta-deco--1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(247,122,86,.35), transparent 70%); top: -80px; left: -60px; }
.cta-deco--2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,108,196,.28), transparent 70%); bottom: -90px; right: -40px; }
.cta-deco--3 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(255,186,18,.3), transparent 70%); bottom: 30px; left: 22%; }

/* ============================= footer ============================ */
footer { padding: 56px 0 44px; }
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot img { height: 28px; opacity: .85; }
.foot-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot-links a { font-size: .85rem; color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-copy { width: 100%; font-size: .78rem; color: var(--ink-soft); margin-top: 18px; }

/* ====================== auth (login/signup) ====================== */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 60px 24px; }
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-tile); padding: 42px 40px;
}
.auth-card h1 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; margin-bottom: 8px; }
.auth-card > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: .8rem 1rem; font-size: .98rem; font-family: var(--body);
  border: 1.5px solid rgba(33,29,28,.14); border-radius: 12px;
  background: var(--paper); transition: border .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.field .suffix { display: flex; align-items: center; }
.field .suffix input { border-radius: 12px 0 0 12px; border-right: none; }
.field .suffix span {
  padding: .8rem .9rem; font-size: .9rem; color: var(--ink-soft);
  background: var(--blush); border: 1.5px solid rgba(33,29,28,.14); border-left: none;
  border-radius: 0 12px 12px 0; white-space: nowrap;
}
.auth-card .btn { width: 100%; margin-top: 10px; }
.auth-alt { text-align: center; font-size: .85rem; color: var(--ink-soft); margin-top: 20px; }
.auth-alt a { color: var(--coral-deep); font-weight: 600; }

/* ============================ responsive ========================= */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .builder { transform: none; max-width: 480px; }
  .tile, .tile--wide { grid-column: span 6; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .tile, .tile--wide { grid-column: span 12; }
  .proof-grid { grid-template-columns: 1fr; }
  .price-card { padding: 30px 22px; }
  .price-policy { grid-template-columns: 1fr; }
  .pricing, .cta-band { margin: 0 8px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
