/* ============================================================
   Easy Nights website — one stylesheet for every page.
   Colours and fonts match the Easy Nights app.
   ============================================================ */

/* ---------- Fonts (stored on this site, nothing loads from Google) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-soft-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-soft-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours and sizes ---------- */
:root {
  --midnight: #0F1330;
  --deep-night: #0B0E26;
  --card: #1A2048;
  --line: #2A3166;
  --line-soft: #232A5A;
  --gold: #F6D98B;
  --gold-hover: #F9E4AD;
  --lavender: #A99CF0;
  --lavender-light: #CFC6FA;
  --text: #F3EEFF;
  --muted: #B8B5D6;
  --blush: #E7A1B0;
  --ink: #1A1640;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);

  color-scheme: dark;
}

/* ---------- Basics ---------- */
*, *::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(--midnight);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
svg { display: block; }
a { color: var(--lavender-light); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
strong { font-weight: 800; }

.serif, .site-header .brand span, .footer-brand .brand span {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 760px; }

/* Line icons */
.i {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i--sm { width: 24px; height: 24px; }

/* Details that still need filling in show highlighted */
.todo {
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(246, 217, 139, 0.16);
  outline: 1px dashed var(--gold);
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-size: 24px; font-weight: 600; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: var(--lavender-light);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold); font-weight: 800; }

.btn-trial {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(246, 217, 139, 0.2);
}
.btn-trial:hover { background: var(--gold-hover); color: var(--ink); }

@media (max-width: 760px) {
  .site-header .btn-trial { order: 2; }
  .site-header .nav { order: 3; width: 100%; margin-left: -12px; }
}

/* ---------- Home: opening section ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(16px, 3vw, 32px) 0 150px; }
.hero__sky, .hero__hills { position: absolute; left: 0; width: 100%; pointer-events: none; }
.hero__sky { top: 0; height: 100%; }
.hero__hills { bottom: 0; height: 230px; }
.hero__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.hero__text { flex: 1 1 460px; min-width: 0; }

.eyebrow {
  color: var(--lavender);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lede { margin-top: 22px; max-width: 540px; color: var(--muted); font-size: 20px; line-height: 1.6; text-wrap: pretty; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.price-note { color: var(--lavender-light); font-size: 16px; font-weight: 700; line-height: 1.45; }

/* "Coming soon" stands in for Apple's badge until the app is live */
.soon {
  min-height: 56px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  border: 2px solid var(--lavender-light);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}
.soon svg { width: 18px; height: 18px; }

.chips { margin-top: 26px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(169, 156, 240, 0.14);
  border: 1px solid rgba(169, 156, 240, 0.28);
  color: var(--lavender-light);
  font-size: 14px;
  font-weight: 700;
}

.hero__visual { flex: 1 1 400px; min-width: 0; position: relative; display: flex; justify-content: center; padding-top: 56px; }
.hero__glow { position: absolute; left: 50%; top: 52%; width: 460px; max-width: 100%; height: auto; transform: translate(-50%, -50%); }
.hero__moon { position: absolute; left: calc(50% + 96px); top: -6px; width: 210px; height: 210px; }
@media (max-width: 560px) {
  .hero__moon { left: auto; right: -40px; top: 0; width: 150px; height: 150px; }
}

/* The phone showing the app */
.phone {
  position: relative;
  width: 280px;
  height: 580px;
  padding: 30px 16px 0;
  border: 10px solid #232A5C;
  border-radius: 46px;
  background: var(--midnight);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.phone__greet { color: #9A97C2; font-size: 11px; font-weight: 700; }
.phone__title { margin-top: 2px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 19px; font-weight: 600; line-height: 1.2; }
.phone__pick { margin-top: 14px; border-radius: 20px; overflow: hidden; background: var(--card); }
.phone__pick > svg { width: 100%; height: 118px; }
.phone__row { padding: 10px 12px 12px; display: flex; align-items: center; gap: 8px; }
.phone__row > div { flex: 1 1 0; }
.phone__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 15px; font-weight: 600; }
.phone__meta { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; }
.phone__play { width: 34px; height: 34px; flex-shrink: 0; border-radius: 17px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.phone__play svg { width: 14px; height: 14px; }
.phone__label { margin-top: 16px; font-size: 13px; font-weight: 800; }
.phone__grid { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phone__grid svg { width: 100%; height: 76px; border-radius: 14px; }
.phone__grid p { margin-top: 6px; font-size: 11px; font-weight: 800; line-height: 1.3; }

/* ---------- Home: "Hello, little star." ---------- */
.signature { background: var(--deep-night); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.signature .wrap { display: flex; flex-direction: column; align-items: center; }
.chime { width: 56px; height: 56px; border-radius: 28px; background: rgba(246, 217, 139, 0.12); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.signature .eyebrow { margin-top: 18px; }
.signature__line {
  margin-top: 14px;
  color: var(--gold);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(40px, 5vw, 60px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}
.signature__text { margin-top: 20px; max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--deep { background: var(--deep-night); }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 660px; }
.section-title {
  margin-top: 12px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}
.section-intro { margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.note { margin-top: 24px; color: var(--muted); font-size: 15px; }

.tile {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(169, 156, 240, 0.16);
  color: var(--lavender-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile--sm { width: 48px; height: 48px; border-radius: 16px; }
.tile--blush { background: rgba(231, 161, 176, 0.16); color: var(--blush); }

/* How every story works */
.steps { margin-top: 44px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.step { padding: 28px; border-radius: 28px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.step__num { margin-top: 6px; color: var(--lavender); font-size: 13px; font-weight: 800; }
.step h3 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 26px; font-weight: 600; }
.step p:last-child { color: var(--muted); font-size: 16px; }

/* Two columns that stack on a phone */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 400px; min-width: 0; }

.star-list { margin-top: 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.star-list li { display: flex; gap: 14px; }
.star-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; }
.star-list .muted { color: var(--muted); }

/* "Hear their name" example card */
.name-card { padding: 32px; border-radius: 32px; background: var(--card); display: flex; flex-direction: column; gap: 20px; }
.name-card__label { color: var(--lavender); font-size: 14px; font-weight: 800; }
.name-card__row { display: flex; align-items: center; gap: 18px; }
.name-card__row > div { flex: 1 1 0; min-width: 0; }
.play-icon { width: 64px; height: 64px; flex-shrink: 0; border-radius: 32px; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.play-icon svg { width: 24px; height: 24px; }
.name-card__name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 36px; font-weight: 600; line-height: 1.1; }
.wave { width: 100%; height: 28px; margin-top: 8px; }
.divider { height: 1px; background: var(--line); }
.field-label { font-size: 15px; font-weight: 800; }
.field { min-height: 52px; margin-top: -8px; padding: 0 18px; border-radius: 16px; border: 1px solid #3A4280; background: var(--midnight); display: flex; align-items: center; font-size: 18px; font-weight: 700; }
.field-hint { margin-top: -6px; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Stories */
.stories { margin-top: 44px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 28px 20px; }
.story__art { height: 160px; border-radius: 24px; overflow: hidden; }
.story__art svg { width: 100%; height: 160px; }
.story h3 { margin-top: 14px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.story p { margin-top: 4px; color: var(--muted); font-size: 15px; font-weight: 700; }

/* For grown-ups */
.features { margin-top: 44px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 36px 40px; }
.feature { display: flex; gap: 18px; }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Privacy promise */
.promise { padding: clamp(28px, 4vw, 52px); border-radius: 36px; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: 36px 56px; }
.promise > div { flex: 1 1 420px; min-width: 0; }
.promise h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; line-height: 1.15; }
.promise p { margin-top: 16px; color: var(--muted); line-height: 1.65; }
.link-gold { margin-top: 18px; min-height: 44px; display: inline-flex; align-items: center; color: var(--gold); font-size: 16px; font-weight: 800; }
.link-gold:hover { color: var(--gold-hover); }
.ticks { flex: 1 1 300px; min-width: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { padding: 16px 18px; border-radius: 18px; background: var(--midnight); display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; }
.ticks svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.pricing .wrap { max-width: 820px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pricing .section-intro { max-width: 560px; }
.plans { margin-top: 40px; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; text-align: left; }
.plan { position: relative; padding: 30px; border-radius: 28px; background: var(--card); border: 2px solid var(--line); }
.plan--best { border-color: var(--gold); }
.plan__save { position: absolute; top: -14px; right: 24px; padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 800; }
.plan h3 { color: var(--lavender-light); font-size: 18px; font-weight: 800; }
.plan__price { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 46px; font-weight: 600; line-height: 1.1; }
.plan__per { color: var(--muted); font-size: 16px; font-weight: 700; }
.plan__sub { margin-top: 6px; color: var(--muted); font-size: 16px; }
.plans-note { margin-top: 24px; font-size: 16px; }
.pricing .soon { margin-top: 32px; }
.fine { margin-top: 28px; max-width: 640px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.fine a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 36px; }
.site-footer--deep { background: var(--deep-night); }
.footer-top { display: flex; flex-wrap: wrap; gap: 36px 64px; }
.footer-brand { flex: 1 1 260px; min-width: 0; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-row svg { width: 30px; height: 30px; }
.footer-brand .brand span { font-size: 22px; }
.footer-brand p { margin-top: 14px; max-width: 280px; color: var(--muted); font-size: 15px; }
.footer-col { flex: 0 1 200px; display: flex; flex-direction: column; }
.footer-col h2 { margin-bottom: 4px; color: var(--lavender); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: 13px; }

/* ---------- Privacy, support and terms pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.page-hero__sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-top: 12px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(40px, 5vw, 60px); font-weight: 600; line-height: 1.08; }
.page-hero .dateline { margin-top: 14px; color: var(--muted); font-size: 16px; font-weight: 700; }
.page-hero .intro { margin-top: 14px; color: var(--muted); font-size: 18px; }

.prose { padding-bottom: clamp(64px, 9vw, 104px); display: flex; flex-direction: column; gap: 52px; }
.prose h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 28px; font-weight: 600; line-height: 1.2; }
.prose section > p, .prose .card > p { margin-top: 14px; }
.prose section > ul:not(.star-list) { margin-top: 14px; padding-left: 22px; }
.prose section > ul:not(.star-list) > li { margin-top: 8px; }
.prose a { font-weight: 700; }

.card { padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: var(--card); }
.card .star-list { margin-top: 18px; gap: 12px; }
.card .star-list svg { width: 16px; height: 16px; margin-top: 6px; }
.card > ul:not(.star-list) { margin-top: 16px; padding-left: 22px; }
.card > ul:not(.star-list) > li { margin-top: 8px; }

.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.55; text-align: left; }
thead tr { background: var(--card); }
th, td { padding: 14px 18px; vertical-align: top; }
thead th { color: var(--muted); font-weight: 800; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 800; }

.numbered { margin-top: 18px; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.numbered li { counter-increment: step; display: flex; gap: 16px; }
.numbered li::before {
  content: counter(step);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.contact-end { padding-top: 28px; border-top: 1px solid var(--line); }

/* Support page */
.contact-card { padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: var(--card); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.contact-card .tile { width: 64px; height: 64px; border-radius: 22px; background: rgba(246, 217, 139, 0.14); color: var(--gold); }
.contact-card > div { flex: 1 1 300px; min-width: 0; }
.contact-card h2 { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 28px; font-weight: 600; }
.contact-card .email { margin-top: 6px; font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.contact-card .email a { color: var(--gold); }
.contact-card .muted { margin-top: 6px; color: var(--muted); }

.faq { margin-top: 8px; }
.faq > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq h3 { font-size: 18px; font-weight: 800; }
.faq p { margin-top: 6px; color: var(--muted); }

/* Page not found */
.not-found { padding: clamp(48px, 8vw, 96px) 0 clamp(80px, 10vw, 128px); text-align: center; }
.not-found .wrap { display: flex; flex-direction: column; align-items: center; }
.not-found svg { width: 180px; height: 180px; }
.not-found h1 { margin-top: 20px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(36px, 5vw, 52px); font-weight: 600; line-height: 1.1; }
.not-found p { margin-top: 14px; max-width: 460px; color: var(--muted); font-size: 18px; }
.not-found .btn-trial { margin-top: 28px; }

/* Footer details */
.footer-brand .brand-row span { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 22px; font-weight: 600; }
.footer-col p { margin-top: 2px; color: var(--muted); font-size: 14px; }

/* The app's tab bar at the bottom of the phone */
.phone__tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  padding: 9px 10px 0;
  border-top: 1px solid var(--line-soft);
  background: var(--midnight);
  display: flex;
  justify-content: space-around;
}
.phone__tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9A97C2; font-size: 9px; font-weight: 800; }
.phone__tab--on { color: var(--gold); }
.phone__tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Small screens */
@media (max-width: 760px) {
  .site-header .wrap { gap: 8px 12px; }
  .site-header .btn-trial { padding: 0 18px; }
  .site-header .nav { gap: 2px; margin-left: -8px; }
  .site-header .nav a { padding: 0 8px; font-size: 15px; }
}
@media (max-width: 560px) {
  .hero__sky .stars-gold { display: none; }
}
