/* Content pages (templates, features): the landing page's look in a reading layout.
   Colours and buttons match index.html; the theme follows the visitor's saved
   choice (selfos-theme) or the system setting. */
:root {
  --bg: #e4ede8; --surface: #ffffff; --ink: #0b1210; --ink-soft: #2f3b36; --muted: #5c6b64;
  --line: rgba(11,18,16,0.12); --nav-bg: rgba(228,237,232,0.85);
  --btn-bg: #0b1210; --btn-fg: #ffffff; --btn-hover: #1c2621;
  --ghost-line: rgba(11,18,16,0.25); --ghost-hover: rgba(11,18,16,0.06);
  --emerald: #10b981; --check: #1e4634; --shadow: rgba(0,0,0,0.12); --soft: rgba(255,255,255,0.55);
}
:root[data-theme="dark"] {
  --bg: #0b1210; --surface: #141d18; --ink: #e8efeb; --ink-soft: #cfd9d3; --muted: #a9b8b0;
  --line: rgba(255,255,255,0.1); --nav-bg: rgba(11,18,16,0.85);
  --btn-bg: #e8efeb; --btn-fg: #0b1210; --btn-hover: #ffffff;
  --ghost-line: rgba(232,239,235,0.3); --ghost-hover: rgba(232,239,235,0.08);
  --check: #a7f3d0; --shadow: rgba(0,0,0,0.5); --soft: rgba(255,255,255,0.03);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.serif, h1, h2 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.nav { position: sticky; top: 0; z-index: 10; background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.menu { display: flex; gap: 20px; font-size: 15px; }
.menu a { text-decoration: none; color: var(--ink-soft); }
.menu a:hover { color: var(--ink); }
@media (max-width: 640px) { .menu { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); }
.btn-dark:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; border-color: var(--ghost-line); color: var(--ink); }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

main { padding: 28px 0 56px; }
.article { max-width: 760px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; margin-bottom: 16px; }
h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; margin: 40px 0 14px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 14px; color: var(--ink-soft); font-size: 17px; }
.lead { font-size: 19px; color: var(--ink); }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--ink-soft); font-size: 17px; }
.article li { margin-bottom: 6px; }
.article li strong, .article p strong { color: var(--ink); }

.hero-media { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 26px 0 6px; align-items: center; }
.hero-media.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .hero-media.two { grid-template-columns: 1fr; } }
.phone { max-width: 290px; margin: 0 auto; border-radius: 34px; overflow: hidden; box-shadow: 0 18px 50px var(--shadow); border: 1px solid var(--line); }
.sheet { border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px var(--shadow); border: 1px solid var(--line); background: #fff; }
.poster { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px var(--shadow); }
figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

.checklist { list-style: none; margin: 0 0 8px 0 !important; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 36px; border-bottom: 1px solid var(--line); margin: 0 !important; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--check); border-radius: 5px; }

.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 10px; }
@media (max-width: 640px) { .ideas { grid-template-columns: 1fr; } }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.idea b { display: block; margin-bottom: 4px; }
.idea span { color: var(--ink-soft); font-size: 15px; }

.days { list-style: none; margin: 0 0 10px 0 !important; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .days { columns: 1; } }
.days li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.days .n { display: inline-block; min-width: 28px; font-weight: 700; color: var(--ink); }
.days .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); margin-left: 6px; vertical-align: middle; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin: 22px 0; }
.download p { margin: 0; flex: 1 1 220px; font-size: 15px; }

.app-box { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; margin: 40px 0 10px; }
.app-box h2 { margin-top: 0; }
.app-box .row { display: flex; gap: 18px; align-items: center; }
.app-box .row img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-box small { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; }

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 6px; }
.stages figure { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.stages img { width: 100%; max-width: 160px; margin: 0 auto; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: #f4f1ea; }
.card div { padding: 14px 16px 18px; }
.card b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 19px; line-height: 1.25; margin-bottom: 6px; }
.card span { color: var(--ink-soft); font-size: 14px; }
.more { margin-top: 36px; }
.more a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.more a:hover { text-decoration: underline; }
.lang-alt { font-size: 14px; color: var(--muted); margin-top: -4px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: space-between; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
