/* print.awakendev.com: the colours and type of the Awaken Print app (ui/theme), light and dark. */
@font-face {
    font-family: 'Figtree';
    src: url('/assets/figtree.ttf') format('truetype');
    font-weight: 300 900;
    font-display: swap;
}

:root {
    --ground: #F4F5F7;
    --surface: #FFFFFF;
    --ink: #15171C;
    --ink-soft: #2E3440;
    --ink-muted: #4A5160;
    --line: #E2E5EA;
    --line-strong: #D5D9E0;
    --accent: #E8680C;
    --on-accent: #1A1206;
    --accent-text: #B4500A;
    --accent-soft: #FDF0E6;
    --success: #17663F;
    --code-bg: #15171C;
    --code-ink: #ECEEF2;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --ground: #0F1115;
        --surface: #181B21;
        --ink: #ECEEF2;
        --ink-soft: #C9CED6;
        --ink-muted: #A3A9B5;
        --line: #2A2F38;
        --line-strong: #3A404B;
        --accent: #F07A1E;
        --on-accent: #1A1206;
        --accent-text: #FF9F57;
        --accent-soft: #33231A;
        --success: #5FD39A;
        --code-bg: #0A0B0E;
        --code-ink: #ECEEF2;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 17px/1.55 'Figtree', 'Noto Sans Sinhala', 'Nirmala UI', 'Iskoola Pota', system-ui, sans-serif;
}
:lang(si) body, body:lang(si) { line-height: 1.75; }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---- header / footer ---- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.mark svg { width: 22px; height: 22px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 6px 12px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--ink-muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--ink-soft); }
.foot .grow { flex: 1 1 auto; }

/* ---- type ---- */
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; margin: 48px 0 14px; font-weight: 800; }
h3 { font-size: 19px; margin: 30px 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }

/* ---- buttons ---- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-muted); }
/* "Coming soon to Google Play": keeps the hero's shape, but is not a link. */
.btn-soon { background: var(--surface); color: var(--ink-muted); border: 1px dashed var(--line-strong); cursor: default; }

/* ---- cards ---- */
.hero { padding: 36px 0 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ground); font-weight: 800; display: grid; place-items: center; font-size: 15px; }

.price { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.price .big { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 6px; }

.note { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; color: var(--ink-soft); font-size: 15px; }

/* ---- docs ---- */
.doc h2 { scroll-margin-top: 16px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
code { font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.code { position: relative; margin: 10px 0 18px; }
.code pre { padding-top: 44px; }
pre { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font: 600 13px/1 'Figtree', system-ui, sans-serif; padding: 7px 10px; border-radius: 8px; border: 1px solid #3A404B; background: #23272F; color: #ECEEF2; cursor: pointer; }
.copy:hover { background: #2E3440; }
.table { overflow-x: auto; margin: 10px 0 18px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-soft); }
tr:last-child td { border-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); background: var(--surface); }
.toc a:hover { color: var(--ink); border-color: var(--ink-muted); }

/* ---- language switch (home page) ---- */
html[lang="si"] [data-lang="en"], html[lang="en"] [data-lang="si"] { display: none; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .lead { font-size: 18px; }
    h2 { font-size: 23px; margin-top: 40px; }
    .nav { margin-left: 0; width: 100%; }
    .btn { width: 100%; justify-content: center; }
}
