:root {
  /* Brand colors sampled from brand/rancocas-app-co-logo.jpg
     (icon background, the creek through the holly, and the berries).
     When the final logo arrives, replace that file, run
     `python3 brand/build-logo.py`, and update these three if needed. */
  --forest: #0E3C22;
  --forest-deep: #062516;
  --river: #178F86;
  --river-deep: #0B7971;
  --berry: #D40B18;
  --berry-deep: #B0000A;

  --ink: #143024;
  --muted: #4A5E52;
  --line: #D5E3DA;
  --paper: #F7FBF8;
  --cream: #EEF5F0;
  --coral: var(--berry);
  --coral-deep: var(--berry-deep);
  --teal: var(--river);
  --teal-deep: var(--river-deep);
  --gold: #C9A227;
  --navy: var(--forest);
  --peach: #F3C9A8;
  --sage: #3D6B4F;
  --shadow: 0 12px 32px rgba(14, 60, 34, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }

/* Keep [hidden] hidden even when a later rule sets display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit; font-weight: 700;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo span { letter-spacing: -0.02em; font-weight: 800; color: var(--forest); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--teal); }

@media (max-width: 700px) {
  .site-header .inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .logo { flex: 0 0 auto; }
  .logo span { white-space: nowrap; }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
    font-size: 0.9rem;
  }
}


/* hero */
.hero {
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--berry) 22%, transparent), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--river) 28%, transparent), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}
.kicker {
  display: inline-block;
  background: var(--teal);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}
.hero p.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38em;
  margin: 0 0 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"], .btn.is-placeholder {
  opacity: 0.85;
}

/* sections */
section { padding: 56px 0; }
section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(28,20,16,0.12); }
.card-art {
  height: 140px;
  display: flex; align-items: flex-end;
  padding: 16px;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.card.limfong .card-art { background: linear-gradient(135deg, #7a1216, #c6a15b); }
.card.pizza .card-art { background: linear-gradient(135deg, #c0392b, #e67e22); }
.card.barber .card-art { background: linear-gradient(135deg, #1e3a5f, #3d8a8a); }
.card.boutique .card-art { background: linear-gradient(135deg, #6b3a4f, #c9a227); }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  width: max-content;
}
.tag-sample { background: #fde8d8; color: #9a3412; }
.tag-concept { background: #dcefea; color: #0a4f4b; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 12px; color: var(--muted); flex: 1; }
.card .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  font-size: 0.85rem; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
  background: var(--cream); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line);
}
.chip:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* steps */
.steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}
.step .n {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  color: var(--coral);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* pricing */
.pricing { display: grid; gap: 16px; }
@media (min-width: 720px) { .pricing { grid-template-columns: 1.1fr 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.price-card.featured {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest-deep);
}
.price-card.featured p, .price-card.featured li { color: #e7f3f1; }
.price-card h3 { margin: 0 0 4px; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; }
.amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0; }
.amount small { font-size: 1rem; font-weight: 600; opacity: 0.85; }
.price-card ul { margin: 0 0 18px; padding-left: 1.1em; }
.price-card li { margin: 6px 0; }
.notes {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px dashed var(--gold);
}
.notes h3 { margin: 0 0 8px; }
.notes ul { margin: 0; padding-left: 1.1em; }
.stripe-note {
  display: none;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  background: #fff4e5;
  border: 1px solid #f0d9b0;
  border-radius: 12px;
  padding: 10px 12px;
}
.stripe-note.show { display: block; }

/* contact / footer */
.contact-block {
  background: var(--navy);
  color: var(--paper);
  padding: 56px 0;
}
.contact-block h2 { color: #f7fbf8; }
.contact-block p { color: #d7e8df; }
.contact-block a.mail { color: #f6d3a8; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; word-break: normal; }
.site-footer {
  padding: 22px 0 32px;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* inner pages */
.page-hero { padding: 36px 0 8px; }
.page-hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.back { font-weight: 700; text-decoration: none; color: var(--teal-deep); }
.iphone-hint, .callout {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
}
.iphone-hint ol { margin: 8px 0 0; padding-left: 1.2em; }
.media-block { margin: 22px 0; }
.media-block video {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 24px;
  border: 8px solid #1c1410;
  background: #000;
  box-shadow: var(--shadow);
}
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }

/* concept shells */
.concept-body { background: var(--bg, var(--paper)); }
.concept-top {
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--brand, var(--teal));
  color: #fff;
}
.concept-top a { color: #fff; font-weight: 700; text-decoration: none; }
.concept-banner {
  background: #fff4d6;
  color: #5c3d00;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  text-align: center;
}
.menu-list { display: grid; gap: 10px; padding: 16px; width: min(560px, 100%); margin: 0 auto 80px; }
.item {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line);
}
.item h3 { margin: 0 0 2px; font-size: 1.05rem; }
.item p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.item button, .bar { 
  border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700;
  background: var(--brand, var(--teal)); color: #fff; cursor: pointer; font-family: inherit;
}
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.panel { display: none; }
.panel.open { display: block; }
.panel-card {
  background: #fff; margin: 16px auto 100px; width: min(560px, calc(100% - 32px));
  border-radius: 16px; padding: 18px; border: 1px solid var(--line);
}
.panel-card label { display: block; font-weight: 600; margin: 12px 0 4px; }
.panel-card input, .panel-card select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  font: inherit;
}
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots button {
  background: var(--cream); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.slots button.on { background: var(--brand, var(--teal)); color: #fff; border-color: transparent; }
.confirm-box { text-align: center; padding: 32px 16px; }
.confirm-box h2 { font-family: "Fraunces", Georgia, serif; }


/* about */
.about-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 200px 1fr; gap: 36px; }
}
.about-photos { display: grid; gap: 12px; }
.about-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  border: 1px dashed var(--forest);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-placeholder {
  text-align: center;
  padding: 16px;
  color: var(--forest);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}
.about-photo-placeholder small { display: block; margin-top: 6px; color: var(--muted); font-weight: 600; }
.about-photo.placeholder-slot { border-style: dashed; }
.about-photo.has-image { border-style: solid; border-color: var(--line); }
.signoff { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; margin-top: 12px; }

/* interest form */
.interest-form, .form-thanks {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  margin-top: 22px;
  box-shadow: var(--shadow);
}
.interest-form h3, .form-thanks h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: var(--forest);
}
.interest-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 12px 0 5px;
}
.interest-form .req { color: var(--berry); }
.interest-form input[type="text"],
.interest-form input[type="email"],
.interest-form input[type="tel"],
.interest-form select,
.interest-form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}
.interest-form textarea { min-height: 110px; resize: vertical; }
.interest-form input:focus, .interest-form select:focus, .interest-form textarea:focus {
  outline: 2px solid var(--river);
  border-color: var(--river);
}
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.opt-in {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-weight: 600;
}
.opt-in input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--forest); }
.opt-in span { font-weight: 600; }
.form-status {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.form-status.error { display: block; background: #fde8e8; color: var(--berry-deep); }
.form-thanks { display: none; }
.form-thanks.is-visible, .interest-form.is-hidden { }
.form-thanks.is-visible { display: block; }
.interest-form.is-hidden { display: none; }
.form-thanks p { color: var(--muted); }
.mailto-fallback { margin-top: 16px; }
.contact-block .interest-form p, .contact-block .form-thanks p { color: var(--muted); }
