/* Obair España - public site. Plain CSS, mobile first, no build step. */

:root {
  --magenta: #A21D54;
  --magenta-dark: #7E1641;
  --magenta-soft: #F6E6EE;
  --night: #1B1830;
  --night-2: #2A2645;
  --off: #F7F5FA;
  --card: #FFFFFF;
  --ink: #1B1830;
  --sub: #55506B;
  --line: #E4E0EC;
  --warn-bg: #FFF4D6;
  --warn-line: #E8C75A;
  --radius: 14px;
  --measure: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--magenta); text-underline-offset: 2px; }
a:hover { color: var(--magenta-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--night); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--night);
  color: #fff;
}
.site-header .bar {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { font-weight: 600; opacity: 0.7; margin-left: 2px; }
.lang-switch { display: flex; gap: 6px; font-size: 15px; }
.lang-switch a, .lang-switch span {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
}
.lang-switch a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lang-switch [aria-current] { background: #fff; color: var(--night); border-color: #fff; font-weight: 700; }

/* ---------- Layout ---------- */
main { display: block; }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 24px 16px 56px; }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Legal pages ---------- */
.draft {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 15px;
}
.draft strong { display: block; }

.doc h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 4px; letter-spacing: -0.02em; }
.doc .meta { color: var(--sub); font-size: 15px; margin: 0 0 20px; }
.doc h2 {
  font-size: 22px; line-height: 1.3; margin: 40px 0 10px; padding-top: 8px;
  border-top: 1px solid var(--line); scroll-margin-top: 16px;
}
.doc h3 { font-size: 18px; margin: 24px 0 6px; scroll-margin-top: 16px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .ph, .ph {
  background: var(--magenta-soft); color: var(--magenta-dark);
  padding: 0 4px; border-radius: 4px; font-weight: 600;
}

.summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 16px 8px; margin: 0 0 20px;
}
.summary h2 { border-top: 0; margin-top: 12px; font-size: 19px; }

.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 8px;
}
.toc h2 { border: 0; margin: 0 0 6px; padding: 0; font-size: 17px; }
.toc ol { margin: 0; padding-left: 22px; columns: 1; }
.toc li { margin: 2px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border: 1px solid var(--line); }
th { background: #EFECF4; font-weight: 700; }

.note {
  border-left: 4px solid var(--magenta); background: var(--card);
  padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 0 0 16px;
}

.back-top { display: inline-block; margin-top: 32px; font-size: 15px; }

/* ---------- Landing page ---------- */
.hero { background: var(--night); color: #fff; padding: 40px 0 56px; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: #F39BBF; }
.hero p.lead { font-size: 19px; color: #DCD8EA; margin: 0 0 24px; max-width: 34em; }
.pill {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.store-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--night); border-radius: 12px; padding: 10px 16px;
  font-weight: 700;
}
.store-soon span { font-weight: 500; color: var(--sub); font-size: 14px; display: block; line-height: 1.2; }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: -28px 0 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; box-shadow: 0 6px 20px rgba(27,24,48,0.06);
}
.card h2 { margin: 0 0 8px; font-size: 21px; }
.card .tag { color: var(--magenta); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.card ul { padding-left: 20px; margin: 8px 0 0; }
.card li { margin-bottom: 6px; }

.section { padding: 40px 0 0; }
.section h2 { font-size: 24px; margin: 0 0 10px; }
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 56px; position: relative;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--magenta); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px;
}
.contact-box {
  background: var(--magenta); color: #fff; border-radius: 18px; padding: 22px; margin: 40px 0 0;
}
.contact-box a { color: #fff; font-weight: 700; }
.contact-box h2 { margin: 0 0 6px; }

/* Download / sign-up buttons */
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 12px;
  font-weight: 800; text-decoration: none; line-height: 1.2;
}
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--magenta-soft); color: var(--night); }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-brand { background: var(--magenta); color: #fff; }
.btn-brand:hover { background: var(--magenta-dark); color: #fff; }
.btn small { display: block; font-weight: 600; font-size: 13px; opacity: 0.75; }
.biz-link { margin: 16px 0 0; color: #DCD8EA; font-size: 16px; }
.biz-link a { color: #fff; font-weight: 700; }
.need { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; }
.need ul { margin: 6px 0 8px; padding-left: 20px; }
.need li { margin-bottom: 6px; }

/* Language blocks on the landing page: Spanish by default, English when #en is targeted. No JavaScript. */
/* Scoped to .lang-block so the support page, which also uses #en and #es, shows both. */
.lang-block#en { display: none; }
.lang-block#en:target { display: block; }
.lang-block#en:target ~ .lang-block#es { display: none; }

/* ---------- Support page ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 16px; margin: 0 0 10px;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details > *:last-child { margin-bottom: 14px; }
.lang-divider { margin: 56px 0 0; padding-top: 24px; border-top: 3px solid var(--magenta); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #CFCBE0; font-size: 15px; }
.site-footer .wide { padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: #fff; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer p { margin: 4px 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 48px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps.steps-4 { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 2; column-gap: 32px; }
  .doc h1 { font-size: 36px; }
}

@media print {
  .site-header, .site-footer, .toc, .skip, .back-top { display: none; }
  body { background: #fff; font-size: 12pt; }
  a { color: inherit; }
}
