/* ELEMENT | 08 site stylesheet (the v7 look), for every page.
 *
 * The homepage descends a dive line: Philipp at the surface, then one stop per
 * part of ELEMENT | 08 and back up for the download. Every screen is real.
 * The document pages (safety, install, legal, account) keep their own markup
 * and are styled further down; so is the pricing page.
 *
 * Colour follows the OS (prefers-color-scheme). data-theme="light" / "dark"
 * on <html> forces one.
 */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Caveat:wght@500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --water: #e9f1f4; --surface: #f8fbfc; --ink: #0c2230; --muted: #4b6371;
  --line: #b5cad3; --red: #d5002a; --pen: #1d5f8f; --deep: #0b2a3c; --on-deep: #e6f0f4;
  --bezel: #10181d; --chrome: #dfe8ec;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --water: #07151d; --surface: #0d1f2a; --ink: #e4eef2; --muted: #93abb7; --line: #23404f;
    --red: #ff3a5c; --pen: #8ccaf0; --deep: #041019; --on-deep: #e4eef2; --bezel: #000; --chrome: #16303d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --water: #07151d; --surface: #0d1f2a; --ink: #e4eef2; --muted: #93abb7; --line: #23404f;
  --red: #ff3a5c; --pen: #8ccaf0; --deep: #041019; --on-deep: #e4eef2; --bezel: #000; --chrome: #16303d;
  color-scheme: dark;
}
/* CJK and Thai: the three web fonts are Latin-only, so the browser falls back
   per glyph. Handwriting has no CJK fallback that reads as a note; the system
   sans keeps those lines legible. */
:lang(zh-Hans) .note, :lang(zh-Hant) .note, :lang(ja) .note, :lang(ko) .note, :lang(th) .note,
:lang(zh-Hans) .sig, :lang(zh-Hant) .sig, :lang(ja) .sig, :lang(ko) .sig, :lang(th) .sig {
  font-family: system-ui, sans-serif; font-size: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--water); color: var(--ink); margin: 0;
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1120px; margin: 0 auto; }
a { color: inherit; }
/* height:auto: the width/height attributes reserve space while loading, but
   the CSS aspect-ratio of each frame decides the shape. */
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: .005em; line-height: 1.02; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 48px); }
h3 { font-size: 26px; }
p { margin: 0; }
figure { margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note { font-family: var(--hand); font-size: 25px; line-height: 1.15; color: var(--pen); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .04em; text-decoration: none; padding: 11px 20px; border-radius: 4px; }
.btn.primary { background: var(--red); color: #fff; }
.btn.ghost { border: 1.5px solid var(--ink); }
.textlink { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: .04em; color: var(--pen); text-decoration: none; justify-self: start; }
.btn:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.body { color: var(--muted); max-width: 48ch; }
.small { font-size: 14px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list li { padding-left: 20px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--red); }
.list b { font-weight: 600; }

/* devices */
.phone { border: 9px solid var(--bezel); border-radius: 38px; overflow: hidden; background: var(--bezel); box-shadow: 0 18px 40px -22px rgba(4, 24, 36, .55); max-width: 100%; }
.phone img { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; object-position: top; }
.phone.crop img { aspect-ratio: 1206 / 1900; }
.browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--chrome); box-shadow: 0 18px 40px -24px rgba(4, 24, 36, .5); max-width: 100%; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-family: var(--display); font-size: 14px; letter-spacing: .05em; color: var(--muted); }
.browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.browser .bar span { margin-left: 10px; background: var(--surface); border-radius: 4px; padding: 1px 10px; }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.watch { border-radius: 50%; overflow: hidden; border: 12px solid #2b2f33; box-shadow: 0 0 0 3px #5b6168, 0 18px 40px -20px rgba(0,0,0,.7); aspect-ratio: 1; }
.watch img { width: 100%; height: 100%; object-fit: cover; }
.awatch { border-radius: 34px; overflow: hidden; border: 10px solid #1b1d20; box-shadow: 0 0 0 2px #45484d; background: #000; }
.awatch img { width: 100%; }
.sharecard { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(4, 24, 36, .55); }
.sharecard img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
figcaption.cap { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; text-align: center; }

/* header */
.top { display: flex; align-items: center; gap: 24px; padding-block: 18px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .2em; margin-right: auto; text-decoration: none; white-space: nowrap; }
.logo b { color: var(--red); font-weight: 700; padding: 0 .15em; }
.top nav { display: flex; gap: 20px; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: .05em; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.lang-select {
  font-family: var(--display); font-size: 16px; letter-spacing: .04em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; cursor: pointer;
}

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 28px 40px; }
.hero > div { min-width: 0; display: grid; gap: 22px; }
.lede { font-size: 20px; color: var(--muted); max-width: 36ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fan { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.fan .phone:nth-child(1) { transform: translateY(26px); }
.fan .phone:nth-child(3) { transform: translateY(46px); }

/* instructor log card */
.log { margin-block: 56px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 22px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: center; }
.log .vita { display: grid; gap: 20px; min-width: 0; }
.log dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; }
.log dt { font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-size: 15px; }
.log dd { margin: 0; }
.log .portrait-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; border-radius: 3px; }
.sig { font-family: var(--hand); font-size: 38px; color: var(--pen); line-height: 1; }
.sig small { display: block; font-family: var(--display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* the four places */
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.four a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.four a:hover { border-color: var(--red); }
.four .thumb { height: 130px; border-radius: 3px; overflow: hidden; background: var(--deep); }
.four .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.four .thumb.round { display: grid; place-items: center; }
.four .thumb.round img { width: 118px; height: 118px; border-radius: 50%; }
.four .where { font-family: var(--display); letter-spacing: .06em; font-size: 15px; color: var(--red); }
.four p { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* the dive line */
.descent { position: relative; padding-left: 92px; }
.descent::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 16px); }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding-block: 52px; scroll-margin-top: 12px; }
.stop > div { min-width: 0; display: grid; gap: 16px; }
.stop.flip > :first-child { order: 2; }
.tag { position: absolute; left: -92px; top: 58px; width: 78px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 22px; background: var(--water); color: var(--red); padding-block: 2px; font-variant-numeric: tabular-nums; }
.shots { display: grid; gap: 16px; align-items: end; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots.web { grid-template-columns: 1fr; }
.shots.web .browser + .browser { width: 78%; margin: -60px 0 0 auto; position: relative; }
.wristrow { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: center; }
.reading { font-family: var(--display); font-size: 19px; letter-spacing: .04em; font-variant-numeric: tabular-nums; border-left: 3px solid var(--red); padding: 6px 0 6px 14px; }
.reading span { color: var(--muted); }
.photo { border-radius: 3px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* themes band */
.themes { margin-block: 30px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 28px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.themes > div { min-width: 0; display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--display); font-size: 15px; letter-spacing: .05em; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }

/* surface band */
.surfaceband { background: var(--deep); color: var(--on-deep); margin-top: 48px; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.surfaceband .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding-block: 56px; align-items: center; }
.surfaceband .wrap > div { min-width: 0; display: grid; gap: 18px; }
.surfaceband .btn.ghost { border-color: var(--on-deep); }
.surfaceband .eyebrow { color: #9fbccb; }
.surfaceband p { color: #c6d8e0; }
.surfaceband .note { color: #9fd2f2; }
.hw { font-size: 15px; border-top: 1px solid #2a4a5c; padding-top: 14px; }

/* footer: every page must reach Impressum, Privacy and Terms */
footer { padding-block: 24px 40px; font-family: var(--display); letter-spacing: .06em; color: var(--muted); font-size: 15px; display: grid; gap: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* FAQ page */
.page-head { padding-block: 28px 8px; display: grid; gap: 12px; }
.faq-list { display: grid; gap: 10px; padding-block: 20px 40px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.faq-item summary { cursor: pointer; padding: 14px 18px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .01em; list-style: none; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-weight: 700; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 18px 16px; color: var(--muted); display: grid; gap: 10px; }
.faq-answer strong { color: var(--ink); font-weight: 600; }
.faq-answer a { color: var(--pen); }

/* Document pages: safety, install, import, legal texts, account pages. They
   keep their own markup (.container.legal, h2 sections, .warn, .cap-table);
   only the look comes from here. */
:root { --yes: #1e7d52; --part: #9a6700; --no: #6b7f8a; --warn: #b07800; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --yes: #4cc38a; --part: #e0b050; --no: #8fa3ad; --warn: #e0b050; } }
:root[data-theme="dark"] { --yes: #4cc38a; --part: #e0b050; --no: #8fa3ad; --warn: #e0b050; }
.container { max-width: 1120px; margin: 0 auto; }
.legal { max-width: 760px; margin: 0 auto; padding-block: 28px 64px; }
.legal h1 { font-size: clamp(36px, 5.4vw, 54px); margin-bottom: 12px; }
.legal .last-updated { font-family: var(--display); font-size: 15px; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.legal .last-updated a { color: var(--pen); }
.legal h1 + p:not(.last-updated), .legal .last-updated + p:not(.last-updated) { margin-top: 28px; }
.legal h2 { font-size: 25px; letter-spacing: .04em; margin: 48px 0 12px; }
.legal h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 12px; }
.legal h3 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 12px; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--pen); }
.legal strong { font-weight: 600; }
.legal em { font-style: italic; }
.legal code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.slash { display: none; }
.legal .warn { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); padding: 12px 16px; border-radius: 0 3px 3px 0; margin: 18px 0; }
.legal .faq-item { margin: 10px 0; }
.legal .faq-answer p { margin-bottom: 0; }
.legal .install-history { margin: 18px 0; }
.btn { cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.legal a.btn { text-decoration: none; }
.legal a.btn-primary { color: #fff; }
.download-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.install-shot { margin: 1.4rem 0 1.8rem; }
.install-shot img { width: 100%; max-width: 560px; border-radius: 3px; border: 1px solid var(--line); }
.install-shot figcaption { margin-top: .55rem; font-size: 15px; color: var(--muted); max-width: 560px; }
.cap-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 15px; min-width: 620px; }
.cap-table th, .cap-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cap-table thead th { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.cap-table tbody td:first-child { color: var(--muted); }
.cap-table .cap-note { font-weight: 400; color: var(--muted); font-size: 13px; }
.cap-table .y { color: var(--yes); font-weight: 600; }
.cap-table .p { color: var(--part); font-weight: 600; }
.cap-table .n { color: var(--no); }
.legal select.lang-select { font-size: 17px; padding: 8px 10px; }

@media (max-width: 900px) {
  .four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log { grid-template-columns: 1fr; }
  .log .portrait-photo { aspect-ratio: 16 / 10; object-position: center 70%; }
}
@media (max-width: 760px) {
  /* language menu beside the logo, the links get their own rows below */
  .top { gap: 12px 24px; }
  .top .lang-select { order: 1; }
  .top nav { order: 2; width: 100%; gap: 6px 18px; }
  .hero, .stop, .surfaceband .wrap, .themes { grid-template-columns: 1fr; }
  .stop.flip > :first-child { order: 0; }
  .descent { padding-left: 54px; }
  .descent::before { left: 20px; }
  .tag { left: -54px; width: 44px; font-size: 17px; }
  .fan { gap: 8px; }
  .shots.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots.three > :nth-child(3) { display: none; }
  .wristrow { grid-template-columns: 1fr 1fr; }
  .wristrow > :first-child { grid-column: 1 / -1; max-width: 260px; justify-self: center; }
  .shots.web .browser + .browser { width: 100%; margin: 0; }
}
@media (max-width: 460px) { .four { grid-template-columns: 1fr; } }
button.btn { border: 0; font-family: var(--display); }
.btn:disabled { opacity: .6; cursor: default; }

/* Pricing page */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; padding-block: 12px 8px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 24px 22px; display: grid; gap: 14px; }
.plan.pop { border: 2px solid var(--red); }
.plan .ribbon { position: absolute; top: -12px; left: 20px; white-space: nowrap; background: var(--red); color: #fff; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 10px; border-radius: 3px; }
.plan h2 { font-size: 34px; }
.plan .blurb { color: var(--muted); font-size: 16px; line-height: 1.45; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--display); }
.price .amt { font-size: 48px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { font-size: 18px; color: var(--muted); letter-spacing: .03em; }
.plan .alt { font-family: var(--display); font-size: 15px; letter-spacing: .04em; color: var(--muted); margin-top: -6px; }
.plan .list { font-size: 16px; line-height: 1.45; gap: 9px; }
.plan .list li.ai { color: var(--pen); }
.plan .btn { justify-self: start; margin-top: 4px; }
.addon { margin-block: 40px 8px; background: var(--deep); color: var(--on-deep); border-radius: 3px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.addon > div { min-width: 0; display: grid; gap: 12px; }
.addon .eyebrow { color: #9fbccb; }
.addon p { color: #c6d8e0; }
.addon .price .per, .addon .alt { color: #9fbccb; }
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-block: 40px 8px; }
.why > div { display: grid; gap: 8px; }
.why h3 { font-size: 24px; }
.why p { color: var(--muted); }
.fine { color: var(--muted); font-size: 15px; padding-bottom: 24px; }
.fine a { color: var(--pen); }
@media (max-width: 860px) {
  .plans, .addon, .why { grid-template-columns: 1fr; }
}
.page-head .lede { max-width: 58ch; }
.why + section .faq-list { padding-top: 32px; }
