/* Kio landing — brand tokens from the KIO brand manual v0.1 */
:root {
  --green: #00D383;
  --teal: #0C3D45;
  --slate: #365666;
  --charcoal: #1F2F2F;
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --film: #072A30;
  --danger: #A4262C;      /* functional color: pending definition in brand manual */
  --ok-bg: #E3F8EF;
  --warn-bg: #FFF4D6;
  --error-bg: #FBE7E8;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --narrow: 44rem;
  --r-sm: 6px;
  --r-md: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 500; }

p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: var(--narrow); margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2)); }
.lead { font-size: 1.2rem; max-width: 38em; }
.muted { color: var(--slate); }
.small { font-size: 0.875rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--teal); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
/* Replace .brand-mark with the official isotipo (assets/img/logo.svg) when available */
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--r-sm); background: var(--green); color: var(--teal); font-size: 1.2rem; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang { border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 0.2rem 0.8rem; }

/* ---------- Hero + contact sheet ---------- */
.hero { background: var(--teal); color: var(--white); padding-top: clamp(2.5rem, 7vw, 6rem); overflow: hidden; }
.hero h1 { max-width: 13ch; }
.hero .lead { color: #D6E4E6; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.25rem; border-radius: var(--r-sm);
  background: var(--green); color: var(--teal); font-weight: 600; text-decoration: none;
}
.store-btn:hover { background: #2BE39B; }
.store-btn.is-soon { background: transparent; color: inherit; border: 1px solid currentColor; opacity: 0.85; cursor: default; }
.store-btn small { font-weight: 400; opacity: 0.8; }
.band:not(.band-dark) .store-btn.is-soon { color: var(--slate); }

.sheet { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; background: var(--film); padding: 1.6rem 0; position: relative; overflow-x: auto; scrollbar-width: thin; }
/* sprocket holes */
.sheet::before, .sheet::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0.55rem;
  background: repeating-linear-gradient(90deg, transparent 0 0.9rem, rgba(245,245,245,.18) 0.9rem 1.6rem);
}
.sheet::before { top: 0.45rem; }
.sheet::after { bottom: 0.45rem; }
.sheet-strip { list-style: none; margin: 0; padding: 0 1.25rem; display: flex; gap: 0.9rem; width: max-content; min-width: 100%; justify-content: center; }
.frame {
  position: relative; flex: 0 0 auto;
  width: clamp(9rem, 17vw, 13rem); aspect-ratio: 3 / 2;
  border-radius: 3px; background-size: cover; background-position: center;
}
/* placeholder tones until real photos are added */
.f1 { background-color: #2E5A63; } .f2 { background-color: #4B6B5E; } .f3 { background-color: #6F5E52; }
.f4 { background-color: #3D6F7C; } .f5 { background-color: #56506B; } .f6 { background-color: #2F4F4F; } .f7 { background-color: #5A6D74; }
.frame:not(.is-found) { filter: saturate(0.6) brightness(0.8); }
.frame-no { position: absolute; left: 0.4rem; bottom: -1.35rem; font-size: 0.7rem; color: rgba(245,245,245,.45); font-family: var(--font-head); }
.frame.is-found { outline: 3px solid var(--green); outline-offset: 4px; transform: translateY(-4px); }
.found-tag {
  position: absolute; top: -0.9rem; left: 50%; translate: -50% 0;
  background: var(--green); color: var(--teal); font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .frame.is-found { animation: found 900ms 400ms cubic-bezier(.2,.8,.2,1) both; }
  .found-tag { animation: tag 500ms 1100ms ease-out both; }
  @keyframes found { from { outline-color: transparent; transform: none; } to { outline-color: var(--green); transform: translateY(-4px); } }
  @keyframes tag { from { opacity: 0; translate: -50% 6px; } to { opacity: 1; translate: -50% 0; } }
}

/* ---------- Bands ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band-alt { background: var(--white); }
.band-dark { background: var(--charcoal); color: var(--paper); }
.band-dark a { color: var(--green); }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--teal); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--slate); margin-bottom: 0.4rem; }
.steps p { color: var(--slate); }

.split { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.mode { padding: 1.5rem; border-radius: var(--r-md); }
.mode-public { background: var(--paper); }
.mode-private { background: var(--teal); color: var(--white); }
.mode p { margin: 0; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.text-link { font-weight: 600; }

/* ---------- Legal ---------- */
.legal { max-width: var(--narrow); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-body h2 { font-size: 1.45rem; margin-top: 2.5rem; scroll-margin-top: 1rem; }
.legal-body h3 { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.legal-body ul { padding-left: 1.25rem; }
.legal-body li { margin-bottom: 0.5rem; }
.legal-summary { background: var(--white); border-left: 4px solid var(--green); padding: 1rem 1.25rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.legal-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #D9DFE1; }
mark.pending { background: var(--warn-bg); color: #6B4E00; padding: 0 0.2em; font-weight: 600; }

/* ---------- Notices ---------- */
.notice { background: var(--white); border-radius: var(--r-sm); padding: 0.9rem 1.1rem; border-left: 4px solid var(--slate); }
.notice-ok { background: var(--ok-bg); border-left-color: var(--green); }
.notice-warn { background: var(--warn-bg); border-left-color: #C9A227; }
.notice-error { background: var(--error-bg); border-left-color: var(--danger); }
.notice ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Delete account ---------- */
.delete-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.delete-info h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.delete-info h2 { font-size: 1.3rem; margin-top: 2rem; }
.delete-form-wrap { background: var(--white); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2rem); }
.delete-form { display: grid; gap: 0.4rem; }
.delete-form label { font-weight: 600; margin-top: 0.8rem; }
.delete-form input[type="email"], .delete-form textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #B9C4C8; border-radius: var(--r-sm); background: var(--white); color: var(--charcoal);
}
.delete-form [aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 0.875rem; color: var(--slate); margin: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-danger { margin-top: 1.2rem; font: inherit; font-weight: 600; padding: 0.85rem 1.2rem; border: 0; border-radius: var(--r-sm); background: var(--danger); color: var(--white); cursor: pointer; }
.btn-danger:hover { background: #861D22; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: #D6E4E6; padding-block: 3rem 1.5rem; }
.site-footer a { color: var(--white); }
.site-footer .muted { color: #A9C1C5; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 1.5rem; }
.footer-tagline { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--white); }
.footer-head { font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }

@media (max-width: 40rem) {
  .site-nav a:not(.lang) { display: none; }
  .sheet-strip { justify-content: flex-start; }
  /* keep "your moment" on screen on phones */
  .f1, .f2 { display: none; }
}
