/* Yiga Oluganda website: landing, thank-you and login pages. Colours match the app. */
:root {
  --lake: #0b5cad;
  --lake-dark: #084a8c;
  --lake-soft: #dcebfa;
  --sun: #ffc72c;
  --sun-soft: #fff4d1;
  --crane: #c8102e;
  --crane-soft: #fde4e8;
  --leaf: #1e7b34;
  --leaf-dark: #155c26;
  --leaf-soft: #ddf3e2;
  --ink: #16202b;
  --ink-soft: #4a5867;
  --mist: #eef5fb;
  --cloud: #ffffff;
  --line: #d4e1ee;
  --radius: 24px;
  --shadow: 0 5px 0 var(--line);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 18px/1.55 'Nunito', system-ui, -apple-system, sans-serif;
}
h1, h2, h3, .brand, .btn { font-family: 'Fredoka', 'Nunito', system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
a { color: var(--lake-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 560px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(238, 245, 251, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--lake); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.lang { border: 2px solid var(--line); background: var(--cloud); border-radius: 999px; padding: 6px 12px; font: 700 15px 'Nunito', sans-serif; cursor: pointer; color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 26px; border: 0; border-radius: 18px; cursor: pointer;
  font-size: 20px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  background: var(--lake); color: #fff; box-shadow: 0 5px 0 var(--lake-dark);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lake-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.go { background: var(--leaf); box-shadow: 0 5px 0 var(--leaf-dark); }
.btn.sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 #c99400; }
.btn.ghost { background: var(--cloud); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--line); }
.btn.small { min-height: 44px; padding: 8px 16px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:focus-visible, .lang:focus-visible, input:focus-visible { outline: 4px solid var(--sun); outline-offset: 2px; }

/* hero */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 15px; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); color: var(--lake-dark); }
.hero p.lead { font-size: 21px; color: var(--ink-soft); margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 15px; color: var(--ink-soft); margin-top: 12px; }
.phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.phone { width: 46%; max-width: 250px; border-radius: 28px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 14px 40px rgba(11, 92, 173, .18); }
.phone:nth-child(2) { margin-top: 48px; }
.phone img { width: 100%; height: auto; }

/* sections */
section.block { padding: 56px 0; }
section.block h2 { font-size: clamp(30px, 4.5vw, 42px); text-align: center; }
.sub { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--cloud); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card .icon { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.card h3 { font-size: 22px; }
.card p { margin: 0; color: var(--ink-soft); }
.band { background: var(--cloud); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--mist); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lake); color: #fff; font: 700 22px 'Fredoka', sans-serif; margin-bottom: 10px; }
.steps code, .cred code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; background: var(--sun-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* pricing */
.price { max-width: 460px; margin: 0 auto; text-align: center; border: 4px solid var(--sun); }
.price .amount { font: 700 64px/1 'Fredoka', sans-serif; color: var(--lake-dark); margin: 6px 0; }
.price .amount span { font-size: 22px; color: var(--ink-soft); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; }
.price li { padding: 6px 0 6px 34px; position: relative; }
.price li::before { content: '✓'; position: absolute; left: 4px; color: var(--leaf); font-weight: 900; }

/* faq */
details { background: var(--cloud); border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--line); }
summary { cursor: pointer; font-weight: 800; font-size: 19px; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

footer { padding: 32px 0 48px; color: var(--ink-soft); font-size: 15px; text-align: center; }
footer a { color: inherit; }

/* forms and account pages */
.page { min-height: 100dvh; display: flex; flex-direction: column; }
.page main { flex: 1; padding: 40px 0; }
.panel { background: var(--cloud); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel h1 { font-size: 34px; color: var(--lake-dark); }
.mascot { width: 84px; height: 84px; margin-bottom: 8px; }
label { display: block; font-weight: 800; margin: 16px 0 6px; }
input[type=text], input[type=password] {
  width: 100%; min-height: 56px; padding: 10px 16px; font: 20px 'Nunito', sans-serif;
  border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
}
input:focus { border-color: var(--lake); outline: none; }
.msg { border-radius: 16px; padding: 14px 16px; margin: 16px 0 0; font-weight: 700; }
.msg.err { background: var(--crane-soft); color: var(--crane); }
.msg.ok { background: var(--leaf-soft); color: var(--leaf-dark); }
.msg.info { background: var(--lake-soft); color: var(--lake-dark); }
.cred { display: grid; gap: 12px; margin: 20px 0; }
.cred .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: var(--sun-soft); border: 3px dashed var(--sun); border-radius: 16px; padding: 12px 14px; }
.cred .k { font-size: 14px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.cred .row > div { flex: 1 1 230px; min-width: 0; }
.cred .v { font: 700 21px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.warn { background: var(--sun-soft); border-left: 6px solid var(--sun); padding: 12px 16px; border-radius: 12px; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { order: -1; }
  .phone { width: 40%; max-width: 170px; border-width: 4px; border-radius: 20px; }
  .phone:nth-child(2) { margin-top: 28px; }
  .hero { padding-top: 24px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .top .login-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Swedish / English: every text exists twice, the page shows one. */
html[data-lang='sv'] [data-l='en'], html[data-lang='en'] [data-l='sv'] { display: none !important; }
.steps-mini { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--lake-soft); color: var(--lake-dark); font-weight: 800; font-size: 15px; }
input[type=email] {
  width: 100%; min-height: 56px; padding: 10px 16px; font: 20px 'Nunito', sans-serif;
  border: 3px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
}
