/*
  WHAT THIS FILE IS FOR
  The look of the wakapals.com help and information pages, following the
  approved Plans page (owner 2026-10-21: "look at the way wakapals.com/plans
  is and follow the concept"): calm off-white page, white cards with thin
  borders, centred headings, orange only on the main button, a simple logo
  header and a quiet footer.
  WHERE IT IS USED
  Help, Guide, About, Refunds, For companies, Report a concern,
  Contact, Safety, Terms and Privacy.
*/
/* Fonts kept on wakapals.com (no Google Fonts). */
@font-face { font-family: Figtree; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/figtree-latin.woff2) format("woff2"); }
@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/anton-latin.woff2) format("woff2"); }
:root {
  --page: #FBF8F3;
  --card: #FFFFFF;
  --ink: #1C120B;
  --muted: #6B5B4B;
  --line: #EAE2D6;
  --orange: #F07A10;
  --soft: #F4EEE5;
  --done: #DCEFB5;
  --error-bg: #FBD9C9;
  --error: #A3300A;
  /* names the page markup already uses */
  --cream: #FFFFFF;
  --yellow: #F07A10;
  --body-on-cream: #6B5B4B;
  --body-on-ink: #E8DED2;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 'Figtree', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
/* Long words (German, Dutch) break with a hyphen instead of pushing the page sideways on small phones. */
h1, h2, h3, td, th { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
input, textarea, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--card); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header: logo, Help, Join waitlist (as on Plans) */
.top { background: var(--page); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(251,248,243,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top .in { max-width: 1040px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; gap: 18px; }
.logo { margin-right: auto; display: block; }
.logo img { display: block; width: 155px; height: 32px; }
.pill { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.pill:hover { color: var(--orange); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (max-width: 400px) { .logo img { width: 126px; height: 26px; } .top .in { gap: 12px; } }

/* Language menu (website/i18n.js fills these): in the header when there is room,
   always in the footer (as in the designer's file). */
.top .lang { display: flex; align-items: center; color: var(--ink); }
.lang-foot { display: flex; justify-content: center; color: var(--ink); }
@media (max-width: 559px) { .top .lang { display: none; } }
/* "This is a translation" line on Terms and Privacy: only in the translated versions. */
html[lang="en"] .lang-note, html:not([lang]) .lang-note { display: none; }

/* Buttons */
.btn { min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: var(--ink); border: 1px solid var(--orange); text-decoration: none; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn:hover { filter: brightness(.96); }
.btn.line { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn.big { width: 100%; min-height: 52px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Page heading (centred, like Plans) */
.hero .in { max-width: 760px; margin: 0 auto; padding: 48px 16px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .icon { width: 64px; height: 64px; padding: 10px; border-radius: 20px; background: var(--soft); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
h1 { font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.03em; }
.lead { margin: 0 auto; max-width: 52ch; color: var(--muted); font-size: 18px; line-height: 1.55; }
.tape, .progress { display: none; }

/* Content column */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 16px 56px; display: flex; flex-direction: column; gap: 18px; }
main.wide { max-width: 1040px; }
h2 { font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
p { margin: 0; max-width: 66ch; }
.small { font-size: 14px; line-height: 20px; color: var(--muted); }
ol, ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card p, .card li { color: var(--muted); }
.card.ink { background: var(--ink); border-color: var(--ink); color: var(--card); }
.card.ink p, .card.ink li { color: #D9CEC1; }
.card.ink a { color: var(--card); }
.card.yellow { border: 2px solid var(--ink); padding: 23px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.note { border-radius: 14px; padding: 14px 16px; background: var(--soft); font-size: 15px; line-height: 22px; }
.note.danger { background: var(--ink); color: var(--card); }
.num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--orange); font-weight: 800; font-size: 14px; }

/* Section heading with a small number */
.sec { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.sec b { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--orange); font-size: 13px; font-weight: 800; }

/* Help: search and topic tiles */
.search { position: relative; }
.search input { width: 100%; height: 56px; padding: 0 16px 0 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 17px; }
.search input:focus { border-color: var(--ink); outline: none; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); }
.nohits { padding: 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile img { width: 40px; height: 40px; margin-bottom: 6px; }
.tile b { font-weight: 700; font-size: 16px; }
.tile span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Questions */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; margin-bottom: 8px; }
summary { list-style: none; cursor: pointer; min-height: 58px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--orange); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding: 0 0 16px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }

/* Forms */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 16px; font-weight: 400; }
input:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { border: 2px solid var(--ink); padding: 0 13px; }
.err { padding: 12px 14px; border-radius: 12px; background: var(--error-bg); color: var(--error); font-size: 14px; font-weight: 600; }
.done { background: var(--done); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }

/* Gentle reveal on scroll (all visible without it) */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* Guide: phone frames, numbered steps, contents list */
.phone { width: 100%; max-width: 240px; padding: 8px; border-radius: 36px; background: var(--ink); position: relative; justify-self: center; box-shadow: 0 20px 40px -24px rgba(28,18,11,.45); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 1043; border-radius: 28px; }
.guide { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: start; }
.guide nav.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.guide nav.side a { padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.guide nav.side a.on { background: var(--soft); color: var(--ink); }
.gstep { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; margin-top: 16px; scroll-margin-top: 84px; }
.gstep .n { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--orange); font-weight: 800; font-size: 13px; }
.gstep .txt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gstep h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.gstep p, .gstep li { color: var(--muted); }
@media (max-width: 900px) { .guide { grid-template-columns: minmax(0, 1fr); } .guide nav.side { display: none; } }
@media (max-width: 640px) { .gstep { grid-template-columns: minmax(0, 1fr); padding: 20px; } .phone { max-width: 220px; } }

/* Footer (quiet, as on Plans) */
.foot { border-top: 1px solid var(--line); }
.foot .in { max-width: 1040px; margin: 0 auto; padding: 28px 16px 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.foot b { display: none; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot nav a:hover { color: var(--orange); }
.foot small { font-size: 13px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
