/* ==========================================================================
   Spain Is Broken… And I'm Never Leaving  -  site styles
   Palette sampled from the book cover. Text/background pairs checked for
   WCAG AA contrast.
   ========================================================================== */

:root {
  --red: #D4482D;          /* cover red (decorative only) */
  --red-ui: #B53A21;       /* red used behind white text (5.8:1) */
  --yellow: #F5D156;
  --yellow-soft: #FBE9A6;
  --sea: #6B9472;
  --sea-deep: #2C5645;
  --sea-night: #22453A;
  --grass: #C5D364;
  --cream: #FFF7DD;
  --paper: #FFFCF2;
  --ink: #1B1B1B;
  --brown: #A5704F;
  --pink: #E7A3AE;
  --muted: #56554F;        /* 6.4:1 on cream */
  --g-expat: #E4573A;
  --g-spaniard: #F5D156;
  --g-abroad: #E7A3AE;
  --g-lover: #FFF7DD;

  --font-display: 'Oswald', 'Arial Narrow', 'Impact', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 16px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --header-h: 68px;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .closing :focus-visible, .inside :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.container { max-width: var(--maxw); margin: 0 auto; }
.section { padding: clamp(72px, 9vw, 124px) 24px; position: relative; overflow-x: hidden; overflow-x: clip; }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ui);
}
.eyebrow::before {
  content: ""; width: 28px; height: 14px; border: 2px solid var(--ink); border-radius: 2px;
  background: linear-gradient(var(--red) 0 25%, var(--yellow) 25% 75%, var(--red) 75%);
}
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { margin-top: 14px; }
.section-sub { margin-top: 18px; font-size: 1.15rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border: 2px solid var(--ink); border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red-ui); color: #fff; }
.btn-primary:hover { background: #a3331c; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f8dc78; }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn .ic { width: 20px; height: 20px; }
.btn[disabled] { opacity: .7; cursor: progress; }

.ic { width: 24px; height: 24px; flex: none; }

/* ---------- header (the red band of the cover) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--red-ui); color: #fff;
  border-bottom: 3px solid var(--ink); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(27,27,27,.18); }
.header-inner { max-width: var(--maxw); margin: 0 auto; height: var(--header-h); padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand svg { width: 38px; height: 30px; }
.brand small { display: block; font-size: .62em; letter-spacing: .12em; font-weight: 500; opacity: .9; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; gap: 26px; }
.nav-list a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem;
  text-decoration: none; color: #fff; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav-list a:hover { border-bottom-color: var(--yellow); }
.lang-switch { display: inline-flex; border: 2px solid #fff; border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a, .lang-switch span { padding: 5px 12px; text-decoration: none; line-height: 1.3; }
.lang-switch span { background: #fff; color: var(--red-ui); }
.lang-switch a:hover { background: rgba(255,255,255,.18); }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 2px solid #fff; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; position: relative; content: ""; transition: transform .25s, background .2s; }
.nav-toggle .bar::before { position: absolute; top: -7px; }
.nav-toggle .bar::after { position: absolute; top: 7px; }
.nav-open .nav-toggle .bar { background: transparent; }
.nav-open .nav-toggle .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--red-ui); border-bottom: 3px solid var(--ink);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 24px; margin: 0;
    display: none;
  }
  .js .nav-open .nav { display: flex; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a { display: block; padding: 14px 0; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,.25); }
  .nav .btn { width: 100%; }
  .lang-switch { align-self: flex-start; }
  .no-js .header-inner, html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 10px 24px; }
  html:not(.js) .nav { width: 100%; flex-wrap: wrap; gap: 10px 16px; margin: 0; }
  html:not(.js) .nav-list { flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 420px) { .brand small { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--yellow);
  --sea-h: clamp(120px, 19vh, 190px);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: clamp(32px, 4.5vw, 56px) 24px calc(var(--sea-h) + 34px);
}
.hero-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--sea-h); z-index: -3;
  background: var(--sea); border-top: 3px solid var(--ink);
}
.hero-waves {
  position: absolute; inset: 0; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='90' viewBox='0 0 240 90' fill='none' stroke='%231B1B1B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M14 22q7-7 14 0t14 0'/%3E%3Cpath d='M150 12q6-6 12 0t12 0'/%3E%3Cpath d='M84 58q7-7 14 0t14 0'/%3E%3Cpath d='M196 70q6-6 12 0t12 0'/%3E%3Cpath d='M20 80q5-5 10 0t10 0'/%3E%3C/svg%3E");
  background-size: 240px 90px;
  animation: waves 22s linear infinite;
}
@keyframes waves { to { background-position: 240px 0; } }

.hero-shapes-back, .hero-shapes-mid { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.shape { position: absolute; }
.cloud { width: 210px; height: 84px; }
.cloud-1 { top: 3%; left: 47%; width: 150px; }
.cloud-2 { top: 32%; right: 2%; width: 230px; }
.cloud-3 { top: 5%; right: 6%; width: 140px; opacity: .95; }
.isle-village { width: 170px; height: auto; left: 4%; bottom: 10px; }
.isle-light { width: 128px; height: auto; left: 61%; bottom: 4px; }
.isle-mini { width: 84px; height: auto; right: 2.5%; bottom: 16px; }

@keyframes floatA { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-11px) rotate(-1.5deg); } }
@keyframes floatC { 0%,100% { transform: translateX(0); } 50% { transform: translateX(22px); } }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 9s ease-in-out infinite 1.5s; }
.float-c { animation: floatC 14s ease-in-out infinite .5s; }

.hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-content { max-width: 740px; }
.hero .eyebrow { color: var(--ink); }
.hero-title { margin: 18px 0 22px; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .96; letter-spacing: .005em; }
.hero-title .h1a {
  display: inline-block; background: var(--red-ui); color: #fff; padding: .04em .2em .02em; border: 3px solid var(--ink);
  border-radius: 6px; transform: rotate(-1.4deg); box-shadow: 6px 6px 0 var(--ink); margin-bottom: .18em;
}
.hero-title .h1b { display: block; color: var(--ink); }
.hero-booktitle { font-weight: 700; font-size: .95rem; margin: -6px 0 16px; opacity: .85; }
.hero-subtitle { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(27,27,27,.86); max-width: 33rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge { font-size: 13.5px; font-weight: 600; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); }

.hero-book { display: flex; justify-content: center; perspective: 1400px; }
.book-float { animation: floatB 8s ease-in-out infinite; }
.book {
  position: relative; width: min(350px, 62vw); aspect-ratio: 772 / 1172;
  transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(3deg); will-change: transform;
}
.book img { width: 100%; height: 100%; border: 3px solid var(--ink); border-radius: 4px 10px 10px 4px; background: var(--red); box-shadow: 0 0 0 0 transparent; }
.book::after {  /* page block */
  content: ""; position: absolute; top: 5px; bottom: 5px; right: 0; width: 26px;
  transform-origin: right center; transform: rotateY(-90deg);
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e8e2cd 2px 3px); border: 2px solid var(--ink);
}
.book-shadow { position: absolute; left: 8%; right: -6%; bottom: -34px; height: 34px; background: radial-gradient(ellipse at center, rgba(27,27,27,.42), transparent 70%); transform: translateZ(-40px); filter: blur(6px); }

.scroll-indicator { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; animation: bounce 2s ease-in-out infinite; color: var(--ink); text-decoration: none; }
.scroll-indicator svg { width: 30px; height: 30px; stroke: var(--cream); stroke-width: 3; }
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 8px); opacity: 1; } }

.js-anim .hero-eyebrow, .js-anim .hero-title, .js-anim .hero-booktitle, .js-anim .hero-subtitle,
.js-anim .hero-cta, .js-anim .badges, .js-anim .scroll-indicator, .js-anim .hero-book { opacity: 0; }

@media (max-width: 860px) {
  .hero { --sea-h: 130px; align-items: flex-start; padding-bottom: calc(var(--sea-h) + 30px); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { margin: 0 auto; }
  .hero-cta, .badges { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero-book { margin-top: 16px; }
  .book { width: min(250px, 58vw); }
  .cloud-1, .cloud-3, .isle-light { display: none; }
  .isle-village { width: 120px; left: -10px; bottom: 6px; }
  .cloud-2 { width: 140px; top: auto; bottom: 30%; right: -28px; }
  .isle-mini { width: 64px; right: 4%; bottom: 12px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--sea-night); color: var(--cream); border-block: 3px solid var(--ink); overflow: hidden; position: relative; }
.marquee-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 22px 0 20px; background: var(--yellow); color: var(--ink); font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; border-right: 3px solid var(--ink); white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; padding-left: 220px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-item { display: flex; align-items: center; padding: 16px 0; font-size: 1.05rem; font-weight: 500; white-space: nowrap; }
.marquee-item::after { content: "✱"; color: var(--yellow); margin: 0 30px; font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee-label { display: none; } .marquee-track { padding-left: 0; } }

/* ---------- why ---------- */
.why { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 32px 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card .icon { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; margin-bottom: 20px; background: var(--yellow); }
.card:nth-child(6n+2) .icon { background: var(--grass); }
.card:nth-child(6n+3) .icon { background: var(--pink); }
.card:nth-child(6n+4) .icon { background: var(--yellow-soft); }
.card:nth-child(6n+5) .icon { background: #F6B6A6; }
.card:nth-child(6n+6) .icon { background: #A9CDB0; }
.card .icon .ic { width: 28px; height: 28px; stroke: var(--ink); }
.card h3 { margin-bottom: 10px; font-size: 1.45rem; }
.card p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.audience { background: var(--paper); border-top: 3px solid var(--ink); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: var(--maxw); margin: 0 auto; }
.panel { border: 2px solid var(--ink); border-radius: 22px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.panel-expat { background: var(--yellow); }
.panel-spaniard { background: var(--grass); }
.kicker { display: inline-block; background: var(--ink); color: var(--cream); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 18px 0 14px; }
.panel > p { font-size: 1.05rem; color: rgba(27,27,27,.86); }
.points { margin-top: 22px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.points .ic { width: 22px; height: 22px; margin-top: 3px; stroke-width: 3; }
@media (max-width: 800px) { .panels { grid-template-columns: 1fr; } }

/* ---------- inside ---------- */
.inside { background: var(--sea-deep); color: var(--cream); border-top: 3px solid var(--ink); overflow: hidden; }
.inside .eyebrow { color: var(--yellow); }
.inside .eyebrow::before { border-color: var(--cream); }
.inside .section-sub { color: rgba(255,247,221,.82); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; position: relative; z-index: 1; }
.tile {
  border: 2px solid rgba(255,247,221,.38); border-radius: 16px; padding: 28px; background: rgba(255,247,221,.06);
  transition: background .25s, border-color .25s, transform .25s;
}
.tile:hover { background: rgba(255,247,221,.13); border-color: var(--yellow); transform: translateY(-5px); }
.tile .ic { width: 34px; height: 34px; color: var(--yellow); margin-bottom: 16px; }
.tile h3 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.tile p { color: rgba(255,247,221,.86); font-size: 1rem; }
.inside-note { margin-top: 38px; text-align: center; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; color: var(--yellow); letter-spacing: .02em; position: relative; z-index: 1; }
.inside-deco { position: absolute; pointer-events: none; opacity: .28; }
.inside-deco.d1 { width: 280px; right: -60px; top: 40px; }
.inside-deco.d2 { width: 220px; left: -50px; bottom: 30px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--yellow); border-block: 3px solid var(--ink); text-align: center; position: relative; overflow: hidden; }
.manifesto .line { font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: .98; max-width: 980px; margin: 0 auto; }
.manifesto p { margin-top: 22px; font-size: 1.25rem; font-weight: 600; }
.manifesto .cloud { position: absolute; opacity: .9; }
.manifesto .cloud.c1 { left: -30px; top: 18%; width: 190px; }
.manifesto .cloud.c2 { right: -30px; bottom: 14%; width: 220px; }
@media (max-width: 700px) { .manifesto .cloud { opacity: .45; } }

/* ---------- buy ---------- */
.buy { background: var(--cream); }
.buy-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.buy-cover { display: flex; justify-content: center; }
.buy-cover img { width: min(340px, 78vw); height: auto; border: 3px solid var(--ink); border-radius: 6px 12px 12px 6px; box-shadow: 12px 12px 0 var(--ink); transform: rotate(-3deg); transition: transform .35s ease; background: var(--red); }
.buy-cover img:hover { transform: rotate(0deg) scale(1.02); }
.buy-copy h2 { margin: 14px 0 12px; }
.buy-copy .lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 26px; }
.stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.store {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff;
  border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s;
}
a.store:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--yellow-soft); }
.store .ic { width: 20px; height: 20px; stroke-width: 3; }
.store.is-pending { border-style: dashed; box-shadow: none; background: transparent; color: var(--muted); }
.store .chip { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--cream); padding: 3px 9px; border-radius: 999px; }
.pending-note { margin-top: 18px; font-weight: 600; }
.author-card { margin-top: 36px; padding: 24px 26px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow); }
.author-card .avatar { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--ink); background: var(--grass); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.author-card h3 { font-size: 1.15rem; letter-spacing: .06em; margin-bottom: 4px; }
.author-card .name { font-weight: 700; }
.author-card p { color: var(--muted); font-size: .98rem; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-weight: 600; font-size: .95rem; }
.social a { text-underline-offset: 3px; }
@media (max-width: 860px) { .buy-grid { grid-template-columns: 1fr; } .buy-copy { text-align: left; } }
@media (max-width: 480px) { .stores { grid-template-columns: 1fr; } }

/* ---------- club ---------- */
.club { background: var(--sea); border-block: 3px solid var(--ink); }
.club .section-head .eyebrow { color: var(--ink); }
.club .section-sub { color: rgba(27,27,27,.88); }
.club-back { max-width: var(--maxw); margin: 0 auto clamp(24px, 4vw, 40px); font-weight: 600; }
.club-back a { text-underline-offset: 3px; }
.club-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; max-width: var(--maxw); margin: 0 auto; }
.box { background: var(--paper); border: 2px solid var(--ink); border-radius: 20px; padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--shadow-lg); }
.box > h3 { font-size: 1.7rem; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field > label, .field > legend, .fieldset-label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.field .opt { font-weight: 500; color: var(--muted); }
fieldset.field { border: 0; min-width: 0; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-size: 1rem; line-height: 1.4;
}
textarea.input { resize: vertical; min-height: 130px; }
.input:focus { outline: 3px solid var(--yellow); outline-offset: 0; box-shadow: 3px 3px 0 var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red-ui); background: #fff4f1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 600; font-size: .92rem; line-height: 1.25; transition: background .15s, box-shadow .15s, transform .15s; }
.pill span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--dot, #fff); }
.pill input:checked + span { background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.pill[data-group="expat"] { --dot: var(--g-expat); }
.pill[data-group="spaniard"] { --dot: var(--g-spaniard); }
.pill[data-group="abroad"] { --dot: var(--g-abroad); }
.pill[data-group="lover"] { --dot: var(--g-lover); }
.prompt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.prompt-row .fieldset-label { margin: 0 4px 0 0; }
.chip-btn { border: 2px solid var(--ink); background: var(--yellow-soft); border-radius: 999px; padding: 5px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.chip-btn:hover { background: var(--yellow); transform: translateY(-1px); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red-ui); }
.check a { text-underline-offset: 3px; font-weight: 600; }
.email-field { display: none; }
.email-field.is-on { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; border: 2px solid var(--ink); font-weight: 600; }
.form-msg[hidden] { display: none; }
.form-msg.is-ok { background: #E6F2C5; }
.form-msg.is-err { background: #FFE0D8; }
.field-err { color: var(--red-ui); font-weight: 600; font-size: .86rem; margin-top: 5px; }
.success-box h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; }

.map-box { padding-bottom: 24px; }
.stack { display: grid; gap: 28px; }
.share-box { text-align: center; }
.share-box h3 { font-size: 1.45rem; margin-bottom: 16px; }
.counters { display: flex; gap: 34px; margin-bottom: 14px; }
.counter b { display: block; font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.counter span { font-weight: 600; color: var(--muted); font-size: .95rem; }
.map { position: relative; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--sea-deep); }
.map svg { width: 100%; height: auto; }
.map .land { fill: #4d7d66; stroke: rgba(255,247,221,.22); stroke-width: .5; }
.map .spain { fill: var(--grass); stroke: var(--ink); stroke-width: .8; }
.map-empty { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.pin circle { vector-effect: non-scaling-stroke; }
.pin circle.dot { stroke: var(--ink); stroke-width: 1.5px; }
.pin circle.ring { fill: none; stroke-width: 1.5px; transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .88rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--dot); }
.legend [data-group="expat"] { --dot: var(--g-expat); }
.legend [data-group="spaniard"] { --dot: var(--g-spaniard); }
.legend [data-group="abroad"] { --dot: var(--g-abroad); }
.legend [data-group="lover"] { --dot: var(--g-lover); }

.wall-wrap { max-width: var(--maxw); margin: 44px auto 0; }
.wall-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.wall-head h3 { font-size: 2.2rem; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.wall { columns: 3 280px; column-gap: 22px; }
.story { break-inside: avoid; margin: 0 0 22px; padding: 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.story:nth-child(3n+1) { transform: rotate(-.8deg); }
.story:nth-child(3n+2) { transform: rotate(.6deg); }
.story blockquote { font-size: 1.03rem; line-height: 1.5; font-weight: 500; }
.story blockquote::before { content: "“"; font-family: var(--font-display); font-size: 2.6rem; line-height: 0; vertical-align: -.4em; margin-right: 4px; color: var(--red-ui); }
.story footer { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.story footer i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); flex: none; background: var(--dot); }
.story[data-group="expat"] { --dot: var(--g-expat); }
.story[data-group="spaniard"] { --dot: var(--g-spaniard); }
.story[data-group="abroad"] { --dot: var(--g-abroad); }
.story[data-group="lover"] { --dot: var(--g-lover); }
.story b { color: var(--ink); }
.wall-empty { text-align: center; padding: 34px 22px; border: 2px dashed var(--ink); border-radius: 18px; background: rgba(255,252,242,.6); }
.wall-empty h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.8rem; }
.wall-empty p { margin: 8px 0 20px; font-weight: 500; }
.notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.note {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; padding: 18px 16px; font-weight: 600; text-align: left; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .2s; min-height: 108px; font-size: .98rem; line-height: 1.35;
}
.note:nth-child(2) { background: var(--yellow-soft); transform: rotate(1.4deg); }
.note:nth-child(1) { transform: rotate(-1.6deg); }
.note:nth-child(3) { background: #F6C9CF; transform: rotate(-.8deg); }
.note:nth-child(4) { background: var(--grass); transform: rotate(1.2deg); }
.note:hover { transform: rotate(0) translateY(-4px); }
.wall-more { display: flex; justify-content: center; margin-top: 8px; }
.demo-banner { max-width: var(--maxw); margin: 0 auto 26px; padding: 10px 16px; background: var(--ink); color: var(--yellow); border-radius: 10px; text-align: center; font-weight: 700; font-size: .92rem; }
.demo-banner[hidden] { display: none; }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.share-msg { margin-top: 10px; font-weight: 700; min-height: 1.5em; }
@media (max-width: 960px) { .club-grid { grid-template-columns: 1fr; } .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .two-col, .pills { grid-template-columns: 1fr; } .notes { grid-template-columns: 1fr; } .counters { gap: 24px; } }

/* ---------- faq ---------- */
.faq { background: var(--cream); }
.faq-list { max-width: 840px; margin: 0 auto; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 3px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 4px; position: relative;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.15rem, 2.3vw, 1.5rem); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 12px; top: 50%; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--red-ui); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.faq .answer a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.closing { background: var(--red-ui); color: #fff; text-align: center; overflow: hidden; border-top: 3px solid var(--ink); padding-block: clamp(90px, 12vw, 160px); }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 620px 300px at 50% 62%, rgba(245,209,86,.34), transparent 72%); pointer-events: none; }
.closing-content { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; }
.closing h2 { font-size: clamp(2.4rem, 6.4vw, 5.2rem); line-height: .98; color: #fff; }
.closing h2 em { font-style: normal; color: var(--yellow); }
.closing p { margin: 22px 0 34px; font-size: 1.3rem; color: var(--yellow-soft); font-weight: 500; }
.closing .hero-cta { justify-content: center; margin-top: 0; }
.closing .btn-outline { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.closing .btn-outline:hover { background: rgba(255,255,255,.14); }
.closing .shape { opacity: .9; }
.closing .cloud.k1 { left: 4%; top: 12%; width: 180px; }
.closing .cloud.k2 { right: 5%; bottom: 12%; width: 210px; }
.closing .isle { left: 8%; bottom: 8%; width: 170px; }
.closing .diamond { width: 46px; height: 46px; background: var(--yellow); right: 12%; top: 16%; transform: rotate(45deg); border: 2px solid var(--ink); }
.closing .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); left: 13%; top: 62%; }
@media (max-width: 800px) { .closing .shape { display: none; } }

/* ---------- footer ---------- */
.flagbar { height: 26px; background: linear-gradient(var(--red-ui) 0 25%, var(--yellow) 25% 75%, var(--red-ui) 75%); border-block: 3px solid var(--ink); }
.site-footer { background: var(--ink); color: var(--cream); padding: 56px 24px 34px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: rgba(255,247,221,.78); margin-top: 12px; max-width: 30ch; }
.footer-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; letter-spacing: .12em; color: var(--yellow); margin: 0 0 14px !important; max-width: none !important; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,247,221,.22); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; color: rgba(255,247,221,.72); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- simple pages (privacy, 404) ---------- */
.doc { background: var(--cream); padding: clamp(56px, 8vw, 96px) 24px; }
.doc-inner { max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 1.6rem; margin: 34px 0 10px; }
.doc p { margin-bottom: 12px; }
.doc .disclaimer { margin-top: 40px; padding: 16px 18px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--yellow-soft); font-weight: 600; }
.e404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 24px; background: var(--yellow); }
.e404 h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
.e404 p { font-size: 1.3rem; margin: 16px 0 30px; font-weight: 600; }
.e404 .clock { width: 120px; margin: 0 auto 20px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; padding: 8px 20px; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-label { position: static; }
}
