/* Ramus site, second design (2026-10-20). Built by scripts/build-site.py.
   Palette and type come from the app icon: a cream slab-serif R on deep indigo, with an
   amber bud. Apple's own faces (New York for display, SF for text) — nothing is downloaded. */

:root {
  --indigo-950: #12143f;
  --indigo-900: #1b1d5e;
  --indigo-700: #252884;
  --indigo-500: #3f43b0;
  --indigo-300: #8b8ff5;
  --cream: #f6eedc;
  --amber: #f2b84b;
  --paper: #f6f6fb;
  --surface: #ffffff;
  --tint: #ecedfa;
  --ink: #17183a;
  --muted: #595c80;
  --line: #dcdcee;
  --accent: var(--indigo-500);
  --serif: ui-serif, "New York", "Iowan Old Style", "Hiragino Mincho ProN", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1131;
    --surface: #171a45;
    --tint: #1d2058;
    --ink: #ecebf7;
    --muted: #a3a5c8;
    --line: #2b2e66;
    --accent: var(--indigo-300);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Languages: hide the others. */
html[lang="en"] [data-lang]:not([data-lang="en"]),
html[lang="de"] [data-lang]:not([data-lang="de"]),
html[lang="ja"] [data-lang]:not([data-lang="ja"]),
html[lang="ko"] [data-lang]:not([data-lang="ko"]) { display: none; }

/* Header: indigo glass, the same over the hero and over the page. */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--indigo-950) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  color: var(--cream);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 600 19px/1 var(--serif); }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { color: color-mix(in srgb, var(--cream) 78%, transparent); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--cream); }
.lang {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; color: var(--cream);
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.lang option { color: #17183a; }

/* Hero: the icon's indigo field, with the map that grows. */
.hero {
  background:
    radial-gradient(1200px 600px at 12% -10%, #4a4fc9 0%, transparent 60%),
    linear-gradient(180deg, var(--indigo-900), var(--indigo-950));
  color: var(--cream);
  padding: 72px 0 88px;
  margin-top: -61px; padding-top: 133px;   /* runs under the glass header */
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero h1 {
  font: 600 clamp(2.6rem, 2rem + 3.2vw, 4.6rem)/1.04 var(--serif);
  letter-spacing: -0.02em; margin: 0 0 24px; text-wrap: balance;
}
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: color-mix(in srgb, var(--cream) 82%, transparent); margin: 0 0 28px; max-width: 34em; text-wrap: pretty; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--cream); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent); }
/* Korean: Apple's serif has no Hangul; the system sans in a heavy weight carries the same
   voice. Break between words, never inside one. */
:lang(ko) .hero h1, :lang(ko) .page-head h1, :lang(ko) h2, :lang(ko) .tile h3, :lang(ko) .shot figcaption strong, :lang(ko) .price, :lang(ko) .root { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; }
:lang(ko) body, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .leaves li { word-break: auto-phrase; }

/* The map: a root node, four branches, four buds. */
.tree { --row: 76px; display: grid; grid-template-columns: auto clamp(48px, 6vw, 96px) minmax(0, 1fr); align-items: center; }
.root {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--indigo-900);
  font: 600 22px/1 var(--serif); padding: 14px 18px 14px 14px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(6, 7, 40, 0.45);
}
.root img { width: 34px; height: 34px; border-radius: 22.5%; }
.branches { width: 100%; height: calc(var(--row) * 4); overflow: visible; }
.branches path { fill: none; stroke: color-mix(in srgb, var(--cream) 75%, transparent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.leaves { list-style: none; margin: 0; padding: 0; }
.leaves li {
  height: var(--row); display: flex; align-items: center; gap: 14px;
  font: 500 clamp(1rem, 0.9rem + 0.4vw, 1.2rem)/1.3 var(--sans); color: var(--cream);
}
.leaves li::before { content: ""; flex: none; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--amber); }
.leaves li span { text-wrap: balance; border-bottom: 2px solid color-mix(in srgb, var(--cream) 30%, transparent); padding-bottom: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .branches path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: grow 0.7s cubic-bezier(.3,.7,.3,1) forwards; }
  .branches path:nth-child(2) { animation-delay: 0.15s; }
  .branches path:nth-child(3) { animation-delay: 0.3s; }
  .branches path:nth-child(4) { animation-delay: 0.45s; }
  .branches path:nth-child(1) { animation-delay: 0s; }
  .leaves li { opacity: 0; transform: translateX(-8px); animation: bud 0.5s ease-out forwards; }
  .leaves li:nth-child(1) { animation-delay: 0.55s; }
  .leaves li:nth-child(2) { animation-delay: 0.7s; }
  .leaves li:nth-child(3) { animation-delay: 0.85s; }
  .leaves li:nth-child(4) { animation-delay: 1s; }
  .root { animation: bud 0.5s ease-out both; }
}
@keyframes grow { to { stroke-dashoffset: 0; } }
@keyframes bud { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Sections */
section.block { padding: 96px 0 0; }
h2 { font: 600 clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem)/1.12 var(--serif); letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance; }
.intro { color: var(--muted); font-size: 1.1rem; max-width: 38em; margin: 0 0 32px; }

/* Devices: a segmented control and one picture at a time. */
.devices { position: relative; }
.devices input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); margin-bottom: 28px; }
.seg label { padding: 8px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
#dev-mac:checked ~ .seg label[for="dev-mac"],
#dev-ipad:checked ~ .seg label[for="dev-ipad"],
#dev-iphone:checked ~ .seg label[for="dev-iphone"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 24, 58, 0.18); }
#dev-mac:focus-visible ~ .seg label[for="dev-mac"],
#dev-ipad:focus-visible ~ .seg label[for="dev-ipad"],
#dev-iphone:focus-visible ~ .seg label[for="dev-iphone"] { outline: 3px solid var(--amber); outline-offset: 2px; }
.shot { display: none; margin: 0; }
#dev-mac:checked ~ .shots .shot-mac,
#dev-ipad:checked ~ .shots .shot-ipad,
#dev-iphone:checked ~ .shots .shot-iphone { display: grid; }
.shot { grid-template-columns: minmax(0, 1fr) 15em; gap: 36px; align-items: center; }
.shot img { border-radius: 14px; box-shadow: 0 30px 70px -30px rgba(18, 20, 63, 0.55), 0 0 0 1px var(--line); }
.shot-ipad img { border-radius: 22px; max-height: 760px; width: auto; justify-self: center; }
.shot-iphone img { border-radius: 40px; max-height: 720px; width: auto; justify-self: center; }
.shot figcaption { color: var(--muted); font-size: 1.05rem; }
.shot figcaption strong { display: block; color: var(--ink); font: 600 1.35rem/1.25 var(--serif); margin-bottom: 8px; }

/* Features: tiles of different sizes, each with the real screen it describes. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 18px; }
.tile { border-radius: 26px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font: 600 1.4rem/1.2 var(--serif); margin: 0; }
.tile p { margin: 0; color: var(--muted); max-width: 34em; }
.tile img { border-radius: 14px; margin-top: auto; }
.t-outline { grid-column: span 3; grid-row: span 2; background: var(--surface); border: 1px solid var(--line); }
.t-outline img { box-shadow: 0 0 0 1px var(--line); }
.t-tasks { grid-column: span 3; background: var(--tint); display: grid; grid-template-columns: 1fr 11em; align-items: center; gap: 24px; }
.t-tasks img { margin: 0; box-shadow: 0 0 0 1px var(--line); }
.t-themes { grid-column: span 3; background: var(--indigo-950); color: var(--cream); display: grid; grid-template-columns: 1fr 13em; align-items: center; gap: 24px; }
.t-themes p { color: color-mix(in srgb, var(--cream) 75%, transparent); }
.t-themes img { margin: 0; }
.t-private { grid-column: span 4; background: #0e1027; color: var(--cream); padding: 0; position: relative; min-height: 360px; }
.t-private img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0.55; }
.t-private div { position: relative; padding: 28px; margin-top: auto; background: linear-gradient(transparent, rgba(8, 9, 30, 0.92) 40%); padding-top: 90px; }
.t-private p { color: color-mix(in srgb, var(--cream) 82%, transparent); }
.t-works { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: stretch; }
.plan { border-radius: 26px; padding: 32px; }
.plan h3 { font: 600 1.25rem/1.2 var(--sans); margin: 0 0 6px; }
.price { font: 600 clamp(2.2rem, 2rem + 1vw, 3rem)/1 var(--serif); margin: 4px 0 4px; letter-spacing: -0.02em; }
.price small { font: 500 1rem/1 var(--sans); margin-left: 6px; opacity: 0.8; letter-spacing: 0; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; }
.plan li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.plan-free { background: var(--surface); border: 1px solid var(--line); }
.plan-pro { background: linear-gradient(160deg, #3a3fb8, var(--indigo-900) 70%); color: var(--cream); }
.plan-pro li { border-top-color: color-mix(in srgb, var(--cream) 18%, transparent); }
.plan-pro li::before { border: 0; background: var(--amber); }
.fine { color: var(--muted); font-size: 0.95rem; margin: 18px 0 0; max-width: 46em; }
details.compare { margin-top: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
details.compare summary { cursor: pointer; padding: 16px 22px; font-weight: 600; }
.table-wrap { overflow-x: auto; padding: 0 22px 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td:first-child { color: var(--muted); }
td:last-child, th:last-child { color: var(--accent); font-weight: 600; }

/* Document pages: an indigo head like the home hero, then a reading column. */
.page-head {
  background:
    radial-gradient(900px 420px at 10% -20%, #4a4fc9 0%, transparent 60%),
    linear-gradient(180deg, var(--indigo-900), var(--indigo-950));
  color: var(--cream);
  margin-top: -61px; padding: 125px 0 56px;
}
.page-head h1 { font: 600 clamp(2.1rem, 1.7rem + 2vw, 3.6rem)/1.08 var(--serif); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
/* Long compounds (Datenschutzerklärung) break with a hyphen instead of running off a phone. */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.page-head .lead { color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: 1.15rem; max-width: 40em; margin: 0 0 10px; text-wrap: pretty; }
.page-head .muted { color: color-mix(in srgb, var(--cream) 62%, transparent); font-size: 0.95rem; margin: 0; }
.page-404 { min-height: 70vh; display: flex; align-items: center; }
.page-404 .btn { margin-top: 18px; background: var(--cream); color: var(--indigo-900); }

.doc { max-width: 780px; padding-top: 40px; }
.doc h2 { font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.8rem); margin: 52px 0 14px; }
.doc p, .doc li { line-height: 1.75; }
.doc ul { padding-left: 1.2em; }
.doc .muted { color: var(--muted); font-size: 0.95rem; }
.doc code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tint); border-radius: 6px; padding: 1px 6px; }
.doc table { display: block; overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.doc th, .doc td { min-width: 9em; }
.doc tr:first-child th { border-top: 0; }
.doc td:last-child, .doc th:last-child { color: inherit; font-weight: inherit; }
.doc th:last-child { color: var(--muted); font-weight: 600; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: 12px 24px; text-decoration: none; font-weight: 600; }
@media (prefers-color-scheme: dark) { .doc .btn { color: var(--indigo-950); } }

.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; }
.doc summary { cursor: pointer; padding: 15px 20px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); transform: translateY(-1px); }
.doc details[open] summary::before { background: var(--amber); border-color: var(--amber); }
.doc details p { margin: 0; padding: 0 20px 18px 41px; color: var(--muted); }

.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 28px 10px; margin: 18px 0; }
.phase h2 { margin: 10px 0 8px; }
.phase ul { margin: 0 0 14px; }
.phase .note { color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--line); padding-top: 12px; }
.phase-tag { display: inline-block; border-radius: 999px; padding: 3px 13px; font-size: 13px; font-weight: 700; }
.phase-tag.now { background: var(--amber); color: #3a2a05; }
.phase-tag.next { background: var(--indigo-500); color: #fff; }
.phase-tag.later { background: var(--tint); color: var(--accent); border: 1px solid var(--line); }
.phase-tag.never { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.phase:first-of-type { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }

footer { margin-top: 110px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { color: var(--muted); }
.top nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 6px; text-decoration-thickness: 2px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Narrow screens */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .shot { grid-template-columns: 1fr; gap: 18px; }
  .bento { grid-template-columns: 1fr; }
  .t-outline, .t-tasks, .t-themes, .t-private, .t-works { grid-column: auto; grid-row: auto; }
  .t-tasks, .t-themes { grid-template-columns: 1fr; }
  .t-tasks img, .t-themes img { max-width: 320px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .top nav a.opt { display: none; }      /* still in the footer */
  .hero { padding-bottom: 64px; }
  .tree { --row: 62px; }
  .root { font-size: 18px; padding: 10px 14px 10px 10px; }
  .root img { width: 26px; height: 26px; }
  section.block { padding-top: 72px; }
  .seg label { padding: 8px 16px; }
  .tile, .plan { padding: 22px; border-radius: 22px; }
}
