/* stjernholm.biz — big, visual app site */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --red: #f0432a;
  --red-deep: #d92d14;
  --ink: #0b0b0d;          /* the always-dark hero */
  --ink-2: #1a1a1d;
  --on-ink: #f5f5f7;
  --on-ink-muted: #a1a1a6;
  --radius: 28px;
  --max: 1180px;
  --todo-bg: #fff6d6;
  --todo-line: #e9c84a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --todo-bg: #3a3214;
    --todo-line: #8a7424;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 19px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Header: glassy, over the dark hero */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 13, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; flex-wrap: wrap; }
.brand { font-weight: 600; color: var(--on-ink); font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--on-ink-muted); font-size: 14px; }
.nav a:hover { color: var(--on-ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--on-ink); }

/* Type */
h1, h2, h3 { margin: 0 0 0.4em; letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; }
h1 { font-size: clamp(48px, 9vw, 104px); }
h2 { font-size: clamp(36px, 6vw, 68px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.4; color: var(--muted); max-width: 820px; font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; color: var(--red); margin-bottom: 14px; letter-spacing: -0.01em; }
.small { font-size: 15px; color: var(--muted); }

section { padding: clamp(80px, 12vw, 150px) 0; }
.alt { background: var(--bg-alt); }

/* Dark hero */
.hero {
  background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden;
  padding: clamp(80px, 12vw, 140px) 0 clamp(90px, 12vw, 150px); text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(600px 420px at 50% 34%, rgba(240, 67, 42, 0.42), transparent 70%),
              radial-gradient(900px 600px at 50% 120%, rgba(240, 67, 42, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero .lede { color: var(--on-ink-muted); margin: 0 auto; }
.hero .eyebrow { color: #ff7a63; }
.hero-icon {
  width: clamp(150px, 22vw, 240px); height: auto; margin: 0 auto 40px;
  border-radius: 22.5%;
  box-shadow: 0 30px 80px rgba(240, 67, 42, 0.35), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.hero-icons { display: flex; justify-content: center; gap: clamp(20px, 4vw, 48px); margin-bottom: 48px; }
.hero-icons img { width: clamp(120px, 18vw, 200px); border-radius: 22.5%; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(240, 67, 42, 0.25); }
.hero-icons img:nth-child(2) { transform: translateY(24px); }

/* Buttons */
.actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.btn { display: inline-block; padding: 16px 30px; border-radius: 999px; font-weight: 600; font-size: 18px; border: 0; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-deep); }
.btn.secondary { color: var(--red); background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
.hero .btn.secondary { color: var(--on-ink); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }
.link-arrow { font-size: 19px; font-weight: 500; }
.link-arrow::after { content: " ›"; }

/* Big app showcase cards */
.showcase { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.app-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 56px 40px 0;
  background: var(--ink); color: var(--on-ink); text-align: center; min-height: 620px;
  display: flex; flex-direction: column; align-items: center;
}
.app-tile:hover { text-decoration: none; }
.app-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 320px at 50% 78%, rgba(240, 67, 42, 0.38), transparent 70%);
  transition: opacity 0.3s ease; opacity: 0.8;
}
.app-tile:hover::before { opacity: 1; }
.app-tile > * { position: relative; }
.app-tile .platform { font-size: 15px; font-weight: 600; color: #ff7a63; margin-bottom: 8px; }
.app-tile h3 { font-size: clamp(36px, 4vw, 48px); margin-bottom: 10px; }
.app-tile p { color: var(--on-ink-muted); font-size: 20px; max-width: 420px; margin: 0 auto 18px; }
.app-tile .link-arrow { color: #ff7a63; }
.app-tile img { width: 260px; margin-top: auto; margin-bottom: -40px; border-radius: 22.5%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transition: transform 0.4s ease; }
.app-tile:hover img { transform: translateY(-14px) rotate(-2deg); }
.app-tile.light { background: var(--bg-alt); color: var(--text); }
.app-tile.light p { color: var(--muted); }
.app-tile.soon { min-height: 0; padding: 48px 40px; border: 2px dashed var(--line); background: transparent; color: var(--text); justify-content: center; }
.app-tile.soon::before { display: none; }
.app-tile.soon p { color: var(--muted); }

/* Feature grid: big tiles */
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(6, 1fr); margin-top: 64px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 44px 40px; grid-column: span 2; border: 1px solid var(--line); }
.alt .tile { border-color: transparent; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile .big { font-size: clamp(44px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 18px;
  background: linear-gradient(135deg, #ff7a63, var(--red-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile h3 { margin-bottom: 10px; }
.tile p { color: var(--muted); margin: 0; font-size: 18px; }
.tile.dark { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.tile.dark p { color: var(--on-ink-muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: auto; } }

/* Mac window mock (illustration of a recording) */
.mac {
  max-width: 960px; margin: 72px auto 0; border-radius: 16px; overflow: hidden; text-align: left;
  background: #1c1c1f; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mac-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #2a2a2e; }
.mac-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: 12px; color: #a1a1a6; font-size: 13px; }
.mac-body { padding: 28px; display: grid; gap: 18px; color: var(--on-ink); }
.rec-row { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.rec-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(240, 67, 42, 0.25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(240, 67, 42, 0.05); } }
.rec-time { font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.track { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 14px; font-size: 14px; color: #a1a1a6; }
.wave { height: 54px; border-radius: 10px; background: #111113; position: relative; overflow: hidden; }
.wave::before {
  content: ""; position: absolute; inset: 6px 12px;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 7px);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'><path d='M0 18 L20 12 L40 16 L60 4 L80 14 L100 8 L120 17 L140 2 L160 12 L180 15 L200 6 L220 13 L240 3 L260 16 L280 10 L300 14 L320 5 L340 12 L360 17 L380 9 L400 15 L400 25 L380 31 L360 23 L340 28 L320 35 L300 26 L280 30 L260 24 L240 37 L220 27 L200 34 L180 25 L160 28 L140 38 L120 23 L100 32 L80 26 L60 36 L40 24 L20 28 L0 22 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'><path d='M0 18 L20 12 L40 16 L60 4 L80 14 L100 8 L120 17 L140 2 L160 12 L180 15 L200 6 L220 13 L240 3 L260 16 L280 10 L300 14 L320 5 L340 12 L360 17 L380 9 L400 15 L400 25 L380 31 L360 23 L340 28 L320 35 L300 26 L280 30 L260 24 L240 37 L220 27 L200 34 L180 25 L160 28 L140 38 L120 23 L100 32 L80 26 L60 36 L40 24 L20 28 L0 22 Z' fill='black'/></svg>") center / 100% 100% no-repeat;
}
.wave.you { color: #ff7a63; }
.wave.other { color: #8e8eff; }
.wave.other::before { transform: scaleX(-1); }
.summary { background: #f5f5f7; color: #1d1d1f; border-radius: 12px; padding: 22px 24px; font-size: 15px; line-height: 1.5; }
.summary b { display: block; font-size: 17px; margin-bottom: 6px; }
.summary ul { margin: 8px 0 0; padding-left: 18px; }
.summary .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--red-deep); background: #ffe5df; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }
.illustration-note { text-align: center; font-size: 13px; color: var(--on-ink-muted); margin-top: 18px; }

/* iPhone mock */
.phone {
  width: 300px; margin: 64px auto 0; aspect-ratio: 9 / 19.5; border-radius: 52px; padding: 14px;
  background: #1c1c1f; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #3a3a3e;
}
.phone-screen { height: 100%; border-radius: 40px; background: linear-gradient(#2c2c30, #18181b); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; color: var(--on-ink); position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 12px; width: 100px; height: 30px; border-radius: 20px; background: #000; }
.phone .rec-time { font-size: 40px; }
.phone .big-button { width: 150px; height: 150px; border-radius: 50%; border: 8px solid #f0f0f5; display: grid; place-items: center; }
.phone .big-button::after { content: ""; width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(#ff6a52, #e22d12); }
.chips { display: flex; gap: 8px; }
.chips span { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #d1d1d6; }

/* Split section: text beside visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img.icon-xl { width: min(380px, 100%); margin: 0 auto; border-radius: 22.5%; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Lists and steps */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 19px; }
.facts li { padding-left: 32px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--red);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); }
ol.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 20px; margin: 0; font-size: 19px; }
ol.steps li { counter-increment: s; padding-left: 56px; position: relative; min-height: 40px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.card { background: var(--surface); border-radius: var(--radius); padding: 44px 40px; border: 1px solid var(--line); }
.card h3 { margin-bottom: 22px; }
.two { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); margin-top: 56px; text-align: left; }
.two .actions { justify-content: flex-start; }

/* Prose (notes, privacy) */
.page-head { background: var(--ink); color: var(--on-ink); padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 90px); }
.page-head .lede { color: var(--on-ink-muted); }
.page-head .eyebrow { color: #ff7a63; }
.prose { max-width: 760px; font-size: 19px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; font-size: 22px; }
.prose li { margin-bottom: 8px; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 21px; }
.post-list time { display: block; font-size: 15px; color: var(--muted); }

.todo { background: var(--todo-bg); border: 1px dashed var(--todo-line); border-radius: 10px; padding: 14px 16px; color: var(--text); font-size: 16px; }
.todo::before { content: "To fill in: "; font-weight: 700; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
