/* PrepNest website. Colors and type match the app (src/theme/palette.ts). */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_400Regular_Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/Fraunces_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f1e8;
  --surface: #fbf8f2;
  --raised: #ffffff;
  --sunken: #eee7da;
  --ink: #1b1a17;
  --ink-2: #4a4640;
  --ink-3: #6b655b;
  --hairline: #e2d9c8;
  --accent: #1f3d2e;
  --accent-text: #1f3d2e;
  --accent-soft: #e4ebe3;
  --on-accent: #f3ecdf;
  --gold: #a6824a;
  --gold-soft: #f1e8d6;
  --shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 12px 32px rgba(27, 26, 23, 0.08);
  --plate-shadow: rgba(27, 26, 23, 0.22);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, Helvetica, Arial,
    sans-serif;
  --gutter: 20px;
  --max: 1080px;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110e;
    --surface: #1c1915;
    --raised: #24211c;
    --sunken: #0e0d0b;
    --ink: #f3ecdf;
    --ink-2: #c4bbab;
    --ink-3: #9a9183;
    --hairline: #2e2a24;
    --accent: #2c5a42;
    --accent-text: #9bc2a7;
    --accent-soft: #1b2a21;
    --on-accent: #f3ecdf;
    --gold: #c4a36b;
    --gold-soft: #2d2618;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --plate-shadow: rgba(0, 0, 0, 0.55);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
  background: var(--raised);
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 10;
}

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

.site-header {
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.site-nav a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--ink);
}
@media (max-width: 560px) {
  .site-nav .wide {
    display: none;
  }
}

/* ---- Type ------------------------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
h1 {
  font-size: clamp(44px, 8vw, 76px);
}
h1 em,
h2 em {
  color: var(--accent-text);
}
h2 {
  font-size: clamp(32px, 5vw, 46px);
}
h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
}
.lede {
  color: var(--ink-2);
  font-size: clamp(18px, 2.2vw, 20px);
  max-width: 34em;
}
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 26px 0;
}
.fine {
  color: var(--ink-3);
  font-size: 14px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.quiet {
  color: var(--accent-text);
  border: 1px solid var(--hairline);
  background: var(--surface);
}
.button.soon {
  background: var(--accent);
  color: var(--on-accent);
  cursor: default;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(56px, 8vw, 88px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}
.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mosaic img:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: auto;
  height: 100%;
}
.badge-card {
  position: absolute;
  left: -14px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 290px;
  padding: 14px 16px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.35;
}
.badge-card .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.badge-card strong {
  display: block;
  font-weight: 600;
}
.badge-card span {
  color: var(--ink-3);
}
@media (max-width: 860px) {
  .badge-card {
    left: 12px;
  }
}

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

section.band {
  padding: clamp(56px, 9vw, 96px) 0;
  border-top: 1px solid var(--hairline);
}
section.band.tinted {
  background: var(--surface);
}
.section-head {
  max-width: 40em;
  margin-bottom: 44px;
}
.section-head p {
  color: var(--ink-2);
  margin: 16px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.card {
  padding: 28px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.card p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}
.card .note {
  color: var(--ink-3);
  font-size: 14px;
}

/* ---- Pro ------------------------------------------------------------------------------- */

.pro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .pro {
    grid-template-columns: 1fr;
  }
}
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px 24px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 16px;
}
.ticks li strong {
  color: var(--ink);
  font-weight: 600;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D7358' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.price-card {
  padding: 30px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.price {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
}
.price small {
  font-family: var(--sans);
  color: var(--ink-3);
  font-size: 16px;
}
.price-card p {
  color: var(--ink-2);
  font-size: 15px;
}

/* ---- Dishes: the parade under the hero, and plates at the edges of sections -------------- */

.ribbon {
  overflow: hidden;
  padding: 30px 0 40px;
  border-top: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.ribbon-track {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  /* The dishes appear twice; the padding makes the second set start exactly where the first did,
     so moving by half the width loops without a seam. */
  padding-right: 22px;
  width: max-content;
  animation: parade 80s linear infinite;
}
.ribbon.reverse .ribbon-track {
  animation-direction: reverse;
}
.ribbon:hover .ribbon-track {
  animation-play-state: paused;
}
.ribbon img {
  flex: none;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--raised);
  background: var(--sunken);
  box-shadow: var(--shadow);
}
.ribbon img:nth-child(even) {
  margin-top: 20px;
}
@media (max-width: 560px) {
  .ribbon img {
    width: 104px;
    height: 104px;
  }
}
@keyframes parade {
  to {
    transform: translateX(-50%);
  }
}

.has-plates {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.has-plates > .wrap {
  position: relative;
  z-index: 1;
}
.plate {
  --size: clamp(300px, 30vw, 470px);
  position: absolute;
  z-index: 0;
  width: var(--size);
  height: var(--size);
  filter: drop-shadow(0 22px 36px var(--plate-shadow));
  animation: turn 180s linear infinite;
  pointer-events: none;
}
.plate-left {
  left: calc(var(--size) * -0.5);
  top: 40%;
}
.plate-right {
  right: calc(var(--size) * -0.38);
  top: calc(var(--size) * -0.3);
  animation-direction: reverse;
}
/* Only its top peeks up, in the space under the list, never behind text. */
.plate-corner {
  left: 6%;
  bottom: calc(84px - var(--size));
}
.plate-right-high {
  right: calc(var(--size) * -0.5);
  top: 12%;
  animation-direction: reverse;
}
/* On smaller screens the content fills the width, so the plates would sit behind text. */
@media (max-width: 1000px) {
  .plate {
    display: none;
  }
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .plate,
  .ribbon-track {
    animation: none;
  }
}

/* ---- Prose (privacy, terms, support) --------------------------------------------------- */

.page-head {
  padding: clamp(44px, 7vw, 72px) 0 12px;
}
.prose {
  max-width: 44em;
  padding-bottom: 80px;
}
.prose h2 {
  font-size: 28px;
  margin: 46px 0 12px;
}
.prose h3 {
  font-size: 20px;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose strong {
  color: var(--ink);
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.table-scroll {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}
.prose th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.prose tr:last-child td {
  border-bottom: 0;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  float: right;
  color: var(--ink-3);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: '–';
}
.faq details p {
  margin: 0 0 16px;
}
.contact {
  margin: 28px 0 8px;
  padding: 26px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.contact p {
  margin: 8px 0 0;
}

/* ---- Small helpers (no inline styles: the site's security policy blocks them) ---------- */

.pro-lede {
  margin: 18px 0 32px;
}
.price-alt {
  margin: 10px 0 22px;
}
.flush {
  margin: 0 !important;
}
.page-head.roomy {
  padding-bottom: 96px;
}
.lede.spaced {
  margin-top: 20px;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 56px;
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0;
}
.site-footer .links a {
  color: var(--ink-2);
}
.site-footer p {
  margin: 6px 0;
  max-width: 52em;
}
