@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --ink: #122226;
  --ink-soft: #3a4a4f;
  --fog: #e7eef0;
  --mist: #f3f7f8;
  --sea: #0b3d3a;
  --sea-bright: #14665f;
  --sand: #d4a574;
  --sand-soft: #e8c9a8;
  --white: #ffffff;
  --line: rgba(18, 34, 38, 0.12);
  --shadow: 0 24px 60px rgba(18, 34, 38, 0.14);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius: 14px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(20, 102, 95, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(212, 165, 116, 0.18), transparent 50%),
    linear-gradient(180deg, #eef4f5 0%, var(--mist) 40%, #e8f0f1 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.page.is-ready {
  opacity: 1;
  transform: none;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.site-footer .brand-mark {
  box-shadow: 0 0 0 1px rgba(18, 34, 38, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}

.nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-photo {
  position: absolute;
  inset: -14%;
  background-image: url("/hero.jpg");
  background-repeat: repeat;
  background-position: center top;
  background-size: min(760px, 150vw) auto;
  animation: slow-pan 22s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 28, 32, 0.5) 0%,
      rgba(12, 28, 32, 0.12) 16%,
      rgba(12, 28, 32, 0.06) 46%,
      rgba(12, 28, 32, 0.82) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 6.5rem 1.25rem 3.5rem;
  color: var(--white);
}

.brand-hero {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.lede {
  margin: 0.35rem 0 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.order-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  margin: 0 0 3.5rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.order-panel h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.order-panel .panel-lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.label {
  font-size: 0.92rem;
  font-weight: 600;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  color: var(--ink);
  touch-action: manipulation;
}

.qty button:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty input {
  width: 2.8rem;
  border: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  background: transparent;
}

.qty input:focus {
  outline: none;
}

.ladder {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  list-style: none;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcfc;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.ladder li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.16rem 0;
}

.ladder li.is-active {
  color: var(--ink);
  font-weight: 700;
}

.speedy {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9rem;
}

.speedy input {
  margin-top: 0.2rem;
}

.speedy strong {
  display: block;
}

.speedy span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.totals {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

.totals .line {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
}

.totals .grand {
  display: flex;
  justify-content: space-between;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  min-width: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  background: var(--sea);
  color: var(--white);
}

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

.btn-primary:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(18, 34, 38, 0.18);
  color: var(--ink);
}

.btn-sand {
  background: var(--sand);
  color: var(--ink);
}

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

.error {
  margin: 0.75rem 0 0;
  color: #b42318;
  font-size: 0.9rem;
  display: none;
}

.error.is-visible {
  display: block;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a + a {
  margin-left: 0.85rem;
}

/* Details / form page */
.simple-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(243, 247, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.simple-top .brand {
  color: var(--ink);
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
}

.panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.panel .intro {
  margin: 0.55rem 0 1.25rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.panel.legal .intro {
  margin: 0.55rem 0 0.85rem;
}

.panel.legal .intro.muted {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.panel.legal h2 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.legal-list {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.legal-list li + li {
  margin-top: 0.45rem;
}

.panel.legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.summary-chip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: var(--fog);
  font-size: 0.92rem;
}

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

legend {
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1rem; /* prevents iOS zoom on focus */
}

.form-grid textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.person-block {
  margin: 0 0 1.15rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfc;
}

.person-block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.person-row {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.person-row:last-child {
  border-bottom: 0;
}

.photo-upload {
  display: grid;
  gap: 0.55rem;
}

.photo-drop {
  display: grid;
  place-items: center;
  min-height: 11rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fbfcfc;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
}

.photo-drop:hover {
  border-color: rgba(20, 102, 95, 0.45);
}

.photo-preview {
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
  border-radius: 8px;
}

.photo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.photo-name {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.form-actions .btn-primary {
  width: auto;
  min-width: 10rem;
}

.faq-section {
  padding-top: 0.5rem;
  padding-bottom: 3.5rem;
}

.faq-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.faq-intro {
  margin: 0.45rem 0 1.15rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 24px rgba(18, 34, 38, 0.04);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}

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

.faq-list details p {
  margin: 0.65rem 0 0.15rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.faq-list details a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@keyframes slow-pan {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: calc(0.85rem + env(safe-area-inset-top)) 1rem 0.85rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .nav a[href="/privacy"],
  .nav a[href="/terms"] {
    display: none;
  }

  .nav a[href="/qa"] {
    display: inline;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: calc(5.25rem + env(safe-area-inset-top)) 1rem 1.5rem;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 16vw, 3.6rem);
    margin-bottom: 0.45rem;
  }

  .lede {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
  }

  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(12, 28, 32, 0.58) 0%,
        rgba(12, 28, 32, 0.22) 22%,
        rgba(12, 28, 32, 0.28) 48%,
        rgba(12, 28, 32, 0.9) 100%
      );
  }

  .order-panel {
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1rem;
  }

  .order-panel .btn-primary {
    min-height: 3.1rem;
    font-size: 1.02rem;
  }

  .simple-top {
    padding: calc(0.75rem + env(safe-area-inset-top)) 1rem 0.75rem;
  }

  .simple-top .btn-ghost {
    padding: 0.55rem 0.8rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .wrap {
    width: min(720px, calc(100% - 1.5rem));
    padding: 1.15rem 0 calc(2rem + env(safe-area-inset-bottom));
  }

  .panel {
    padding: 1.1rem 1rem 1.25rem;
  }

  .panel h1 {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
    margin-top: 1.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
  }

  .form-actions .btn-primary,
  .form-actions .btn-ghost {
    width: 100%;
    min-height: 3.1rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem 1rem calc(1.75rem + env(safe-area-inset-bottom));
  }

  .site-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }

  .site-footer a + a {
    margin-left: 0;
  }

  .faq-section {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }

  .faq-list summary {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0.15rem 0;
  }

  .row {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .brand-hero {
    font-size: 2.45rem;
  }

  .ladder {
    font-size: 0.8rem;
  }
}
