/* Modella — modella.savaskoc.de
   Light, warm-neutral. One accent (Kiln Terracotta) carried over from the app.
   Craft bar: Things / Bear / Craft and Apple's own product pages. */

:root {
  --paper: #faf8f5;
  --paper-sunk: #f2eee8;
  --ink: #171512;
  --ink-2: #5f5952;
  --ink-3: #746d65;
  --hairline: #e4ddd3;
  --accent: #da6445;
  --accent-deep: #9e3a1b;
  --accent-wash: #f7e8e4;

  --measure: 34rem;
  --page: 68rem;
  --radius: 14px;
  --radius-sm: 10px;

  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.5rem);
  --step-2: clamp(1.625rem, 1.45rem + 0.85vw, 2.25rem);
  --step-3: clamp(2.125rem, 1.75rem + 1.85vw, 3.25rem);
  --step-4: clamp(2.625rem, 2.0rem + 3.1vw, 4.25rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  font-weight: 640;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; display: block; }

/* ---------------------------------------------------------------- layout */

.page {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  border-top: 1px solid var(--hairline);
}

.section__head {
  max-width: 30rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section > .section__head:last-child { margin-bottom: 0; }

.section__head p {
  margin-top: 1.125rem;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.lede {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------------- nav */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark img { width: 28px; height: 28px; border-radius: 6.5px; }

.masthead nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: var(--step--1);
}

.masthead nav a {
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.006em;
}

.masthead nav a:hover { color: var(--ink); text-decoration: none; }

@media (max-width: 46rem) {
  .masthead nav a[data-optional] { display: none; }
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 550;
  font-size: var(--step-0);
}

.btn-text svg { width: 15px; height: 15px; }

/* ----------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem);
}

.hero__copy p { margin-top: 1.5rem; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hero__copy p.hero__fineprint {
  margin-top: 1.125rem;
  color: var(--ink-3);
  font-size: var(--step--1);
  letter-spacing: 0;
}

@media (max-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: var(--step--1);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* ------------------------------------------------------------- documents */

.doc { padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(4rem, 3rem + 4vw, 6rem); }
.doc > * + * { margin-top: 1.25rem; }
.doc h2 { margin-top: 3rem; font-size: var(--step-2); }
.doc h3 { margin-top: 2rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.5rem; }
.doc__meta { color: var(--ink-3); font-size: var(--step--1); }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .reveal[data-pending] { opacity: 0; transform: translateY(18px); }
}

/* --------------------------------------------------- hero phone */

.phone {
  margin: 0 auto;
  max-width: 340px;
  padding: 10px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .35);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.own-model {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
  align-items: center;
}

.own-model .section__head { margin-bottom: 0; }

@media (max-width: 760px) {
  .own-model { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .own-model .phone { order: 2; }
}

.appstore { display: inline-block; line-height: 0; }
.appstore img { display: block; height: 50px; width: auto; }
.appstore--sm img { height: 40px; }
