/*
 * CavaNexa — cavanexa.com
 * Palette = the approved brand tokens (packages/design-tokens/src/colors.ts).
 * Type: Fraunces (editorial display) + Inter (text), self-hosted, SIL OFL 1.1.
 * No external requests, no inline styles (strict CSP in _headers).
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-opsz-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

:root {
  /* brand tokens */
  --wine: #6b1f2e;
  --wine-deep: #4a1520;
  --gold: #b08a4a;
  --ivory: #faf7f2;
  --cream: #f1eae0;
  --cream-deep: #e6dccf;
  --ink: #221f1e;
  --ink-2: #5c5653;
  --ink-3: #8c8580;

  /* derived */
  --rule: rgba(34, 31, 30, 0.14);
  --rule-light: rgba(250, 247, 242, 0.2);
  --on-dark: rgba(250, 247, 242, 0.86);
  --on-dark-2: rgba(250, 247, 242, 0.7);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --head-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --section: clamp(96px, 13vw, 200px);

  /* 2 KB tileable grain, drawn with an SVG turbulence filter */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 8px);
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--wine);
  color: var(--ivory);
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left))
    max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus {
  transform: none;
}

/* ---------- shared type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  word-spacing: 0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 1.75rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker span {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.kicker span::after {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kicker--dark {
  color: var(--gold);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--head-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}
.masthead.is-scrolled {
  background: rgba(250, 247, 242, 0.8);
  border-bottom-color: var(--rule);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

/* Official logo (Concept B): CN monogram under a cellar arch + Fraunces wordmark.
   The inline mark is written by tools/gen-logo.mjs and drawn in currentColor. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  text-decoration: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: none;
}
.nav ul {
  display: flex;
  gap: clamp(20px, 2.4vw, 36px);
}
.nav a,
.footer a,
.company__mail {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition:
    background-size 0.45s var(--ease),
    color 0.3s var(--ease);
}
.nav a {
  padding-block: 4px;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background-size: 100% 1px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status__year {
  margin-left: -3px;
}
.status__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wine);
}
.status__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--wine);
  opacity: 0;
  animation: ping 3.2s var(--ease) 1.8s infinite;
}

@media (max-width: 399px) {
  .masthead__inner {
    gap: 12px;
  }
  .status {
    padding-inline: 10px;
    letter-spacing: 0.1em;
  }
  .status__long {
    display: none;
  }
}

@media (min-width: 1040px) {
  .nav {
    display: block;
  }
}

/* ---------- 1 · hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(1100px 700px at 80% 35%, rgba(230, 220, 207, 0.7), transparent 65%),
    var(--ivory);
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(28px, 6vw, 64px);
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
  color: var(--wine);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
}
.hero__brand::before {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(3.1rem, 1.4rem + 6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  word-spacing: 0.08em;
}
.hero__line {
  display: block;
  overflow: hidden;
  /* room for italic overhang and descenders inside the clipping box */
  padding: 0.04em 0.08em 0.1em 0;
  margin-bottom: -0.1em;
}
.hero__line > span {
  display: inline-block;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--wine);
}

.hero__lede {
  max-width: 33rem;
  margin-top: clamp(28px, 3.4vw, 40px);
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 33rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__facts li::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1px solid var(--wine);
  transform: rotate(45deg);
}

/* The stage: the cellar vault behind, the real app in front, one detail card. */
.stage {
  position: relative;
  height: 510px;
  margin: 0;
}
.stage__vault {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  max-width: 420px;
  will-change: transform;
}
.vault__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 40px rgba(74, 21, 32, 0.12));
}
.stage .phone--hero {
  --pw: 224px;
  position: absolute;
  z-index: 2;
  top: 0;
  left: 2%;
}
.float--detail {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 50%;
  width: 176px;
}
@media (max-width: 639px) {
  .float--detail {
    padding: 14px 14px 12px;
    font-size: 11.5px;
  }
}
.stage__caption {
  position: absolute;
  right: 0;
  bottom: -28px;
  color: var(--ink-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .stage {
    height: 640px;
  }
  .stage .phone--hero {
    --pw: 262px;
    left: 8%;
  }
  .float--detail {
    right: 2%;
    width: 236px;
  }
}

@media (min-width: 960px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--head-h));
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .stage {
    height: 660px;
  }
  .stage__vault {
    right: 4%;
    width: 64%;
  }
  .stage .phone--hero {
    --pw: 292px;
    top: 16px;
    left: 6%;
  }
  .float--detail {
    right: -1%;
    top: 50%;
  }
  .stage__caption {
    bottom: -6px;
  }
}

/* ---------- device system ---------- */

/* Phone: the app as it is (Inter UI, brand tokens). Everything inside scales
   with --pw so one markup serves every size. */
.phone {
  --pw: 260px;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(145deg, #2c2826, #141211);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.06),
    0 40px 70px -30px rgba(34, 31, 30, 0.6),
    0 18px 30px -18px rgba(74, 21, 32, 0.35);
}
.phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: calc(var(--pw) * 0.058);
  left: 50%;
  width: 30%;
  height: calc(var(--pw) * 0.075);
  border-radius: 999px;
  background: #0d0c0b;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 calc(var(--pw) * 0.055);
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.13);
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(var(--pw) / 23);
  line-height: 1.3;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05em 0.6em 0.4em;
  font-size: 0.8em;
  font-weight: 600;
}
.app-bar i {
  width: 1.9em;
  height: 0.85em;
  border: 1px solid var(--ink);
  border-radius: 0.25em;
  background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box;
  padding: 1px;
}
.app-title {
  margin-top: 1.4em;
  font-size: 1.75em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.app-title--detail {
  margin-top: 0.4em;
  font-size: 1.45em;
  line-height: 1.15;
}
.app-sub {
  margin-top: 0.25em;
  color: var(--ink-2);
}
.app-back {
  margin-top: 1.2em;
  color: var(--wine);
  font-weight: 500;
}
.app-seg {
  display: flex;
  margin-top: 0.9em;
  padding: 0.22em;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
}
.app-seg span {
  flex: 1;
  padding: 0.45em 0;
  border-radius: 999px;
  color: var(--ink-2);
}
.app-seg .on {
  background: #fff;
  color: var(--wine);
  box-shadow: 0 1px 3px rgba(34, 31, 30, 0.12);
}
.app-list {
  margin-top: 0.7em;
}
.app-list li {
  position: relative;
  display: grid;
  gap: 0.12em;
  padding: 0.75em 1.8em 0.75em 0;
  border-bottom: 1px solid var(--cream-deep);
}
.app-list b {
  font-size: 0.98em;
  font-weight: 600;
  line-height: 1.2;
}
.app-list span {
  color: var(--ink-2);
  font-size: 0.86em;
}
.app-list small {
  color: var(--ink-2);
  font-size: 0.78em;
}
.app-list em {
  color: var(--wine);
  font-size: 0.78em;
  font-style: normal;
  font-weight: 600;
}
/* heart and star glyphs as masks (CSP: data: images only) */
.fav,
.stars i {
  display: block;
  background: var(--cream-deep);
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
.fav {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E");
  position: absolute;
  top: 0.95em;
  right: 0.1em;
  width: 1.15em;
  height: 1.15em;
}
.fav.on {
  background: var(--wine);
}
.stars {
  display: flex;
  gap: 0.18em;
  margin-top: 0.2em;
}
.stars i {
  --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
  width: 0.95em;
  height: 0.95em;
  background: var(--wine);
}
.stars i.h {
  background: linear-gradient(90deg, var(--wine) 50%, var(--cream-deep) 50%);
}
.stars i.o {
  background: var(--cream-deep);
}
.app-list--history li {
  padding-right: 0;
}
.app-tabs {
  display: flex;
  margin: auto calc(var(--pw) * -0.055) 0;
  padding: 0.7em 0.4em 1.5em;
  border-top: 1px solid var(--cream-deep);
  background: #fff;
  font-size: 0.72em;
  font-weight: 600;
  text-align: center;
}
.app-tabs span {
  flex: 1;
  color: var(--ink-3);
}
.app-tabs span::before {
  content: '';
  display: block;
  width: 1.7em;
  height: 1.7em;
  margin: 0 auto 0.35em;
  border: 1.5px solid currentColor;
  border-radius: 0.5em;
}
.app-tabs .on {
  color: var(--wine);
}
.app-tabs .scan {
  color: var(--wine);
}
.app-tabs .scan::before {
  border-radius: 50%;
  background: var(--wine);
  border-color: var(--wine);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin-top: 0.7em;
}
.tags span {
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 0.78em;
  font-weight: 500;
}
.app-section {
  margin-top: 1.2em;
  color: var(--ink-2);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-lot {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  margin-top: 0.5em;
  padding: 0.65em 0.8em;
  border-radius: 0.7em;
  background: #fff;
  box-shadow: 0 0 0 1px var(--cream-deep);
  font-size: 0.86em;
}
.app-lot span {
  color: var(--ink-2);
  font-size: 0.9em;
}
.app-act {
  display: flex;
  justify-content: space-between;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--cream-deep);
  font-size: 0.86em;
}
.app-act span {
  color: var(--ink-2);
}
.app-cta {
  margin-top: 1em;
  padding: 0.85em;
  border-radius: 999px;
  background: var(--wine);
  color: var(--ivory);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}
.app-cta--ghost {
  margin-top: 0.3em;
  background: none;
  color: var(--wine);
}
.app-label {
  margin-top: 1.1em;
  padding: 0.6em;
  border-radius: 0.9em;
  background: linear-gradient(160deg, #3a1520, #1e0b10);
}
.app-label svg {
  display: block;
  width: 100%;
  height: 6.2em;
  fill: none;
  stroke: var(--ivory);
  stroke-opacity: 0.8;
  stroke-width: 1.2;
}
.app-label .g {
  stroke: var(--gold);
  stroke-opacity: 1;
}
.app-fields {
  margin-top: 0.6em;
}
.app-fields > div {
  padding: 0.5em 0;
  border-bottom: 1px solid var(--cream-deep);
}
.app-fields dt {
  color: var(--ink-2);
  font-size: 0.74em;
}
.app-fields dd {
  margin-top: 0.15em;
  font-size: 0.92em;
  font-weight: 500;
}
.app-fields .stepper {
  display: flex;
  align-items: center;
  gap: 0.9em;
}
.app-fields .stepper i {
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--cream-deep);
  color: var(--wine);
  font-style: normal;
}
.app-fields .empty {
  height: 1.2em;
}

/* Floating product cards around the devices */
.float {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 1px rgba(34, 31, 30, 0.06),
    0 30px 50px -28px rgba(74, 21, 32, 0.5),
    0 10px 20px -12px rgba(34, 31, 30, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.float--detail {
  padding: 18px 18px 16px;
  font-size: 13px;
}
.float__kicker {
  color: var(--wine);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.float__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 1.32em;
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.float__sub {
  margin-top: 4px;
  color: var(--ink-2);
}
.float__rows {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--cream-deep);
}
.float__rows dt {
  color: var(--ink-2);
  font-size: 0.8em;
}
.float__rows dd {
  font-family: var(--serif);
  font-size: 1.5em;
}
.float__action {
  margin-top: 12px;
  padding: 9px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--ivory);
  font-size: 0.9em;
  font-weight: 600;
  text-align: center;
}
/* ---------- 2 · la idea ---------- */

.idea {
  padding-block: var(--section);
}
.idea__grid {
  display: grid;
  gap: 32px;
}
.memory {
  margin-block: clamp(40px, 5vw, 64px);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.1rem, 1.1rem + 4vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.memory__line:nth-child(2) {
  padding-left: 0.6em;
}
.memory__line:nth-child(3) {
  padding-left: 1.2em;
}
.memory__line:nth-child(4) {
  padding-left: 0.6em;
}
.memory__line:nth-child(5) {
  color: var(--wine);
}
.idea__close {
  max-width: 38rem;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.65;
}
.idea__close strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 960px) {
  .idea__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
  }
  .idea__grid > .kicker {
    grid-column: 1 / 4;
    align-self: start;
    margin-top: 1.4rem;
  }
  .idea__body {
    grid-column: 4 / 13;
  }
}

/* ---------- 3 · cómo funciona ---------- */

.how {
  position: relative;
  padding-block: clamp(120px, 15vw, 232px);
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(176, 138, 74, 0.13), transparent 62%),
    radial-gradient(800px 600px at 0% 100%, rgba(107, 31, 46, 0.5), transparent 70%),
    var(--wine-deep);
  color: var(--ivory);
  isolation: isolate;
}
.how::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.09;
  pointer-events: none;
}
.how :focus-visible {
  outline-color: var(--gold);
}
.how__head .display {
  margin-top: 28px;
}

/* Four niches on one cellar floor: the same arch as the hero, at small scale. */
.route {
  position: relative;
  display: grid;
  gap: 56px;
  margin-top: clamp(80px, 10vw, 152px);
}
.route__stop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 28px;
  align-items: start;
  align-content: start;
}
.route__niche {
  position: relative;
  grid-row: 1 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 124px;
  border: 1px solid rgba(250, 247, 242, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(250, 247, 242, 0.07), rgba(250, 247, 242, 0) 75%), var(--wine-deep);
}
.route__niche::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.route__glyph {
  width: 72px;
  height: 72px;
  margin-top: 12px;
  fill: none;
  stroke: var(--ivory);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route__glyph .faint {
  stroke-opacity: 0.45;
}
.route__glyph .accent {
  stroke: var(--gold);
}
.route__glyph .fill {
  fill: var(--gold);
  stroke: none;
}
.route__n {
  padding-top: 6px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
}
.route__name {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem);
  font-weight: 360;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.route__text {
  max-width: 17rem;
  margin-top: 12px;
  color: var(--on-dark-2);
  font-size: 0.975rem;
  line-height: 1.6;
}

.how__manual {
  margin-top: clamp(80px, 10vw, 136px);
  padding-top: 28px;
  border-top: 1px solid var(--rule-light);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
  }
  /* the shared floor the four niches stand on */
  .route::before,
  .route::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 152px;
    height: 1px;
    background: var(--rule-light);
  }
  .route::after {
    background: var(--gold);
    opacity: 0.55;
    transform-origin: left;
  }
  .route__stop {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .route__niche {
    grid-row: auto;
    width: 120px;
    height: 152px;
    margin-bottom: 36px;
  }
  .route__niche::after {
    left: -16px;
    right: -16px;
  }
  .route__glyph {
    width: 88px;
    height: 88px;
    margin-top: 16px;
  }
}

/* ---------- 3 · nuestros principios (manifesto) ---------- */

.values {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--ivory), var(--cream) 140%);
}
.values__head .display {
  max-width: 16ch;
  margin-top: 28px;
}
.values__head .lede {
  max-width: 40rem;
}
.manifesto {
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 3px double rgba(34, 31, 30, 0.6);
}
.manifesto__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  padding-block: clamp(28px, 3.2vw, 44px);
  border-bottom: 1px solid var(--rule);
}
.manifesto__n {
  grid-row: 1 / 3;
  padding-top: 0.9em;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.manifesto__n::after {
  content: '';
  display: block;
  width: 14px;
  height: 1px;
  margin-top: 10px;
  background: var(--gold);
}
.manifesto__claim {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.75rem, 1.1rem + 2.3vw, 3.125rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.manifesto__text {
  max-width: 26rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 960px) {
  .manifesto__item {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 20rem);
    align-items: baseline;
    gap: 0 32px;
  }
  .manifesto__n {
    grid-row: auto;
    padding-top: 0;
  }
  .manifesto__text {
    font-size: 1rem;
  }
}

/* the product-trust note, secondary, under "Identificación" */
.route__note {
  max-width: 17rem;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule-light);
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.route__note b {
  color: var(--on-dark);
  font-weight: 600;
}

/* ---------- 4 · tu cava, recordada ---------- */

.cellar {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--ivory), var(--ivory) 40%, #f6f1e9);
  overflow: clip;
}
.cellar__grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.cellar__aside .display {
  margin-top: 28px;
}

/* the main impression: the history screen + one wine's story over time */
.memoir {
  position: relative;
  margin: 0;
}
.memoir .phone--cellar {
  --pw: 236px;
  margin: 0 auto;
}
.story {
  position: relative;
  z-index: 2;
  margin: -64px 0 0 auto;
  width: min(100%, 330px);
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(34, 31, 30, 0.06),
    0 34px 60px -32px rgba(74, 21, 32, 0.55),
    0 10px 20px -12px rgba(34, 31, 30, 0.2);
  font-size: 13px;
}
.story__wine {
  font-family: var(--serif);
  font-size: 1.3em;
  line-height: 1.15;
}
.story__wine span {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.77em;
}
.story__line {
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
}
.story__line::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold), rgba(176, 138, 74, 0.2));
}
.story__line li {
  position: relative;
  display: grid;
  gap: 2px;
  padding-block: 9px;
  border-bottom: 1px solid var(--cream-deep);
}
.story__line li:last-child {
  border-bottom: 0;
}
.story__line li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 14px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #fff;
}
.story__line time {
  color: var(--ink-2);
  font-size: 0.85em;
}
.story__line b {
  font-weight: 600;
}
.story__line span {
  color: var(--ink-2);
}
.story__line .stars {
  font-size: 13px;
}
.story__line q {
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08em;
  quotes: '“' '”';
}
.story__fav::before {
  background: var(--wine) !important;
  border-color: var(--wine) !important;
}
.memoir__caption {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: right;
}

/* the six capabilities, now a supporting index under the story */
.ledger {
  border-top: 3px double rgba(34, 31, 30, 0.6);
}
.ledger--index {
  display: grid;
  margin-top: clamp(64px, 8vw, 120px);
}
.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px 12px;
  padding-block: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--rule);
}
.ledger__n {
  grid-row: 1 / 3;
  padding-top: 0.6em;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.ledger__title {
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.ledger__text {
  max-width: 24rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .memoir .phone--cellar {
    --pw: 262px;
    margin: 0;
  }
  .story {
    position: absolute;
    right: 0;
    bottom: 48px;
    margin: 0;
  }
}
@media (min-width: 960px) {
  .cellar__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
  .memoir {
    padding-left: 6%;
  }
  .memoir .phone--cellar {
    --pw: 280px;
  }
  .story {
    right: 2%;
    bottom: 64px;
    width: 340px;
  }
  .ledger--index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
  }
  .ledger__text {
    font-size: 0.975rem;
  }
}

/* how: heading + the scan review on the same row */
.how__top {
  display: grid;
  gap: 56px;
  align-items: center;
}
.phone--how {
  --pw: 244px;
  justify-self: center;
}
@media (min-width: 900px) {
  .how__top {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .phone--how {
    --pw: 268px;
    margin-right: 6%;
  }
}

/* ---------- dispositivos ---------- */

.devices {
  padding-block: var(--section);
  background:
    radial-gradient(900px 500px at 60% 55%, rgba(230, 220, 207, 0.75), transparent 70%),
    var(--ivory);
  overflow: clip;
}
.devices__head {
  max-width: 46rem;
}
.devices__head .display {
  margin-top: 28px;
}

.suite {
  position: relative;
  height: 470px;
  margin: clamp(56px, 7vw, 96px) 0 0;
}
.concept {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border: 1px dashed rgba(107, 31, 46, 0.55);
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.95);
  color: var(--wine);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.laptop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.laptop__lid {
  position: relative;
  padding: 2.2%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(160deg, #2c2826, #141211);
  box-shadow: 0 40px 70px -40px rgba(34, 31, 30, 0.6);
}
.laptop__base {
  width: 104%;
  height: 12px;
  margin-left: -2%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #d9d3cc, #a49d96);
}
.browser {
  overflow: hidden;
  border-radius: 6px;
  background: var(--ivory);
  aspect-ratio: 16 / 9.6;
  font-family: var(--sans);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
}
.browser__bar i,
.win__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-deep);
}
.browser__bar span {
  margin-left: 12px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink-2);
  font-size: 9px;
}
.browser__body {
  padding: 4% 5%;
  font-size: clamp(7px, 1vw, 12px);
}
.web-h {
  font-family: var(--serif);
  font-size: 2.1em;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.web-h small {
  margin-left: 0.6em;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.42em;
  letter-spacing: 0;
}
.web-table {
  width: 100%;
  margin-top: 1.2em;
  border-collapse: collapse;
}
.web-table th {
  padding: 0.6em 0.4em;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.web-table td {
  padding: 0.8em 0.4em;
  border-bottom: 1px solid var(--cream-deep);
}
.web-table td:first-child {
  font-weight: 600;
}

.win {
  position: absolute;
  display: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--ivory);
  box-shadow:
    0 0 0 1px rgba(34, 31, 30, 0.1),
    0 30px 60px -36px rgba(34, 31, 30, 0.6);
  font-family: var(--sans);
}
.win__bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: var(--cream);
}
.win__body {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 210px;
}
.win__side {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--cream-deep);
  color: var(--ink-2);
  font-size: 11px;
}
.win__side b {
  color: var(--wine);
}
.win__main {
  padding: 14px;
}
.win__h {
  font-family: var(--serif);
  font-size: 18px;
}
.win__row {
  display: grid;
  grid-template-columns: 3fr 2fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.win__row span {
  height: 7px;
  border-radius: 4px;
  background: var(--cream-deep);
}

.phone--suite {
  --pw: 168px;
  position: absolute;
  z-index: 3;
  right: 0;
  top: 120px;
}
.phone--suite .phone__screen {
  font-size: calc(var(--pw) / 21);
}

.share {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: calc(100% - 184px);
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(34, 31, 30, 0.06),
    0 30px 50px -28px rgba(74, 21, 32, 0.5);
}
.share .concept {
  position: static;
  display: inline-block;
  margin-top: 12px;
  white-space: normal;
}
.share__avatars {
  display: flex;
}
.share__avatars i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--wine);
  color: var(--ivory);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.share__avatars i + i {
  background: var(--gold);
}
.share__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.25rem;
}
.share__text {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .suite {
    height: 560px;
  }
  .laptop {
    left: 6%;
    width: 80%;
  }
  .phone--suite {
    --pw: 200px;
    right: 2%;
    top: 150px;
  }
  .share {
    width: 240px;
  }
}
@media (min-width: 960px) {
  .suite {
    height: 660px;
  }
  .win {
    display: block;
    top: 0;
    left: 0;
    width: 38%;
  }
  .laptop {
    top: 60px;
    left: 18%;
    width: 60%;
  }
  .phone--suite {
    --pw: 230px;
    right: 4%;
    top: 150px;
  }
  .share {
    left: 4%;
    bottom: 40px;
    width: 250px;
  }
}

.surfaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 3px double rgba(34, 31, 30, 0.6);
}
.surface {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 16px 24px 0;
  border-bottom: 1px solid var(--rule);
}
.surface svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.surface__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}
.surface__status {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.surface--now .surface__status {
  background: var(--wine);
  color: var(--ivory);
}
.surface--future svg {
  stroke: var(--ink-3);
}
.surface--future .surface__status {
  border: 1px dashed rgba(107, 31, 46, 0.55);
  color: var(--wine);
}
@media (min-width: 900px) {
  .surfaces {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .surface {
    padding: 28px 24px 8px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .surface:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- chile ---------- */

.chile {
  padding-bottom: var(--section);
  background: var(--ivory);
}
.chile__art {
  position: relative;
  height: clamp(300px, 44vw, 620px);
  overflow: hidden;
}
.land__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chile__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  pointer-events: none;
}
/* a thin meridian: Chile as one long line, north to south */
.chile__meridian {
  position: absolute;
  z-index: 1;
  top: 12%;
  bottom: 12%;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(250, 247, 242, 0),
    rgba(250, 247, 242, 0.85) 20%,
    rgba(250, 247, 242, 0.85) 80%,
    rgba(250, 247, 242, 0)
  );
}
.chile__meridian span {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--ivory);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.chile__grid {
  display: grid;
  gap: 32px;
  padding-top: clamp(56px, 7vw, 104px);
}
.chile__head .display {
  margin-top: 28px;
  max-width: 15ch;
}
.chile__body .lede {
  max-width: 34rem;
  margin-top: 0;
}
.chile__statement {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.chile__statement em {
  color: var(--wine);
  font-style: italic;
}
@media (min-width: 960px) {
  .chile__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 64px;
    align-items: end;
  }
}

/* ---------- membresías (DRAFT_PRICING, see tools/site-config.mjs) ---------- */

.plans {
  padding-block: var(--section);
  background: var(--cream);
}
.plans__head {
  max-width: 44rem;
}
.plans__head .display {
  margin-top: 28px;
}
.plans__list {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 6px;
  background: var(--ivory);
  box-shadow: 0 0 0 1px var(--rule);
}
.plan__name {
  color: var(--wine);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}
.plan__amount {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.75rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}
.plan__period {
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.plan__lede {
  margin-top: 10px;
  color: var(--ink-2);
}
.plan__features {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  margin-bottom: 36px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
}
.plan__features li {
  display: flex;
  gap: 12px;
}
.plan__features li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.8em;
  background: var(--gold);
}
.plan__cta {
  margin-top: auto;
  padding: 14px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--ivory);
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
}
.plan__cta--soon {
  background: none;
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink-2);
}
.plan--feature {
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(176, 138, 74, 0.18), transparent 70%),
    var(--wine-deep);
  color: var(--ivory);
  box-shadow: 0 40px 70px -40px rgba(74, 21, 32, 0.8);
}
.plan--feature .plan__name {
  color: var(--gold);
}
.plan--feature .plan__period,
.plan--feature .plan__lede {
  color: var(--on-dark-2);
}
.plan--feature .plan__features {
  border-top-color: var(--rule-light);
}
.plan--feature .plan__cta--soon {
  box-shadow: inset 0 0 0 1px var(--rule-light);
  color: var(--on-dark);
}
.plans__note {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-align: center;
}
@media (min-width: 900px) {
  .plans__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* ---------- 5 · alpha ---------- */

.alpha {
  padding-block: clamp(88px, 11vw, 168px);
  background: var(--cream);
}
.alpha__arch {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  padding: clamp(136px, 15.5vw, 200px) clamp(28px, 8vw, 128px) clamp(72px, 9vw, 120px);
  border: 1px solid rgba(176, 138, 74, 0.5);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.75), rgba(250, 247, 242, 0) 85%);
  text-align: center;
}
/* a second, finer arch inside the first */
.alpha__arch::before {
  content: '';
  position: absolute;
  inset: 14px 14px 0;
  border: 1px solid rgba(176, 138, 74, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.alpha__arch::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(176, 138, 74, 0.5),
    rgba(176, 138, 74, 0) 18%,
    rgba(176, 138, 74, 0) 82%,
    rgba(176, 138, 74, 0.5)
  );
}
.alpha__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.alpha__title {
  max-width: 22ch;
  margin: 36px auto 0;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.alpha__note {
  margin-top: 36px;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- 6 · empresa ---------- */

.company {
  padding-block: var(--section) clamp(80px, 10vw, 144px);
}
.company__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.company__seal {
  flex: none;
  width: clamp(72px, 9vw, 116px);
  height: auto;
}
.company__title {
  max-width: 15ch;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.5rem, 1.2rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.036em;
  word-spacing: 0.04em;
}
.company__sep {
  color: var(--gold);
}
.company__country {
  font-style: italic;
  color: var(--wine);
}
.company__registry {
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 3px double rgba(34, 31, 30, 0.6);
}
.company__registry > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.company__registry dt {
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.company__registry dd {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 380;
  letter-spacing: -0.015em;
}
.company__mail {
  padding-bottom: 3px;
  overflow-wrap: anywhere;
  background-size: 100% 1px;
}
.company__mail:hover,
.company__mail:focus-visible {
  color: var(--wine);
  background-size: 100% 2px;
}

@media (min-width: 960px) {
  .company__registry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .company__registry > div {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 28px 8px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }
  .company__registry > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

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

.footer {
  padding-block: 64px calc(40px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.footer :focus-visible {
  outline-color: var(--gold);
}
.footer__grid {
  display: grid;
  gap: 40px;
}
.footer__brand p {
  margin-top: 10px;
  color: var(--on-dark-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
}
.footer__label {
  color: var(--on-dark-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
/* store slots: inactive until the app is published (official badges then) */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(250, 247, 242, 0.28);
  color: var(--on-dark);
  line-height: 1.15;
}
.store svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.store span {
  display: grid;
  font-size: 1rem;
  font-weight: 600;
}
.store small {
  color: var(--on-dark-2);
  font-size: 0.6875rem;
  font-weight: 500;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social__item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(250, 247, 242, 0.28);
}
.social__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--on-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.social__item .dot {
  fill: var(--on-dark);
  stroke: none;
}
.footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 32px;
}
.footer__legal a {
  display: inline-block;
  padding-block: 10px;
  color: var(--on-dark);
}
.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--ivory);
  background-size: 100% 1px;
}
.footer__copy {
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  color: var(--on-dark-2);
  font-size: 0.875rem;
}
.footer__copy span {
  display: block;
}

@media (min-width: 960px) {
  .footer {
    font-size: 0.875rem;
  }
  .footer__grid {
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 40px 72px;
  }
  .footer__legal ul {
    flex-direction: column;
    gap: 0;
  }
  .footer__legal a {
    padding-block: 6px;
  }
  .footer__copy {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
  }
}

/* ---------- v3: Concept B logo, la idea artifact, scan pill, Chile caption, footer groups ---------- */

.logo__img {
  display: block;
  width: auto;
  height: 40px;
}
.logo--footer .logo__img {
  height: 44px;
}
@media (max-width: 399px) {
  .masthead .logo__img {
    height: 34px;
  }
}

/* hero: the app leads; the vault becomes atmosphere behind it */
.stage__vault {
  opacity: 0.42;
  filter: saturate(0.7);
  -webkit-mask: radial-gradient(ellipse 70% 62% at 52% 46%, #000 38%, transparent 82%);
  mask: radial-gradient(ellipse 70% 62% at 52% 46%, #000 38%, transparent 82%);
}
.stage::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 6%;
  top: 14%;
  bottom: 4%;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(74, 14, 26, 0.1), transparent 70%);
  pointer-events: none;
}
.float--scan {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  color: var(--wine);
  font-size: 0.8125rem;
  font-weight: 600;
}
.float--scan svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 640px) {
  .float--scan {
    display: inline-flex;
    right: 4%;
    top: 6%;
  }
}

/* la idea: the bottle-memory artifact */
.idea__side {
  display: contents;
}
.idea__body {
  order: 2;
}
.artifact {
  order: 3;
  margin: 8px 0 0;
}
.artifact__svg {
  display: block;
  width: min(100%, 320px);
  height: auto;
}
.artifact__notes path {
  stroke: var(--gold);
  stroke-width: 1;
}
.artifact__notes circle {
  fill: var(--ivory);
  stroke: var(--gold);
}
.artifact__notes text {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
}
.artifact__notes text.sub {
  fill: var(--ink-2);
  font-family: var(--sans);
  font-size: 12.5px;
}
.artifact__caption {
  max-width: 18rem;
  margin-top: 16px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
}
@media (min-width: 960px) {
  .idea__side {
    display: block;
    grid-column: 1 / 5;
    align-self: start;
  }
  .idea__grid > .idea__body {
    grid-column: 5 / 13;
  }
  .artifact {
    margin-top: 56px;
  }
}

/* chile: one sober line over the landscape */
.chile__caption {
  position: absolute;
  z-index: 1;
  left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  bottom: clamp(20px, 4vw, 48px);
  max-width: 16ch;
  color: var(--ivory);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(1.375rem, 1rem + 1.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(42, 9, 16, 0.5);
}

/* footer: Descarga and Redes as separate groups */
.footer__soon {
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) {
  .footer__soon {
    grid-auto-flow: column;
    justify-content: start;
    gap: 56px;
  }
}

/* ---------- motion ---------- */

@keyframes rise {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fill-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes write {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
@keyframes ping {
  0% {
    opacity: 0.7;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* hero entrance: pure CSS, independent of JS */
  .hero__brand {
    animation: fade-up 0.9s var(--ease) both;
  }
  .hero__line > span {
    animation: rise 1.15s var(--ease) both;
  }
  .hero__line:nth-child(2) > span {
    animation-delay: 0.08s;
  }
  .hero__line:nth-child(3) > span {
    animation-delay: 0.18s;
  }
  .hero__line:nth-child(4) > span {
    animation-delay: 0.28s;
  }
  .hero__lede {
    animation: fade-up 1s var(--ease) 0.55s both;
  }
  .hero__facts {
    animation: fade-up 1s var(--ease) 0.7s both;
  }

  .vault__frame,
  .vault__inner {
    stroke-dasharray: 1;
    animation: draw 2.2s var(--ease) 0.1s both;
  }
  .vault__back {
    animation: fade-up 1.2s var(--ease) both;
  }
  .bt {
    transform-box: fill-box;
    transform-origin: center;
    animation: fill-in 0.8s var(--ease) both;
  }
  .r0 {
    animation-delay: 0.5s;
  }
  .r1 {
    animation-delay: 0.58s;
  }
  .r2 {
    animation-delay: 0.66s;
  }
  .r3 {
    animation-delay: 0.74s;
  }
  .r4 {
    animation-delay: 0.82s;
  }
  .r5 {
    animation-delay: 0.9s;
  }
  .r6 {
    animation-delay: 0.98s;
  }
  .r7 {
    animation-delay: 1.06s;
  }
  .r8 {
    animation-delay: 1.14s;
  }
  .r9 {
    animation-delay: 1.22s;
  }
  .r10 {
    animation-delay: 1.3s;
  }
  .r11 {
    animation-delay: 1.38s;
  }
  .r12 {
    animation-delay: 1.46s;
  }
  .vault__depth {
    animation: fade-up 1.2s var(--ease) both;
  }
  /* the app arrives in front of the filled vault, then its context */
  .stage .phone--hero {
    animation: lift 1.2s var(--ease) 0.9s both;
  }
  .float--detail {
    animation: fade-up 0.9s var(--ease) 1.6s both;
  }
  .float--scan {
    animation: fade-up 0.9s var(--ease) 1.9s both;
  }
  .stage__caption {
    animation: fade-up 0.9s var(--ease) 2.1s both;
  }

  /* scroll reveals: only once site.js has run (no-JS = everything visible) */
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 1s var(--ease),
      transform 1s var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  /* the "forgetting" lines come back into focus as they are read */
  .js .memory__line {
    opacity: 0.14;
    filter: blur(3px);
    transform: translateX(-12px);
    transition:
      opacity 1.4s var(--ease),
      filter 1.4s var(--ease),
      transform 1.4s var(--ease);
  }
  .js .memory__line.is-in {
    opacity: 1;
    filter: none;
    transform: none;
  }

  /* the floor draws itself, then each niche appears in turn */
  .js .route.reveal {
    opacity: 1;
    transform: none;
  }
  .js .route::after {
    transform: scaleX(0);
    transition: transform 2.2s var(--ease) 0.2s;
  }
  .js .route.is-in::after {
    transform: none;
  }
  .js .route__stop {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 1s var(--ease),
      transform 1s var(--ease);
  }
  .js .route.is-in .route__stop {
    opacity: 1;
    transform: none;
  }
  .js .route.is-in .route__stop:nth-child(2) {
    transition-delay: 0.4s;
  }
  .js .route.is-in .route__stop:nth-child(3) {
    transition-delay: 0.8s;
  }
  .js .route.is-in .route__stop:nth-child(4) {
    transition-delay: 1.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .status__dot::after {
    display: none;
  }
}

/* ---------- 404 ---------- */

.notfound__main {
  padding-block: clamp(64px, 12vw, 160px);
}
.notfound__main .display {
  max-width: 14ch;
  margin-top: 28px;
}
.notfound__back {
  margin-top: 40px;
}
