/* The Inner Press · website styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #d2d2d7;
  --accent: #c8102e;
  --link: #0066cc;
  --button: #0071e3;
  --button-hover: #0077ed;
  --dark-bg: #000000;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;
  --nav: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
  --radius: 28px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", Georgia, serif;
  --wide: 1120px;
  --text-w: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #86868b;
    --line: #424245;
    --accent: #ff453a;
    --link: #2997ff;
    --nav: rgba(22, 22, 23, 0.72);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--button); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--wide), 100% - 32px); margin-inline: auto; }
.narrow { width: min(var(--text-w), 100% - 32px); margin-inline: auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav .pill { margin-left: 0; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .pill { margin-left: auto; }
}

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--button); color: #fff; border-radius: 980px;
  font-size: 17px; font-weight: 400; padding: 11px 22px; line-height: 1.2;
  transition: background .2s;
}
.pill:hover { background: var(--button-hover); text-decoration: none; }
.pill.small { font-size: 12px; padding: 5px 12px; }
.pill.ghost { background: transparent; color: var(--link); border: 1px solid var(--link); }
.pill.ghost:hover { background: var(--link); color: #fff; }
.more { font-size: 19px; }
.more::after { content: " ›"; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; }
.note { color: var(--faint); font-size: 14px; }

/* Type */
.eyebrow { color: var(--accent); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.display { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; letter-spacing: -0.02em; }
.headline { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; }
.title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--muted); font-weight: 400; letter-spacing: -0.01em; }
.lead strong { color: var(--text); font-weight: 600; }
.center { text-align: center; }
.serif { font-family: var(--serif); }

/* Sections */
section { padding: clamp(72px, 11vw, 140px) 0; }
.alt { background: var(--bg-alt); }
.dark { background: var(--dark-bg); color: var(--dark-text); }
.dark .lead { color: var(--dark-muted); }
.section-head { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head .lead { margin-top: 18px; }

/* Hero */
.hero { padding-top: clamp(44px, 6vw, 72px); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero .lead { max-width: 680px; margin: 22px auto 30px; }
.hero .note { margin-top: 14px; }
.devices { position: relative; margin-top: clamp(40px, 5vw, 56px); height: clamp(380px, 48vw, 600px); }
.phone {
  width: clamp(210px, 27vw, 330px); height: auto; aspect-ratio: 720 / 1508;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.22));
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) { .phone { filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.6)); } }
.devices .phone { position: absolute; top: 0; }
.devices .phone.center { z-index: 3; left: 50%; transform: translateX(-50%); }
.devices .phone.left { z-index: 2; left: 50%; transform: translateX(-112%) scale(.88); transform-origin: top; top: 7%; }
.devices .phone.right { z-index: 2; left: 50%; transform: translateX(12%) scale(.88); transform-origin: top; top: 7%; }
@media (max-width: 600px) {
  .devices .phone.left { transform: translateX(-100%) scale(.8); }
  .devices .phone.right { transform: translateX(0%) scale(.8); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: var(--radius); padding: 36px 32px 40px; }
.alt .step { background: var(--card); }
.step .num { font-family: var(--serif); font-size: 56px; font-weight: 700; line-height: 1; color: var(--accent); }
.step h3 { font-size: 28px; margin: 18px 0 10px; }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Split (text + visual) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split .lead { margin-top: 18px; }
.split .headline { font-size: clamp(36px, 4.6vw, 56px); }
.split ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.split li { padding-left: 28px; position: relative; color: var(--muted); }
.split li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.dark .split li { color: var(--dark-muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.paper { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); border-radius: 4px; transform: rotate(-2deg); background: #fff; }
.phone-solo { margin-inline: auto; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { background: var(--bg-alt); border-radius: var(--radius); padding: 34px 32px; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.alt .tile { background: var(--card); }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile h3 { font-size: 24px; line-height: 1.17; }
.tile p { color: var(--muted); font-size: 17px; }
.tile .icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 6px; }
.tile .big { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.tile .shot { margin: 18px auto -60px; width: 70%; max-width: 280px; border-radius: 34px 34px 0 0; box-shadow: var(--shadow); }
@media (max-width: 980px) { .tile, .tile.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: auto; } }

/* Style gallery */
.gallery-wrap { position: relative; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 340px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(16px, calc((100vw - var(--wide)) / 2)) 30px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.style-card { scroll-snap-align: center; }
.style-card img { border-radius: 6px; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45); background: #fff; aspect-ratio: 700 / 990; width: 100%; object-fit: cover; }
.style-card h3 { font-size: 21px; margin-top: 22px; display: flex; align-items: center; gap: 8px; }
.style-card p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 6px; background: var(--text); color: var(--bg); }
.gallery-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.gallery-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bg-alt); color: var(--text); font-size: 22px; line-height: 1;
}
.alt .gallery-nav button { background: var(--card); }
.gallery-nav button:hover { filter: brightness(.95); }

/* Audiences */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aud { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.aud:hover { text-decoration: none; }
.aud .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); display: grid; place-items: center; }
.alt .aud .pic { background: #e8e8ed; }
@media (prefers-color-scheme: dark) { .alt .aud .pic { background: #2c2c2e; } }
.aud .pic img { width: 72%; margin-top: 18%; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.aud:hover .pic img { transform: translateY(-8px); }
.aud .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.aud h3 { font-size: 24px; }
.aud p { color: var(--muted); font-size: 16px; flex: 1; }
.aud .more { font-size: 16px; color: var(--link); margin-top: 8px; }
.score { font-family: var(--serif); font-weight: 700; font-size: 72px; letter-spacing: -0.03em; color: var(--text); line-height: 1; text-align: center; }
.score small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; }
@media (max-width: 980px) { .audiences { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; } }

/* Film */
.film { width: min(360px, 100%); margin-inline: auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 16; }
.film video { width: 100%; height: 100%; object-fit: cover; }

/* Facts (privacy) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.fact h3 { font-size: 21px; margin: 12px 0 6px; }
.fact p { color: var(--dark-muted); font-size: 16px; }
.fact svg { width: 36px; height: 36px; color: var(--dark-text); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin-inline: auto; }
.plan { background: var(--card); border-radius: var(--radius); padding: 40px 36px; display: flex; flex-direction: column; }
.plan.plus { outline: 2px solid var(--text); }
.plan h3 { font-size: 28px; }
.plan .price { font-size: 40px; font-weight: 700; margin: 14px 0 2px; letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 30px; font-weight: 300; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 26px; max-width: 680px; }

/* Final CTA */
.final { text-align: center; }
.final img { width: 112px; height: 112px; margin: 0 auto 28px; }
.final .lead { margin: 18px auto 32px; max-width: 600px; }

/* Text pages (legal, support) */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.page h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; margin-bottom: 14px; }
.page .lead { margin-bottom: 48px; }
.page h2 { font-size: 24px; margin: 44px 0 10px; }
.page h3 { font-size: 19px; margin: 28px 0 6px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; }
.page strong { color: var(--text); font-weight: 600; }
.page address { font-style: normal; color: var(--text); line-height: 1.6; }
.todo { background: #fff3b0; color: #6b5300; padding: 0 4px; border-radius: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0 8px; }
.card { background: var(--bg-alt); border-radius: 20px; padding: 26px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { font-size: 16px; }

/* Footer */
footer { background: var(--bg-alt); color: var(--faint); font-size: 12px; line-height: 1.5; padding: 40px 0 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-cols h4 { margin: 0 0 10px; font-size: 12px; color: var(--text); font-weight: 600; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-cols a { color: var(--muted); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
.foot-bottom a { color: var(--muted); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }

/* Reveal on scroll (only for elements below the fold, set by site.js) */
.pre { opacity: 0; transform: translateY(40px); }
.in { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .pre { opacity: 1; transform: none; } .in { transition: none; } }
