/* voiceCraftee's site: the app's lavender look (colors from frontend/src/global.css), light and dark */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --background: #f5f3ff;
  --foreground: #1b1c2e;
  --surface: #ffffff;
  --surface-tertiary: #ebe8fb;
  --muted: #64657a;
  --accent: #6a55e0;
  --accent-foreground: #ffffff;
  --accent-soft-bg: #efebff;
  --accent-soft-fg: #4b3bb8;
  --periwinkle: #a597f5;
  --border: #ecebf5;
  --shadow: 0 24px 60px -24px rgba(74, 56, 190, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #10112a;
    --foreground: #eceaff;
    --surface: #1a1b3a;
    --surface-tertiary: #2a2b57;
    --muted: #a3a3c4;
    --accent: #a99bff;
    --accent-foreground: #10112a;
    --accent-soft-bg: #2a2556;
    --accent-soft-fg: #cfc6ff;
    --periwinkle: #bfb4ff;
    --border: #2a2b55;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 17px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  padding: 18px 0;
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand .craftee {
  color: var(--periwinkle);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  opacity: 0.85;
}
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
  box-shadow: none;
}

/* Hero */
.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.7rem);
  font-weight: 800;
  max-width: 15ch;
}
.lead {
  margin: 20px 0 32px;
  max-width: 34rem;
  font-size: 19px;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.note {
  color: var(--muted);
  font-size: 15px;
}

/* Phone screenshots */
.phone {
  margin: 0;
  border-radius: 34px;
  border: 7px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero .phone {
  width: min(300px, 78vw);
  justify-self: center;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 32px;
}

.features {
  display: grid;
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
}
.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 18px 0 8px;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
}
.icon svg {
  width: 22px;
  height: 22px;
}

.also {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.also li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
}

/* A row of three phones; it scrolls sideways on narrow screens, the page doesn't */
.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(240px, 68vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 20px 28px;
  margin: 0 -20px;
}
.screens figure {
  margin: 0;
  scroll-snap-align: center;
}
.screens figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.closing {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 56px 24px;
}
.closing h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.closing p {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Text pages: legal, account deletion, not found */
.page {
  max-width: 720px;
  padding: 32px 0 72px;
}
.page h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.page h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 40px 0 10px;
  scroll-margin-top: 16px;
}
.page p,
.page li {
  color: var(--foreground);
}
.page .meta {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 15px;
}
.page .intro {
  font-size: 19px;
}
.toc {
  margin: 24px 0 8px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.toc ol {
  margin: 0;
  padding-left: 22px;
}
.toc li {
  margin: 4px 0;
}
.steps {
  padding-left: 22px;
}
.steps li {
  margin: 8px 0;
}
.callout {
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
}
.callout p {
  color: inherit;
  margin: 0;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 15px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.foot nav a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
}
.foot nav a:hover {
  color: var(--accent);
}
.foot p {
  margin: 6px 0;
}

@media (min-width: 760px) {
  .wrap {
    padding: 0 32px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .screens {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    padding: 8px 0 0;
    margin: 0;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 64px 0 96px;
  }
  .hero .phone {
    width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
