/* ==========================================================================
   KitchenKreate — Marketing Site Styles
   All design tokens live in :root below. Change colors, spacing, fonts here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (edit these to re-theme the whole site)
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette (from the 5-band scheme) */
  --color-bg: #ffffff;
  --color-coral: #fd5d69;        /* primary accent — buttons, highlights */
  --color-coral-dark: #e8434f;   /* darker coral for hover/active */
  --color-rose: #eb9c99;         /* soft pink accent */
  --color-rose-tint: #fbeeed;    /* soft rose wash for alternate blocks */
  --color-aqua: #97cec6;         /* secondary accent */
  --color-mint: #c6ece8;         /* bright pale mint */
  --color-mint-tint: #eaf6f4;    /* soft mint wash for section blocks */
  --color-navy: #3d5570;         /* deep slate — accent headings, dark UI */
  --color-navy-dark: #33475f;    /* darker slate for hover / headings */
  --color-charcoal: #33475f;     /* heading text — slate */
  --color-grey: #5c6b73;         /* body text — slate grey */
  --color-grey-light: #8a959b;   /* muted captions / meta */
  --color-border: #e6ecea;       /* hairline borders */

  /* Back-compat aliases (older rules referenced these names) */
  --color-teal: var(--color-navy);
  --color-sage: var(--color-aqua);
  --color-sage-tint: var(--color-mint-tint);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 5.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.05rem, 2vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --lh-tight: 1.15;
  --lh-body: 1.65;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(46, 74, 74, 0.06),
    0 1px 2px rgba(46, 74, 74, 0.04);
  --shadow-md: 0 10px 30px rgba(46, 74, 74, 0.08),
    0 4px 10px rgba(46, 74, 74, 0.04);
  --shadow-lg: 0 24px 60px rgba(46, 74, 74, 0.12);
  --transition: 200ms ease;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-grey);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  color: var(--color-charcoal);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--color-coral-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-coral);
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Accessible focus styles */
:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Visually-hidden but screen-reader accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-teal);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-7);
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-6);
  }
}

/* Softly-tinted section block (alternate with plain white) */
.section--tint {
  background: var(--color-sage-tint);
}

.section__head {
  max-width: var(--maxw-narrow);
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section__head h2 {
  font-size: var(--fs-h2);
}

.section__head p {
  font-size: var(--fs-lead);
  color: var(--color-grey);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: var(--space-1);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85em 1.6em;
  font-size: var(--fs-body);
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--color-coral);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-coral-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-teal);
  border-color: var(--color-sage);
}
.btn--ghost:hover {
  background: var(--color-sage-tint);
  color: var(--color-teal);
}

/* App Store badge placeholder (swap for Apple's official badge) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.7em 1.4em;
  background: var(--color-teal);
  color: #fff;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.appstore-badge:hover {
  background: #24393a;
  color: #fff;
  transform: translateY(-1px);
}
.appstore-badge svg {
  flex: none;
  width: 26px;
  height: 26px;
}
.appstore-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.appstore-badge__text small {
  font-size: 0.65rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}
.appstore-badge__text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-teal);
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--color-teal);
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__links a {
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: var(--fs-body);
}
.nav__links a:hover {
  color: var(--color-coral-dark);
}

/* Coming soon call-to-action — bold coral text (not a button) */
.nav__cta,
.nav__links a.nav__cta {
  color: var(--color-coral);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav__cta:hover,
.nav__links a.nav__cta:hover {
  color: var(--color-coral-dark);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--color-teal);
}
.nav__toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav__links[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: var(--space-2);
    border-radius: var(--radius);
  }
  .nav__links a:hover {
    background: var(--color-sage-tint);
  }
  .nav__links .btn {
    margin-top: var(--space-1);
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-7) var(--space-6);
  background: linear-gradient(180deg, #fff 0%, var(--color-sage-tint) 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-3);
}

.hero h1 .accent {
  color: var(--color-coral);
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--color-grey);
  margin-bottom: var(--space-4);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.hero__note {
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-grey-light);
}

/* Hero visual — a phone mockup previewing the video→recipe flow */
.hero__visual {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Phone frame (used in hero + screenshots section)
   -------------------------------------------------------------------------- */
.phone {
  position: relative;
  width: 260px;
  /* Aspect chosen so the app screen + 7px inset + 10px bezel padding leaves
     an even white gap all around (accounts for padding + inset) */
  aspect-ratio: 260 / 495;
  background: #2a3a4d;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  flex: none;
}

.phone::before {
  /* notch */
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 20px;
  background: #2a3a4d;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: var(--color-sage-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder content shown until a real screenshot is dropped in */
.phone__placeholder {
  text-align: center;
  padding: var(--space-3);
  color: var(--color-teal);
}
.phone__placeholder svg {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-2);
  opacity: 0.55;
}
.phone__placeholder span {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-grey);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }
  .hero__content {
    max-width: none;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__lead {
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   7b. Hero animated demo (fake screen-recording inside the phone)
   -------------------------------------------------------------------------- */
.demo {
  position: relative;
  /* match the app's warm off-white so the gap blends seamlessly */
  background: #fffdf9;
}
.demo__frame {
  position: absolute;
  /* white gap framing the app on all sides. Size the <img> explicitly:
     as a replaced element it won't stretch from top/left/right/bottom, so we
     set width/height directly to fill the inset box and stay centered. */
  top: 7px;
  left: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 450ms ease;
}
.demo__frame.is-active {
  opacity: 1;
}
/* Hide the phone notch on the animated hero so the app screen bleeds
   edge-to-edge (the status bar is already cropped from the screenshots) */
.hero__visual .phone::before {
  display: none;
}
/* Tap ripple that hints where a finger presses */
.demo__tap {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(253, 93, 105, 0.3);
  border: 2px solid rgba(253, 93, 105, 0.85);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.demo__tap.is-on {
  animation: demo-tap 720ms ease-out;
}
@keyframes demo-tap {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo__frame {
    transition: none;
  }
  .demo__tap {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. How it works — 3-step strip
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  list-style: none;
}

.step {
  text-align: center;
  padding: var(--space-3);
}

.step__icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--color-coral);
}
.step__icon svg {
  width: 32px;
  height: 32px;
}
.step__icon::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-navy);
  border-radius: 50%;
}

.step h3 {
  font-size: var(--fs-h3);
  color: var(--color-navy);
}
.step p {
  color: var(--color-grey);
  margin: 0;
  font-size: var(--fs-body);
}

/* Connector arrows between steps (desktop only) */
.steps .step:not(:last-child) .step__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--space-3));
  width: calc(var(--space-4) + var(--space-2));
  height: 2px;
  background: var(--color-aqua);
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 420px;
    margin-inline: auto;
  }
  .steps .step:not(:last-child) .step__icon::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Features grid
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.feature {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Lead / featured card spans wider on desktop */
.feature--lead {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--color-mint-tint) 0%, #fff 70%);
  border-color: var(--color-mint);
}

.feature__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-mint-tint);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}
.feature--lead .feature__icon {
  background: var(--color-coral);
  color: #fff;
}
.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-size: var(--fs-h3);
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}
.feature p {
  margin: 0;
  color: var(--color-grey);
}

.feature__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-coral-dark);
  background: #fff;
  border: 1px solid var(--color-rose);
  padding: 0.2em 0.7em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature--lead {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .feature--lead {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   10. Screenshots gallery
   -------------------------------------------------------------------------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  justify-items: center;
}
.shots .phone {
  width: 100%;
  max-width: 240px;
}
.shots .phone__placeholder strong {
  color: var(--color-navy);
}

@media (max-width: 900px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) var(--space-4);
  }
}
@media (max-width: 480px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10b. Document / legal / support pages
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--color-mint-tint) 100%);
  padding-block: var(--space-6) var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: var(--fs-h2);
}
.page-hero p {
  color: var(--color-grey);
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.page-hero .meta {
  font-size: var(--fs-small);
  color: var(--color-grey-light);
  margin-top: var(--space-2);
}

.doc {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.doc h2 {
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-top: var(--space-5);
  padding-top: var(--space-2);
}
.doc h2:first-child {
  margin-top: 0;
}
.doc h3 {
  font-size: 1.1rem;
  color: var(--color-charcoal);
  margin-top: var(--space-3);
}
.doc p,
.doc li {
  color: var(--color-grey);
}
.doc ul,
.doc ol {
  padding-left: 1.25em;
  margin: 0 0 var(--space-2);
}
.doc ul li {
  list-style: disc;
  margin-bottom: 0.4em;
}
.doc ol li {
  list-style: decimal;
  margin-bottom: 0.4em;
}
.doc a {
  text-decoration: underline;
}
.doc a.btn {
  text-decoration: none;
}

/* Placeholder callout — mark where real content goes */
.placeholder {
  border: 1px dashed var(--color-rose);
  background: var(--color-rose-tint);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-charcoal);
}
.placeholder::before {
  content: "PLACEHOLDER";
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--color-coral);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-pill);
  margin-right: 0.6em;
  vertical-align: 1px;
}
.placeholder p:last-child {
  margin-bottom: 0;
}

/* Inline "confirm before publishing" marker for draft legal text */
.todo {
  color: var(--color-coral-dark);
  font-style: italic;
  font-weight: 500;
}

/* Table of contents for long docs */
.toc {
  background: var(--color-mint-tint);
  border: 1px solid var(--color-mint);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
}
.toc h2 {
  margin: 0 0 var(--space-1);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: 0;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
}
.toc li {
  list-style: decimal;
  margin-bottom: 0.25em;
}

/* Support contact card */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
  max-width: var(--maxw-narrow);
  margin: 0 auto var(--space-4);
}
.contact-card__icon {
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-mint-tint);
  color: var(--color-navy);
}
.contact-card__icon svg {
  width: 30px;
  height: 30px;
}
.contact-card__body {
  flex: 1;
  min-width: 220px;
}
.contact-card__body h3 {
  margin-bottom: 0.2em;
}
.contact-card__body p {
  margin: 0;
  color: var(--color-grey);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   10c. Feature showcases (alternating image + copy, real screenshots)
   -------------------------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
  padding-block: var(--space-5);
}
.showcase + .showcase {
  border-top: 1px solid var(--color-border);
}
.showcase__media {
  display: flex;
  justify-content: center;
}
/* Reverse: put the media on the right on desktop */
.showcase--reverse .showcase__media {
  order: 2;
}

.showcase__body {
  max-width: 460px;
}
.showcase__body h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}
.showcase__body p {
  color: var(--color-grey);
  font-size: var(--fs-lead);
}
.showcase__list {
  margin-top: var(--space-2);
}
.showcase__list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.4em;
  color: var(--color-grey);
}
.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
}

/* Clean device screenshot (rounded corners + shadow, no heavy bezel) */
.device {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1170 / 2387;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  background: #fff;
  object-fit: cover;
  object-position: top center;
}
.device-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
}
.device-frame .device {
  display: block;
}
/* Placeholder shown until the real screenshot is added */
.device-ph {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1170 / 2387;
  border-radius: 30px;
  border: 1px dashed var(--color-sage);
  background: var(--color-mint-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  color: var(--color-navy);
}
.device-ph strong {
  font-size: var(--fs-body);
}
.device-ph span {
  font-size: var(--fs-small);
  color: var(--color-grey);
  margin-top: 0.3em;
}

/* Trio of devices (video: YouTube / Instagram / TikTok) */
.device-trio {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.device-trio .device,
.device-trio .device-ph {
  max-width: 180px;
}
.device-trio .device-ph {
  aspect-ratio: 1170 / 2387;
}

@media (max-width: 820px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
    padding-block: var(--space-4);
  }
  /* Always show the image first on mobile, regardless of desktop order */
  .showcase__media,
  .showcase--reverse .showcase__media {
    order: -1;
  }
  .showcase__body {
    max-width: none;
    margin-inline: auto;
  }
  .showcase__list {
    display: inline-block;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  color: #cfd8e2;
  padding-block: var(--space-6) var(--space-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand .brand {
  color: #fff;
  margin-bottom: var(--space-2);
}
.footer__brand p {
  color: #aab8c6;
  font-size: var(--fs-small);
  max-width: 34ch;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.footer__col ul li {
  margin-bottom: var(--space-1);
}
.footer__col a {
  color: #cfd8e2;
  font-size: var(--fs-body);
}
.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: var(--fs-small);
  color: #aab8c6;
}
.footer__bottom a {
  color: #cfd8e2;
}
.footer__bottom a:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
  }
  .footer__brand {
    grid-column: span 2;
  }
}

/* --------------------------------------------------------------------------
   12. Motion — scroll reveal (progressive enhancement)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
