/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

/* ==========================================================================
   Base / resets
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

::-moz-selection {
  background: #f8c9b8;
  text-shadow: none;
}

::selection {
  background: #f8c9b8;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --ink: #222636;
  --ink-soft: #4a4560;

  --plum-900: #1b1630;
  --plum-700: #2a2340;
  --plum-500: #3a3159;

  --orange: #e8502e;
  --orange-600: #d3421f;
  --orange-200: #ffd9cb;

  --cream: #fdf7f0;
  --cream-2: #fbeee0;
  --white: #ffffff;

  --card-sky: #bfe3e6;
  --card-blush: #f7d7d0;
  --card-mint: #cfe8d6;
  --card-butter: #f6e7b4;
  --card-peach: #f9d8c2;
  --card-lilac: #e2d6f3;

  --radius: 20px;
  --shadow: 0 12px 34px rgba(27, 22, 48, 0.12);
  --shadow-lg: 0 20px 46px rgba(27, 22, 48, 0.18);

  --font-display: 'Caviar Dreams', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

.wrapper {
  width: min(100% - 40px, 1000px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  padding: clamp(52px, 9vh, 104px) 20px clamp(56px, 10vh, 112px);
  background:
    radial-gradient(115% 85% at 12% 0%, rgba(232, 80, 46, 0.32), transparent 55%),
    radial-gradient(95% 80% at 100% 18%, rgba(126, 96, 204, 0.28), transparent 60%),
    linear-gradient(165deg, var(--plum-500) 0%, var(--plum-900) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.hero-fox {
  width: clamp(150px, 42vw, 232px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.38));
}

.wordmark {
  font-size: clamp(2rem, 8.5vw, 5rem);
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0.28em 0 0;
  overflow-wrap: break-word;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.4vw, 1.65rem);
  color: var(--orange-200);
  margin: 0.55em 0 0;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 1.5em 0 0;
}

.chips li {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55em 1.05em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* App Store badge — fixed 220:70 aspect ratio, never distorted */
.store-badge {
  display: inline-block;
  width: 200px;
  max-width: 66vw;
  aspect-ratio: 22 / 7;
  margin-top: 1.9em;
  background: url(../img/apple-store.svg) center / contain no-repeat;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px) scale(1.02);
}

.store-badge:focus-visible {
  outline: 3px solid var(--orange-200);
  outline-offset: 4px;
}

/* ==========================================================================
   Showcase strip (the card-deck artwork, shown landscape)
   ========================================================================== */

.showcase {
  position: relative;
  min-height: clamp(300px, 56vh, 620px);
  background: url(../img/web-background.jpg) center / cover;
  display: flex;
  align-items: flex-end;
}

.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(18, 14, 32, 0.94) 0%,
    rgba(18, 14, 32, 0.6) 26%,
    rgba(18, 14, 32, 0) 62%
  );
}

.showcase-caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.2rem, 3.4vw, 2rem);
  line-height: 1.3;
  margin: 0;
  padding: clamp(24px, 5vw, 56px);
  max-width: 620px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Content sections
   ========================================================================== */

.section {
  padding: clamp(48px, 8vw, 88px) 0;
}

.section .wrapper {
  text-align: center;
}

.intro {
  background: var(--cream);
}

.features {
  background: var(--white);
}

.values {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}

h2 {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  margin: 0 0 0.5em;
}

.lead {
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* Feature cards */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 2.4em auto 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(27, 22, 48, 0.06);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-emoji {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}

.card-sky .feature-emoji {
  background: var(--card-sky);
}
.card-blush .feature-emoji {
  background: var(--card-blush);
}
.card-mint .feature-emoji {
  background: var(--card-mint);
}
.card-butter .feature-emoji {
  background: var(--card-butter);
}
.card-peach .feature-emoji {
  background: var(--card-peach);
}
.card-lilac .feature-emoji {
  background: var(--card-lilac);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Call to action (over the coffeeshop photo)
   ========================================================================== */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(64px, 12vw, 120px) 20px;
  background: url(../img/coffeeshop.jpg) center / cover;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 22, 48, 0.74),
    rgba(27, 22, 48, 0.84)
  );
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
}

.cta h2 {
  color: var(--white);
  margin: 0;
}

/* ==========================================================================
   Interior pages (privacy policy)
   ========================================================================== */

.hero--sub {
  padding: clamp(56px, 12vh, 96px) 20px;
}

.wordmark--sm {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
}

.prose {
  background: var(--cream);
  text-align: left;
}

.prose .wrapper {
  width: min(100% - 40px, 760px);
  text-align: left;
}

.prose h3 {
  font-size: 1.4rem;
  margin: 1.6em 0 0.3em;
  color: var(--orange-600);
}

.prose p {
  color: var(--ink-soft);
  margin: 0 0 1em;
}

.prose ul {
  color: var(--ink-soft);
  padding-left: 1.2em;
  margin: 0.4em 0 1em;
}

.prose li {
  margin: 0.25em 0;
}

.prose .text-bold {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-container {
  align-items: center;
  background: var(--plum-900);
  color: #e9e6f2;
  display: flex;
  gap: 0.4rem;
  justify-content: space-between;
  padding: 1.4rem 1rem;
  flex-direction: column;
}

.footer-container a {
  color: #e9e6f2;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-container a:hover {
  color: var(--orange-200);
}

.footer-text {
  font-size: 0.82rem;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Media queries
   ========================================================================== */

@media only screen and (min-width: 620px) {
  .footer-container {
    flex-direction: row;
    padding: 1.1rem 8%;
  }
}

@media only screen and (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-fox {
    animation-delay: 0.02s;
  }
  .wordmark {
    animation-delay: 0.08s;
  }
  .tagline {
    animation-delay: 0.14s;
  }
  .chips {
    animation-delay: 0.2s;
  }
  .store-badge {
    animation-delay: 0.26s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
  display: none !important;
  visibility: hidden;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: ' ';
  display: table;
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: ' (' attr(href) ')';
  }

  abbr[title]:after {
    content: ' (' attr(title) ')';
  }

  a[href^='#']:after,
  a[href^='javascript:']:after {
    content: '';
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
