/*
 * CaboLink placeholder ("muy pronto") page. A self-contained cut of the demo landing's look
 * (demo/public/assets/css/brand.css + site.css): "Agave y crepúsculo" palette, Cormorant Garamond + Jost
 * + Mrs Saint Delafield, photo hero with the same light and water motion, the newsletter band's form.
 */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-var.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-var.woff2') format('woff2');
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Mrs Saint Delafield';
  src: url('../fonts/saint-delafield.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* palette C · Agave y crepúsculo */
  --c-bone: #F5F3EE;   --c-paper: #FBFAF7;  --c-mist: #DCDFD4;  --c-mist-soft: #ECEDE6;
  --c-agave: #6F7D66;  --c-agave-700: #5A6752; --c-cactus: #27352C; --c-cactus-900: #1C2620;
  --c-lilac-700: #857B90;
  --c-ink: #1B1D1A;    --c-ink-muted: #4F564B; --c-ink-subtle: #6B7166;

  --font-sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;

  --bg: var(--c-bone); --surface: var(--c-paper); --border: #DEDFD5;
  --text: var(--c-ink); --text-muted: var(--c-ink-muted); --text-subtle: var(--c-ink-subtle);
  --link: var(--c-agave-700); --ring: var(--c-agave); --faded: var(--c-lilac-700);

  --text-2xs: 0.6875rem; --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --radius-sm: 2px;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 767px) { html { font-size: 115%; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-weight: 300; font-size: var(--text-base); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; color: var(--text); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 16px; height: 16px; flex: 0 0 auto; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; line-height: 1; }
.fade { color: var(--faded); }
.eyebrow { font-size: var(--text-2xs); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-subtle); }

/* ---------------------------------------------------------------- header over the hero */
.site-top { position: absolute; z-index: 20; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; padding: 18px 16px; color: #fff; }
@media (min-width: 1024px) { .site-top { padding: 22px 40px; } }
.wordmark { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.wordmark .mark { width: 48px; height: 48px; }
.wordmark span { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.34em; text-transform: uppercase; padding-left: 0.34em; }
.wordmark.dark { color: var(--c-ink); flex-direction: row; gap: 12px; }
.wordmark.dark .mark { width: 36px; height: 36px; }
.wordmark.dark span { font-size: 1.1rem; padding-left: 0; }
.top-lang { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; background: none; color: #fff; font: inherit; font-size: var(--text-sm); letter-spacing: 0.08em; cursor: pointer; }
.top-lang .ic { width: 16px; height: 16px; }
@media (max-width: 479px) { .wordmark .mark { width: 38px; height: 38px; } .wordmark span { font-size: 1.05rem; } .top-lang .ic { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; color: #fff; text-align: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(12 14 12 / 0.45) 0%, rgb(12 14 12 / 0) 26%, rgb(12 14 12 / 0) 34%, rgb(12 14 12 / 0.55) 58%, rgb(12 14 12 / 0.82) 100%); }
.hero-copy { position: relative; width: 100%; max-width: 50rem; padding: 132px 16px 116px; }
@media (min-width: 768px) { .hero-copy { padding-bottom: 140px; } }
.hero-script { margin: 0 0 6px; font-size: 2.8rem; color: rgb(255 255 255 / 0.95); text-shadow: 0 2px 18px rgb(0 0 0 / 0.45); }
@media (min-width: 768px) { .hero-script { font-size: 3.6rem; } }
.hero h1 { color: #fff; font-size: 2.1rem; line-height: 1.1; text-shadow: 0 2px 28px rgb(0 0 0 / 0.5); }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 3.4rem; } }
.hero-lead { max-width: 36rem; margin: 18px auto 0; font-size: var(--text-lg); line-height: 1.55; color: rgb(255 255 255 / 0.9); }

/* ---------------------------------------------------------------- newsletter (the landing band's form, centred) */
.news { width: 100%; max-width: 30rem; margin: 32px auto 0; text-align: left; }
.news-lead { margin: 0 0 12px; font-size: var(--text-sm); line-height: 1.5; color: rgb(255 255 255 / 0.86); text-align: center; }
.news-row { position: relative; display: flex; border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--radius-sm); background: rgb(255 255 255 / 0.1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; transition: border-color 0.3s, background-color 0.3s; }
.news-row:focus-within { border-color: #fff; background: rgb(255 255 255 / 0.16); }
.news input[type="email"] { flex: 1; min-width: 0; padding: 14px 16px; border: 0; background: none; color: #fff; font: inherit; font-size: var(--text-sm); outline: none; }
.news input::placeholder { color: rgb(255 255 255 / 0.62); }
.news button { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; background: var(--c-bone); color: var(--c-ink); font: inherit; font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background-color 0.3s; }
.news button:hover { background: #fff; }
.news .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-note { margin: 10px 0 0; font-size: var(--text-xs); line-height: 1.5; color: rgb(255 255 255 / 0.72); text-align: center; }
.news.is-bad .news-row { border-color: #F3C2A8; }
.news.is-bad .news-note { color: #FBE0D2; }
.news.is-busy button { opacity: 0.6; pointer-events: none; }
/* unlocked: the field gives way to the kit link */
.news-done { display: none; margin: 0; text-align: center; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; color: #fff; }
.news.is-done .news-row, .news.is-done .news-lead, .news.is-done .news-note { display: none; }
.news.is-done .news-done { display: block; }
.news-kit { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 14px 22px; border-radius: var(--radius-sm); background: var(--c-bone); color: var(--c-ink); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background-color 0.3s; }
.news-kit:hover { background: #fff; color: var(--c-ink); }
.news-kit b { font-weight: 500; }
@media (max-width: 379px) { .news button span { display: none; } }

/* ---------------------------------------------------------------- intro */
.intro { position: relative; overflow: hidden; padding-block: 72px; text-align: center; }
@media (min-width: 1024px) { .intro { padding-block: 112px; } }
.intro > .container { position: relative; }
.intro-script { margin: 0 0 8px; font-size: 3.2rem; color: var(--c-agave-700); }
@media (min-width: 768px) { .intro-script { font-size: 4rem; } }
.intro-text { max-width: 760px; margin: 0 auto; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.6; color: var(--text-muted); }
@media (min-width: 768px) { .intro-text { font-size: 1.55rem; } }
.intro-text em { font-style: normal; color: var(--c-ink); background: linear-gradient(var(--c-agave), var(--c-agave)) no-repeat 0 94% / 100% 1px; }
.intro-title { margin: 64px 0 36px; font-size: 2.25rem; line-height: 1.08; }
@media (min-width: 768px) { .intro-title { font-size: 3rem; } }
.sides { display: grid; gap: 32px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; text-align: left; }
@media (min-width: 768px) { .sides { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.sides li { padding-top: 20px; border-top: 1px solid var(--c-mist); }
.sides h3 { margin: 10px 0 8px; font-size: 1.6rem; line-height: 1.15; }
.sides p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.kit { margin-top: 56px; }
.kit-lead { margin: 0 auto; max-width: 32rem; color: var(--text-muted); line-height: 1.6; }
.kit .news { margin-top: 20px; }
/* the same form on bone: hairline field, cactus button, ink text */
.news.light .news-row { border-color: #9AA093; background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.news.light .news-row:focus-within { border-color: var(--c-cactus); background: #fff; }
.news.light input[type="email"] { color: var(--text); }
.news.light input::placeholder { color: var(--text-subtle); }
.news.light button, .news.light .news-kit { background: var(--c-cactus); color: var(--c-bone); }
.news.light button:hover, .news.light .news-kit:hover { background: var(--c-cactus-900); color: var(--c-bone); }
.news.light .news-note { color: var(--text-subtle); }
.news.light.is-bad .news-row { border-color: #A4462A; }
.news.light.is-bad .news-note { color: #8E3A20; }
.news.light .news-done { color: var(--text); }
.aura { position: absolute; border-radius: 50%; pointer-events: none; }
.aura.a { width: 640px; height: 640px; left: -240px; top: -110px; background: radial-gradient(circle, rgb(238 212 172 / 0.3), transparent 62%); animation: aura 24s ease-in-out infinite alternate; }
.aura.b { width: 620px; height: 620px; right: -220px; bottom: 20px; background: radial-gradient(circle, rgb(226 186 150 / 0.3), transparent 62%); animation: aura 28s ease-in-out -9s infinite alternate-reverse; }
@keyframes aura { to { transform: translate(110px, 40px) scale(1.1); } }

/* ---------------------------------------------------------------- footer */
.site-foot { padding: 56px 0 28px; background: var(--surface); border-top: 1px solid var(--border); font-size: var(--text-sm); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.foot-brand p { margin: 12px 0 0; color: var(--text-subtle); }
.foot-contact { display: flex; flex-direction: column; gap: 10px; }
.site-foot a { color: var(--text-muted); text-decoration: none; }
.site-foot a:hover { color: var(--link); }
.foot-legal { margin-top: 32px; font-size: var(--text-xs); color: var(--text-subtle); }

/* ---------------------------------------------------------------- motion: light, water and the reader's scroll move; text stays calm */
.kb { animation: kb 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, 1%); } }
.hero-glow { position: absolute; right: -12%; top: 6%; width: 58%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgb(255 214 150 / 0.5), rgb(255 190 110 / 0.16) 35%, transparent 62%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: rise 1.1s var(--ease-out-soft) forwards; animation-delay: calc(var(--i) * 70ms + 450ms); }
.js .hero .hero-script, .js .hero .hero-lead, .js .hero .news { opacity: 0; animation: rise 1.2s var(--ease-out-soft) forwards; }
.js .hero .hero-script { animation-delay: 0.15s; } .js .hero .hero-lead { animation-delay: 1.3s; } .js .hero .news { animation-delay: 1.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; pointer-events: none; }
@media (min-width: 768px) { .waves { height: 72px; } }
.waves svg { position: absolute; inset: 0; width: 200%; max-width: none; height: 100%; }
.waves .w1 { opacity: 0.3; animation: drift 20s linear infinite; } .waves .w2 { animation: drift 12s linear infinite reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out-soft), transform 0.9s var(--ease-out-soft); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* phones, low-memory devices and Data Saver (.lite, set in <head>): decorative loops stop, nothing blurs */
.lite .kb, .lite .hero-glow, .lite .waves svg, .lite .aura { animation: none !important; }
.lite .hero-glow, .lite .motes { display: none; }
.lite .news:not(.light) .news-row { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(27 29 26 / 0.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero h1 .w, .js .hero .hero-script, .js .hero .hero-lead, .js .hero .news, .js .reveal { opacity: 1; transform: none; }
}
