/* Coconut — pre-launch landing page
   Design tokens from docs/brand/README.md ("Forest & Lime" palette). */

:root {
  /* Palette */
  --ink: #14160f;
  --ink-2: #1c1f15;
  --ink-border: #2e3324;
  --footer-border: #23271b;
  --lime: #c8f24a;
  --lime-hover: #d6ff5c;
  --lime-on-band: #3f5416;
  --green-listed: #3f7a2f;
  --cream: #f5f0e6;
  --oat: #ede6d6;
  --oat-border: #e4ddca;
  --text-muted-dark: #b7bfae;
  --text-faint-dark: #8f9682;
  --text-muted-cream: #5c6151;
  --error: #f0a58a;
  --footer-text: #cdd4c1;

  /* Type */
  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  /* Shape */
  --radius-pill: 999px;
  --radius-control: 13px;
  --radius-card: 20px;
  --radius-mock: 22px;
  --radius-inner: 12px;

  /* Shadows */
  --shadow-mock: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);

  /* Layout */
  --content-max: 1180px;
  --page-pad: 32px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
}

p {
  margin: 0;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

input::placeholder {
  color: var(--text-faint-dark);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Logo mark (nav + footer) */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  flex: none;
  display: block;
}

.logo-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.logo--footer .logo-word {
  font-size: 16px;
  color: var(--footer-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-control);
  background: var(--lime);
  color: var(--ink);
  transition: background-color 0.15s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .hero-anim-disc,
  .hero-anim-decor,
  .hero-anim-card,
  .hero-anim-row-1,
  .hero-anim-row-2,
  .hero-anim-row-3,
  .hero-anim-synced {
    animation: none;
  }

  .hero-anim-decor {
    opacity: 0;
  }
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(200, 242, 74, 0.12);
  border: 1px solid rgba(200, 242, 74, 0.28);
  font-size: 13px;
  font-weight: 500;
  color: var(--lime);
  margin-bottom: 26px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

.hero-title {
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 22px;
}

.accent {
  color: var(--lime);
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted-dark);
  max-width: 440px;
  margin-bottom: 32px;
}

/* Waitlist form */
.waitlist {
  scroll-margin-top: 24px;
}

.waitlist-form {
  max-width: 480px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  min-width: 120px;
}

.field-first {
  flex: 1;
}

.field-email {
  flex: 1.4;
  min-width: 170px;
}

.text-input {
  width: 100%;
  padding: 15px 17px;
  border-radius: var(--radius-control);
  border: 1px solid var(--ink-border);
  background: var(--ink-2);
  color: var(--cream);
  font-size: 15.5px;
  font-family: var(--font-body);
  outline: none;
}

.text-input:focus-visible {
  border-color: var(--lime);
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.form-error {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--error);
}

/* Waitlist success states */
.waitlist-success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(200, 242, 74, 0.1);
  border: 1px solid rgba(200, 242, 74, 0.3);
  max-width: 460px;
}

.waitlist-success[hidden] {
  display: none;
}

.check-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}

.waitlist-success-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--cream);
}

.waitlist-success-sub {
  font-size: 14px;
  color: var(--text-muted-dark);
}

.waitlist-success-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(200, 242, 74, 0.1);
  border: 1px solid rgba(200, 242, 74, 0.3);
}

.waitlist-success-inline[hidden] {
  display: none;
}

.waitlist-success-inline .check-circle {
  width: 28px;
  height: 28px;
}

.waitlist-success-inline .msg {
  font-weight: 600;
  font-size: 16px;
}

.waitlist-form[hidden] {
  display: none;
}

/* Hero visual (animated) — brand mark morphs into a "sync card".
   Plays once on load (~3.8s), holds on the finished card. The disc sits at
   its FINAL 34x34 position/slot and starts scaled/translated up to fill the
   visual's centre, then releases to identity (see keyframes below). */
.hero-anim {
  position: relative;
  width: 460px;
  height: 440px;
  margin: 0 auto;
}

.hero-anim-glow {
  position: absolute;
  inset: -6% -4%;
  background: radial-gradient(58% 58% at 62% 40%, rgba(200, 242, 74, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-anim-decor {
  position: absolute;
  inset: 0;
  animation: heroDecorOut 3.8s ease forwards;
}

.hero-anim-ring {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 1px dashed rgba(200, 242, 74, 0.25);
  top: 15px;
  left: 25px;
  animation: heroRingSpin 44s linear infinite;
}

.hero-anim-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.hero-anim-chip-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--cream);
}

.hero-anim-chip-etsy {
  top: 8px;
  left: 190px;
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-anim-chip-ebay {
  bottom: 44px;
  right: 26px;
  animation: heroFloatAlt 6.5s ease-in-out infinite;
}

.hero-anim-chip-more {
  bottom: 70px;
  left: 20px;
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-anim-chip-more-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-faint-dark);
}

.hero-anim-card {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 400px;
  background: var(--cream);
  border-radius: var(--radius-mock);
  padding: 26px;
  box-shadow: var(--shadow-mock);
  animation: heroCardIn 3.8s ease forwards;
}

.hero-anim-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.hero-anim-logo-slot {
  width: 34px;
  height: 34px;
  flex: none;
  visibility: hidden;
}

.hero-anim-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

.hero-anim-card-sub {
  font-size: 12.5px;
  color: #7a7663;
}

.hero-anim-synced {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: rgba(63, 122, 47, 0.12);
  animation: heroRiseIn 0.5s ease 2.82s both;
}

.hero-anim-synced-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-listed);
}

.hero-anim-synced-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-listed);
}

.hero-anim-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hero-anim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--oat-border);
}

.hero-anim-row-1 {
  animation: heroRiseIn 0.5s ease 2.45s both;
}

.hero-anim-row-2 {
  animation: heroRiseIn 0.5s ease 2.58s both;
}

.hero-anim-row-3 {
  animation: heroRiseIn 0.5s ease 2.71s both;
}

.hero-anim-row-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.hero-anim-row-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-listed);
}

.hero-anim-row-tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-listed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.hero-anim-row-add {
  background: var(--ink);
  border-color: var(--ink);
}

.hero-anim-row-add .hero-anim-row-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--cream);
}

.hero-anim-row-oneclick {
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
}

.hero-anim-disc {
  position: absolute;
  top: 86px;
  left: 56px;
  width: 34px;
  height: 34px;
  transform-origin: center center;
  z-index: 5;
  animation: heroDiscMorph 3.8s cubic-bezier(0.66, 0, 0.34, 1) forwards;
}

.hero-anim-disc-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, var(--lime-hover), var(--lime) 60%, #a9d92f);
}

.hero-anim-disc-hole {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

@keyframes heroRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes heroFloatAlt {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

@keyframes heroDiscMorph {
  0% {
    transform: translate(157px, 117px) scale(8.82);
  }
  38% {
    transform: translate(157px, 117px) scale(8.82);
  }
  62% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes heroCardIn {
  0%,
  40% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  60% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroDecorOut {
  0%,
  30% {
    opacity: 1;
  }
  44%,
  100% {
    opacity: 0;
  }
}

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

/* Marketplace strip */
.marketplace-strip {
  padding-top: 20px;
  padding-bottom: 64px;
}

.marketplace-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  color: var(--text-faint-dark);
  font-size: 14px;
}

.marketplace-row .lede {
  font-weight: 500;
}

.marketplace-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--footer-text);
}

/* Features */
.features {
  background: var(--cream);
  color: var(--ink);
}

.features-inner {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section-title {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 600px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 17.5px;
  color: var(--text-muted-cream);
  max-width: 520px;
  margin-bottom: 46px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--oat-border);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.feature-card.is-dark {
  background: var(--ink);
  color: var(--cream);
  border: none;
  box-shadow: none;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-inner);
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon .shape-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
}

.feature-icon .shape-square {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--lime);
}

.feature-icon.on-lime {
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
}

.feature-title {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 9px;
}

.feature-card.is-dark .feature-title {
  color: var(--cream);
}

.feature-body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-muted-cream);
}

.feature-card.is-dark .feature-body {
  color: var(--text-muted-dark);
}

/* Pricing band */
.pricing-band {
  background: var(--lime);
  color: var(--ink);
}

.pricing-inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.pricing-eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--lime-on-band);
}

.pricing-title {
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 640px;
}

.pricing-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
}

.pricing-checklist-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 500;
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex: none;
}

/* Final CTA */
.final-cta {
  background: var(--ink);
  color: var(--cream);
}

.final-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 32px;
  text-align: center;
}

.final-cta-title {
  font-size: 48px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 18px;
}

.final-cta-sub {
  font-size: 18.5px;
  color: var(--text-muted-dark);
  max-width: 480px;
  margin: 0 auto 34px;
}

.final-cta-form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.final-cta-form-wrap .waitlist-form {
  max-width: none;
  text-align: left;
}

/* Footer */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--footer-border);
  color: var(--text-faint-dark);
}

.footer-inner {
  padding-top: 34px;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13.5px;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 40px;
  }

  .hero-anim {
    display: none;
  }

  .hero-title {
    font-size: 44px;
  }

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

  .pricing-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .pricing-checklist {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .final-cta-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 32px;
  }

  .pricing-title {
    font-size: 30px;
  }

  .hero-sub,
  .final-cta-sub {
    max-width: none;
  }

  .features-inner,
  .pricing-inner {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .final-cta-inner {
    padding-top: 60px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .marketplace-row {
    gap: 16px;
  }
}
