/* Newzy site — tokens mirror src/theme/palettes.ts (Paper palette). */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F3EEE5;
  --surface: #FFFCF6;
  --surface-alt: #ECE5D8;
  --ink: #1A1713;
  --ink-soft: #3C362D;
  --muted: #6B6358;
  --line: #E6DED0;
  --accent: #B44825;
  --accent-ink: #FFF5EC;
  --accent-soft: #F7E2D8;
  --teal: #1D4B43;
  --teal-light: #2F5C50;
  --gold: #C99A4B;
  --accent-strong: #9C3B1D;
  --band-gold: #E8C07A;
  --teal-deep: #1D4B43;
  --cream: #F3EEE5;
  --radius: 26px;
  --shadow: 0 12px 32px rgba(26, 23, 19, 0.06);
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141513;
    --surface: #1C1D1A;
    --surface-alt: #24251F;
    --ink: #F3EEE5;
    --ink-soft: #D8D1C5;
    --muted: #9C9284;
    --line: #2E2F28;
    --accent: #E5673C;
    --accent-ink: #1A120D;
    --accent-soft: #3A241C;
    --teal: #7FB7A9;
    --teal-light: #7FB7A9;
    --gold: #E8C07A;
    --accent-strong: #F29A76;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  display: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1rem;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.kicker {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  max-width: 38rem;
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-tinted {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head .lede {
  margin-top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  border-radius: 9px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
}

.site-nav a.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 760px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.84rem;
  }
  .site-nav a:nth-child(3),
  .site-nav a:nth-child(4) {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(180, 72, 37, 0.12), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(201, 154, 75, 0.12), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.05rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  line-height: 1.15;
}

.store-badge small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.7;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-badge .play-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--teal);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art .phone {
  width: min(380px, 100%);
}

/* Phone frame — Samsung Galaxy S25 */

.phone {
  position: relative;
  flex: none;
  width: min(340px, 100%);
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(150deg, #3d3d41 0%, #1b1b1e 40%, #0e0e10 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

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

/* centered punch-hole camera */
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #050505;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

/* volume and side keys */
.phone::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -2px;
  width: 2px;
  height: 16%;
  border-radius: 2px;
  background: linear-gradient(#4a4a4d 0 36%, transparent 36% 52%, #4a4a4d 52% 100%);
}

/* replaces the emulator status bar in the capture */
.device-status {
  position: absolute;
  top: 9px;
  right: 9px;
  left: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  border-radius: 29px 29px 0 0;
  background: #f3eee5;
  color: #1a1713;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.status-time {
  font-variant-numeric: tabular-nums;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icon {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-battery {
  width: 14px;
  height: 12px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon .icon {
  width: 20px;
  height: 20px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.tags span {
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

/* Screens */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  justify-items: center;
  max-width: 840px;
  margin: 0 auto;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.shot figcaption {
  max-width: 19rem;
  text-align: center;
}

.shot figcaption strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shot figcaption span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Personalisation */

.personalise-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.check-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.check-list .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  color: var(--accent);
}

.check-list strong {
  color: var(--ink);
  font-weight: 600;
}

.palette-panel {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.palette-panel .kicker {
  margin-bottom: 0.85rem;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  margin-bottom: 1.75rem;
}

.swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.swatch {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(26, 23, 19, 0.14);
  border-radius: 50%;
  background: var(--swatch-bg);
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--swatch-accent);
}

.swatch-name {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.langs li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Privacy band */

.privacy-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  background: var(--teal-deep);
  color: var(--cream);
}

.privacy-band::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(243, 238, 229, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.privacy-band .kicker {
  color: var(--band-gold);
}

.privacy-band h2 {
  max-width: 20ch;
}

.privacy-band .lede {
  max-width: 52rem;
  color: rgba(243, 238, 229, 0.82);
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.privacy-points li {
  display: flex;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 238, 229, 0.2);
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(243, 238, 229, 0.85);
}

.privacy-points .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  color: var(--band-gold);
}

.privacy-points strong {
  color: var(--cream);
  font-weight: 600;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(243, 238, 229, 0.45);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
}

.text-link:hover {
  color: var(--band-gold);
  border-color: var(--band-gold);
}

/* Closing CTA */

.section-cta {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--accent-soft);
  text-align: center;
}

.cta-panel h2 {
  max-width: 22ch;
}

.cta-panel .kicker {
  color: var(--accent-strong);
}

.cta-panel .lede {
  max-width: 40rem;
  margin-top: 0;
}

.cta-panel .store-badge {
  margin-top: 0.5rem;
  padding: 0.8rem 1.4rem;
}

.fineprint {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-title {
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid > div > a {
  display: block;
  padding: 0.18rem 0;
  color: var(--ink-soft);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-grid p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Legal pages */

.legal-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-alt), var(--bg));
}

.legal-hero h1 {
  max-width: 20ch;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.toc .kicker {
  margin-bottom: 0.75rem;
  font-size: 0.64rem;
}

.toc ol {
  display: grid;
  gap: 0.4rem;
  counter-reset: item;
}

.toc li {
  counter-increment: item;
}

.toc a {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.toc a::before {
  content: counter(item, decimal-leading-zero);
  padding-top: 0.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}

.toc a:hover {
  color: var(--accent);
}

.legal {
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.legal h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--ink);
  scroll-margin-top: 100px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 1rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .personalise-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    margin-top: 1rem;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-points {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 1rem;
  }
}

@media (max-width: 620px) {
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .legal,
  .legal-hero {
    max-width: none;
    padding: 0;
    border: 0;
    background: none;
  }
}
