/* getdokira.com: one self-contained stylesheet (no fonts, no CDNs). Colours are tokens; light and dark follow the visitor's system. */
:root {
  color-scheme: light dark;
  --bg: #f2f5fb;
  --surface: #ffffff;
  --ink: #0c1430;
  --ink-2: #3f4968;
  --accent: #2f5bea;
  --accent-ink: #1b3ebf;
  --accent-soft: #e7edff;
  --on-accent: #ffffff;
  --line: #d5dcee;
  --focus: #1b3ebf;
  --art-bg: #ffffff;
  --shadow: 0 1px 2px rgb(12 20 48 / 0.06), 0 14px 32px -14px rgb(30 55 140 / 0.25);
  --font: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b19;
    --surface: #0f1630;
    --ink: #eef1fb;
    --ink-2: #bac3de;
    --accent: #3563f5;
    --accent-ink: #a9bdff;
    --accent-soft: #16224f;
    --line: #2a3562;
    --focus: #9db4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -14px rgb(0 0 0 / 0.6);
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--font);
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center;
  background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.6rem; letter-spacing: -0.02em; }
.brand .lockup { width: auto; height: 34px; }
.brand .lockup--dark { display: none; height: 39px; }
@media (prefers-color-scheme: dark) {
  .brand .lockup--light { display: none; }
  .brand .lockup--dark { display: block; }
}
.lang { display: flex; gap: 4px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink-2); font-size: 1rem; font-weight: 600; text-decoration: none;
}
.lang a:hover { background: var(--accent-soft); color: var(--ink); }
.lang a[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(32px, 8vw, 96px) clamp(16px, 4vw, 40px); max-width: 52rem; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.1rem, 1.2rem + 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.hero h1 span { display: block; color: var(--accent-ink); }
.lead { margin: 0 0 28px; max-width: 34em; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.badge { display: inline-flex; border-radius: 10px; }
.badge img { height: 56px; width: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px;
  border: 2px solid var(--accent); border-radius: 12px; background: transparent; color: var(--accent-ink);
  font: inherit; font-size: 1.1rem; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--accent-soft); }
.note { margin: 20px 0 0; font-size: 1rem; color: var(--ink-2); }

/* Illustration cards: the artwork has a white ground, so it sits on a white card in both themes. */
.art { margin: 0; overflow: hidden; border-radius: 24px; background: var(--art-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.art img { width: 100%; height: auto; }
.step .art { width: 100%; max-width: 600px; }

/* Sections */
section { padding-block: clamp(28px, 6vw, 64px); }
h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 750; }
.intro { margin: 0 0 clamp(24px, 4vw, 48px); max-width: 38em; color: var(--ink-2); }

.steps { display: grid; gap: clamp(36px, 6vw, 72px); margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: 20px; align-items: center; }
.step p { margin: 0 0 12px; color: var(--ink-2); max-width: 32em; }
.step p:last-child { margin-bottom: 0; }
.num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.1rem;
}
.draft { font-size: 1rem; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); max-width: 32em; }

.card { padding: clamp(20px, 4vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card p { margin: 0 0 14px; max-width: 40em; color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

.apps { display: grid; gap: 20px; }
.apps ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }
.apps li strong { color: var(--ink); }

.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--accent-ink); font-weight: 600; font-size: 1.05rem; text-decoration: none;
}
.links a:hover { background: var(--accent-soft); border-color: var(--accent); }

.about-mail { margin: 0; color: var(--ink-2); font-size: 1rem; max-width: 44em; }

/* Footer */
/* Closing call to action, like the one at the foot of www.dokira.my. */
.cta-band { margin-top: 56px; background: var(--accent-soft); border-block: 1px solid var(--line); padding-block: 56px; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band p { margin: 0 0 24px; max-width: 40em; color: var(--ink-2); font-size: 1.1rem; }
.cta-band .btn { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cta-band .btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
footer { margin-top: 0; border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--ink-2); font-size: 1rem; }
footer p { margin: 0 0 12px; max-width: 52em; }
footer a { display: inline-block; padding-block: 10px; }

@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; }
  .step:nth-child(even) .art { order: -1; }
  .apps { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
}

@media (forced-colors: active) {
  .btn, .links a, .art, .card { border: 1px solid CanvasText; }
}
