/* LottaLou — theme mirrored from the app (src/theme/) */

:root {
  /* Primary — coral */
  --primary-50: #FEF2EE;
  --primary-100: #FCE1D7;
  --primary-200: #F9C2B0;
  --primary-300: #F69E86;
  --primary-400: #F4825F;
  --primary-500: #F2664B;
  --primary-600: #C2402A;
  --primary-700: #94301F;
  --primary-800: #6B2316;
  --primary-900: #46170E;

  /* Neutrals — cream to plum ink */
  --neutral-50: #FFF7F0;
  --neutral-100: #F8ECE3;
  --neutral-200: #EDDCD2;
  --neutral-300: #D9C2B8;
  --neutral-400: #AE948C;
  --neutral-500: #8A6F6E;
  --neutral-600: #6F545B;
  --neutral-700: #523A4B;
  --neutral-800: #41283E;
  --neutral-900: #2B1A29;

  --peach: #FFB199;
  --accent-sky: #C7DCE8;
  --accent-sage: #CFDCC8;
  --accent-lavender: #DCD3E8;
  --accent-butter: #F4E6BE;
  --accent-rose: #F0CFD4;
  --accent-peach: #FFCFBD;

  --success: #4D8A5E;
  --error: #C03B47;

  --surface: #ffffff;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-subtle: 0 1px 4px rgba(43, 26, 41, 0.04);
  --shadow-card: 0 2px 10px rgba(43, 26, 41, 0.07);
  --shadow-raised: 0 4px 16px rgba(43, 26, 41, 0.10);
  --shadow-floating: 0 6px 20px rgba(43, 26, 41, 0.18);

  --font-brand: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    system-ui, sans-serif;

  --measure: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-700);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-brand);
  color: var(--neutral-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--primary-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 247, 240, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--neutral-200);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--neutral-800);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover {
  text-decoration: none;
}
.logo svg {
  width: 40px;
  height: auto;
  display: block;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--neutral-600);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.nav a:hover {
  color: var(--neutral-900);
  background: var(--neutral-100);
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav .nav-link {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-500);
  color: #fff;
  box-shadow: var(--shadow-raised);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-soft {
  background: var(--primary-100);
  color: var(--primary-600);
}
.btn-soft:hover {
  background: var(--primary-200);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background: radial-gradient(
      60% 60% at 20% 30%,
      rgba(255, 177, 153, 0.35) 0%,
      rgba(255, 177, 153, 0) 70%
    ),
    radial-gradient(
      50% 50% at 85% 15%,
      rgba(199, 220, 232, 0.45) 0%,
      rgba(199, 220, 232, 0) 70%
    );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-100);
  color: var(--primary-600);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-500);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--neutral-600);
  max-width: 34em;
}

/* ---------- Signup form ---------- */

.signup {
  margin-top: 28px;
  max-width: 480px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

@media (max-width: 480px) {
  .signup-row {
    flex-direction: column;
  }
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--neutral-900);
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}
.signup input[type="email"]::placeholder {
  color: var(--neutral-400);
}
.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-300);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.signup-note {
  margin: 12px 2px 0;
  font-size: 0.85rem;
  color: var(--neutral-500);
}

.form-status {
  margin: 12px 2px 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--success);
}
.form-status.err {
  color: var(--error);
}

/* ---------- Phone ---------- */

/* A real screenshot of the app, so the frame is only the device around it —
   the status bar and the notch are in the image. */
.phone {
  width: min(300px, 82vw);
  margin: 0 auto;
  background: var(--neutral-900);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-floating);
}

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

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

/* ---------- Sections ---------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.section-head {
  max-width: 620px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  color: var(--neutral-600);
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.section-alt .card {
  box-shadow: none;
  border: 1px solid var(--neutral-200);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--neutral-600);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.icon-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  margin-bottom: 16px;
}
.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-600);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-badge.sky {
  background: #eaf2f7;
}
.icon-badge.sky svg {
  stroke: #3d6f8c;
}
.icon-badge.sage {
  background: #eef3ea;
}
.icon-badge.sage svg {
  stroke: #4d7047;
}
.icon-badge.lav {
  background: #f0edf6;
}
.icon-badge.lav svg {
  stroke: #5a4c78;
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.1rem;
}

.step p {
  color: var(--neutral-600);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Privacy strip ---------- */

.strip {
  background: var(--neutral-800);
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 52px);
}

.strip h2 {
  color: #fff;
}

.strip p {
  color: rgba(255, 255, 255, 0.75);
}

.strip ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.strip li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
}

.strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--primary-400);
  border-bottom: 2.5px solid var(--primary-400);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.strip a {
  color: var(--primary-300);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--neutral-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary-500);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "\2013";
}

.faq details p {
  margin: 12px 0 0;
  color: var(--neutral-600);
  font-size: 0.98rem;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background: linear-gradient(160deg, var(--peach), var(--primary-500));
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 64px) 24px;
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

.cta .signup {
  margin-left: auto;
  margin-right: auto;
}

.cta .signup-note {
  color: rgba(255, 255, 255, 0.85);
}

.cta .btn-primary {
  background: var(--neutral-900);
}
.cta .btn-primary:hover {
  background: #1d1019;
}

.cta .form-status.ok {
  color: #fff;
}
.cta .form-status.err {
  color: #ffe2e4;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--neutral-800);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 40px;
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .logo {
  color: var(--neutral-50);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(40px, 6vw, 72px) 0 80px;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--neutral-500);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 40px;
  padding-top: 8px;
}

.legal h3 {
  font-size: 1.08rem;
  margin-top: 26px;
  font-family: var(--font-ui);
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--neutral-700);
  font-size: 1rem;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 1rem;
}

.legal li {
  margin-bottom: 8px;
}

.legal .toc {
  background: var(--surface);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.legal .toc h2 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  font-family: var(--font-ui);
  font-weight: 700;
}

.legal .toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 600px) {
  .legal .toc ol {
    columns: 1;
  }
}

.legal .toc li {
  margin-bottom: 6px;
  break-inside: avoid;
}

/* ---------- Story ---------- */

.story .eyebrow {
  margin-bottom: 20px;
}

/* `.legal p` sets a font-size and outranks `.lead` on specificity, so the lead
   needs saying again here or it renders at body size. */
.story .lead {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--neutral-600);
  max-width: 32em;
  margin-bottom: 28px;
}

/* The one sentence the page is built around: the value proposition, set as a
   pull quote so a reader who scrolls past the prose still lands on it. */
.pull {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--primary-50);
  border-left: 3px solid var(--primary-500);
  border-radius: var(--radius-md);
}

.pull p {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--neutral-900);
}

.story-cta {
  margin-top: 56px;
}

.callout {
  background: var(--primary-50);
  border-left: 3px solid var(--primary-400);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: top;
}

th {
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tbd {
  background: var(--accent-butter);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  color: var(--neutral-800);
  font-size: 0.92em;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised);
}
