/* PartyPlanner4U landing page. Colours are the app's Party Mix theme
   (lib/ui/app_theme.dart); type is the app's Bricolage Grotesque and
   Montserrat, subset to Latin. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/BricolageGrotesque-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Montserrat-Bold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --card: #fffefa;
  --text: #07151b;
  --muted: #40545b;
  --line: #cfdce0;
  --outline: #5c7077;
  --primary: #006b88;
  --primary-hover: #005a73;
  --on-primary: #ffffff;
  --primary-soft: #c7eff8;
  --yellow: #ffd800;
  --yellow-soft: #fff3a6;
  --accent: #b83a00;
  --peach: #ffdfd3;
  --frame: #07151b;
  --shadow: 0 24px 60px rgb(7 21 27 / 0.14);
  --shadow-soft: 0 10px 30px rgb(7 21 27 / 0.1);

  --font-display: "Bricolage Grotesque", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-control: 16px;
  --radius-card: 24px;
  --radius-hero: 32px;
  --gutter: 16px;
  --section: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07151b;
    --card: #182c33;
    --text: #f4f1e8;
    --muted: #d5e1e4;
    --line: #2b434b;
    --outline: #91a4aa;
    --primary: #61d7f4;
    --primary-hover: #8ee3f8;
    --on-primary: #07151b;
    --primary-soft: #123847;
    --yellow-soft: #493f00;
    --accent: #ffb69f;
    --peach: #632000;
    --frame: #2b434b;
    --shadow: 0 24px 60px rgb(0 0 0 / 0.45);
    --shadow-soft: 0 10px 30px rgb(0 0 0 / 0.35);
  }
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
    --section: 96px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --section: 120px;
  }
}

*,
*::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(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  transition:
    background-color 120ms ease-out,
    border-color 120ms ease-out;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  border-color: var(--outline);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--primary);
}

.btn-small {
  min-height: 48px;
  padding: 10px 18px;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Header */

.site-header {
  padding-block: 12px;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 44px;
  height: 44px;
}

.site-nav {
  display: none;
}

.site-nav a,
.login-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 12px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.login-link:hover {
  color: var(--primary);
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
    gap: 4px;
  }
}

@media (max-width: 479px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Hero */

.hero {
  padding-block: 24px 56px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow-soft);
  font-weight: 700;
  font-size: 0.875rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 1.35rem + 4vw, 4.25rem);
}

.lead {
  margin-top: 20px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.reassure {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* A bigger tap area for the inline "Log in" link, without moving text. */
.reassure a {
  display: inline-block;
  margin-block: -12px;
  padding: 12px 4px;
  font-weight: 700;
}

@media (max-width: 599px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 520 / 600;
  margin-inline: auto;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 4% 6%;
  border-radius: var(--radius-hero);
  background: linear-gradient(
    135deg,
    var(--primary-soft),
    var(--yellow-soft)
  );
}

.phone {
  margin: 0;
  border: 8px solid var(--frame);
  border-radius: 40px;
  background: var(--frame);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone img {
  border-radius: 32px;
}

.hero-visual .phone {
  position: absolute;
  top: 0;
  left: 34%;
  width: 52%;
}

.hero-invite {
  position: absolute;
  left: 2%;
  bottom: 5%;
  width: 36%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: rotate(-7deg);
}

.room-chip {
  position: absolute;
  right: 0;
  bottom: 10%;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 0.8125rem;
  color: var(--muted);
}

.room-chip strong {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

@media (min-width: 960px) {
  .hero {
    padding-block: 48px 72px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}

/* Trust bar */

.trust {
  padding-block: 8px var(--section);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.trust-list strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.trust-list span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 860px) {
  .trust-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Benefit sections */

.benefit {
  padding-block: 0 var(--section);
}

.benefit-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.pain {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
}

.benefit h2 {
  margin-top: 12px;
  font-size: clamp(1.875rem, 1.3rem + 2.3vw, 2.875rem);
}

.benefit p.body {
  margin-top: 16px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-weight: 700;
  font-size: 0.875rem;
}

.visual {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 10% 4% 6% 4%;
  border-radius: var(--radius-hero);
  background: var(--visual-tint, var(--primary-soft));
}

.visual-rsvp {
  --visual-tint: var(--peach);
  aspect-ratio: 520 / 560;
}

.visual-rsvp .phone {
  position: absolute;
  top: 0;
  right: 6%;
  width: 50%;
}

.visual-rsvp .designs {
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
}

.designs img {
  position: absolute;
  width: 80%;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.designs img:nth-child(1) {
  top: 2%;
  left: 2%;
  transform: rotate(-5deg);
}

.designs img:nth-child(2) {
  top: 26%;
  left: 16%;
  transform: rotate(3deg);
}

.designs img:nth-child(3) {
  top: 50%;
  left: 4%;
  transform: rotate(-2deg);
}

.visual-plan {
  --visual-tint: var(--yellow-soft);
  aspect-ratio: 520 / 560;
}

.visual-plan .phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  transform: translateX(-50%);
}

.visual-games {
  aspect-ratio: 520 / 460;
}

.screen {
  margin: 0;
  border: 8px solid var(--frame);
  border-radius: 18px;
  background: var(--frame);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen img {
  border-radius: 10px;
}

.visual-games .screen {
  position: absolute;
  top: 4%;
  left: 0;
  width: 86%;
}

.visual-games .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32%;
  border-width: 6px;
  border-radius: 30px;
}

.visual-games .phone img {
  border-radius: 24px;
}

@media (min-width: 960px) {
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .benefit-reverse .benefit-copy {
    order: 2;
  }
}

/* How it works */

.how {
  padding-block: 0 var(--section);
}

.section-head {
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.3vw, 2.875rem);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--yellow);
  color: #07151b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
}

.steps h3 {
  font-size: 1.375rem;
}

.steps p {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: var(--muted);
}

.how .cta-row {
  margin-top: 32px;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FAQ */

.faq {
  padding-block: 0 var(--section);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  max-width: 52rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat,
    var(--primary-soft);
}

.faq details[open] summary::after {
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    var(--primary-soft);
}

.faq details p {
  padding: 0 24px 24px;
  color: var(--muted);
}

/* Final call to action */

.final {
  padding-block: 0 var(--section);
}

.final-card {
  padding: 48px 24px;
  border-radius: var(--radius-hero);
  background: linear-gradient(
    135deg,
    var(--primary-soft),
    var(--yellow-soft)
  );
  text-align: center;
}

.final-card h2 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
}

.final-card p {
  max-width: 36rem;
  margin: 16px auto 0;
  font-size: 1.125rem;
}

.final-card .cta-row {
  justify-content: center;
}

.final-card .reassure {
  color: var(--text);
}

@media (min-width: 600px) {
  .final-card {
    padding: 72px 48px;
  }
}

/* Footer */

.site-footer {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 8px;
  color: var(--muted);
  font-weight: 700;
}
