/* Melvil site: the app's tokens (design system "Melvil"), light and dark from the system. */
:root {
  --surface: #FAFAF9; --raised: #FFFFFF; --sunken: #F2F1EF; --line: #E4E2DE; --line-strong: #8E8A83;
  --ink: #1C1B19; --muted: #5F5C56; --marigold: #F2A93B; --soft: #FCEBCF; --mink: #8A5600; --on: #1C1B19; --leaf: #2F7D47;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #161615; --raised: #1F1F1D; --sunken: #111110; --line: #2E2D2A; --line-strong: #72706A;
    --ink: #F2F1EE; --muted: #A29F98; --marigold: #F5B04A; --soft: #3A2C14; --mink: #F5B04A; --leaf: #5CC07E;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface); color: var(--ink); font: 16px/26px -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--mink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; }
.btn {
  font: inherit; font-size: 15px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn.primary { background: var(--marigold); border-color: var(--mink); color: var(--on); font-weight: 600; }
.muted { color: var(--muted); }
.hero { padding: 72px 24px 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--soft); color: var(--mink); font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); line-height: 1.08; max-width: 820px; }
.lead { margin: 0; font-size: 19px; line-height: 30px; max-width: 640px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 14px; }
.band { background: var(--sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
section.block { padding: 72px 24px; }
h2 { font-size: 32px; line-height: 40px; margin: 0 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 24px; }
.card p { margin: 0; color: var(--muted); }
.price { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.price .amount { display: flex; align-items: baseline; gap: 8px; }
.price .amount strong { font-size: 40px; line-height: 48px; }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price li { padding-left: 28px; position: relative; }
.price li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2.4px solid var(--leaf); border-bottom: 2.4px solid var(--leaf); transform: rotate(-45deg); }
.center { text-align: center; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; min-height: 72px; font-size: 14px; }
footer .links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.doc { max-width: 720px; padding: 56px 24px; }
.doc h1 { font-size: 36px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; line-height: 30px; margin: 32px 0 8px; }

.notice { margin: 8px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); font-size: 15px; }
/* --- Design review, November 2026 --- */
/* 1. Focus: marigold on the light surface is 1.8:1. Use the ink accent (6:1 light, 9:1 dark). */
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--mink); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { border-radius: 10px; }

/* 2. Text wrapping and tap targets */
h1, h2 { text-wrap: balance; }
.lead, .card p { text-wrap: pretty; }
nav a:not(.btn), footer a { display: inline-flex; align-items: center; min-height: 44px; }
summary { padding: 12px 0; }
details { padding: 0; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 10; background: var(--raised); color: var(--ink); padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 8px; }
.skip:focus { top: 8px; }

/* 3. Three cards: 3 columns from 720px, else one (auto-fit left a lone card at 768 and 640-700px) */
.grid3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 4. Header: brand + language + one action on phones; the section links return at 640px */
header.top .wrap { flex-wrap: nowrap; min-height: 56px; gap: 12px; }
nav { gap: 16px; flex-wrap: nowrap; }
.brand img { width: 28px; height: 28px; }
@media (max-width: 639px) {
  nav a.sec { display: none; }
  .brand { font-size: 17px; }
}

/* 5. Hero: two columns from 960px (text + illustration); one primary action */
.hero { padding: 48px 24px 40px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; padding: 80px 24px 72px; }
}
@media (max-width: 479px) { .ctas .btn { flex: 1 1 100%; justify-content: center; } }

/* 6. Calmer vertical rhythm on phones */
@media (max-width: 639px) {
  .band { padding: 48px 0; }
  section.block { padding: 48px 24px; }
  h2 { font-size: 26px; line-height: 34px; margin-bottom: 20px; }
}
/* Hero illustration */
.demo { margin: 0; width: 100%; max-width: 480px; }
.demo-win { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--sunken); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 5px; background: var(--line-strong); opacity: .45; }
.demo-bar span { margin-left: auto; margin-right: auto; transform: translateX(-21px); }
.demo-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.demo-cap { margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.demo-title { margin: 0 0 12px; font-size: 20px; line-height: 26px; font-weight: 700; }
.demo-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.demo-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 12px/16px ui-monospace, "SF Mono", Menlo, monospace; }
.demo-rows .f, .demo-rows .to { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-rows .to { color: var(--mink); }
.demo-rows .stay .f, .demo-rows .stay .to { color: var(--muted); }
.demo-foot { margin: 12px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.demo figcaption { margin-top: 12px; }
@media (max-width: 480px) { .demo-rows li { grid-template-columns: 1fr; gap: 0; } .demo-rows .to::before { content: "→ "; } }
nav a:not(.btn) { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .brand img { border-radius: 7px; outline: 1px solid var(--line); } }
