:root {
  --teal: #01696F;
  --teal-deep: #014A4F;
  --teal-soft: #E8F1F1;
  --dark: #0D1B1C;
  --stone: #F7F6F2;
  --line: #DDD8CC;
  --text: #1A2A2B;
  --muted: #5A6E70;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(13, 27, 28, 0.04), 0 8px 24px rgba(13, 27, 28, 0.06);
  --radius: 14px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-brand img { width: 36px; height: 36px; }
.nav-brand span { font-size: 18px; white-space: nowrap; }
@media (max-width: 600px) {
  .nav-brand span { display: none; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--teal-deep); text-decoration: none; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(1, 105, 111, 0.08), transparent 60%),
    var(--stone);
  padding: 80px 0 100px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 18px;
}
h1 {
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--dark);
}
h1 .accent { color: var(--teal); }
.hero p.lede {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 56ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-ghost:hover { background: var(--teal-soft); text-decoration: none; }

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.hero-card ul { margin: 0; padding-left: 18px; color: var(--text); }
.hero-card li { margin: 6px 0; }

@media (max-width: 880px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: 40px; }
}

/* ---- Sections ---- */
section { padding: 88px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--dark); color: var(--white); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255, 255, 255, 0.78); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--dark);
}
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

/* ---- Feature grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
section.dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}
.card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
  color: var(--dark);
}
section.dark .card h3 { color: var(--white); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
section.dark .card p { color: rgba(255, 255, 255, 0.72); }
.icon-square {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-soft);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 700;
}
section.dark .icon-square {
  background: rgba(255, 255, 255, 0.10);
  color: var(--white);
}

@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; }
  h2 { font-size: 30px; }
  section { padding: 64px 0; }
}

/* ---- Willow product strip ---- */
.product-strip {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.product-card {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--white);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(1, 74, 79, 0.25);
}
.product-card .pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.product-card h3 { color: var(--white); font-size: 30px; margin: 0 0 10px; }
.product-card p { color: rgba(255, 255, 255, 0.85); margin: 0 0 18px; }
.product-card a { color: var(--white); font-weight: 600; }

.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bullets li:last-child { border-bottom: none; }
.bullets .tick {
  color: var(--teal);
  font-weight: 700;
  flex: 0 0 auto;
}
.bullets strong { color: var(--dark); }

@media (max-width: 880px) {
  .product-strip { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Forms (shop) ---- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 14px; }

.success {
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: none;
}
.success.show { display: block; }

.form-error {
  background: #FBEAE9;
  border: 1px solid #D6443B;
  color: #8E2A23;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  display: none;
}
.form-error.show { display: block; }
.form-error a { color: #8E2A23; text-decoration: underline; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile-field[hidden] { display: none; }

.card .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--muted);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---- Two-column variant of the .grid ---- */
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid.two { grid-template-columns: 1fr; } }

/* ---- Pricing tiles ---- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(1, 105, 111, 0.12);
  position: relative;
}
.tier h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tier .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--teal);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tier .tier-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.spec-block {
  background: var(--stone);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.tier.featured .spec-block { background: rgba(1, 105, 111, 0.06); }
.spec-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.spec {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}
.spec li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--line);
}
.spec li:last-child { border-bottom: none; }
.spec li span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: center;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 22px;
}
.price-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}
.tier.featured .price-block { border-color: rgba(1, 105, 111, 0.2); }
.price-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.price-block .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.price-block .price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.price-detail {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.tier .btn { margin-top: auto; align-self: flex-start; }

.pricing-note {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.pricing-note strong { color: var(--text); }

@media (max-width: 1000px) {
  .tiers { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
footer.site {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 36px;
}
footer.site .row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}
footer.site .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.04em;
}
footer.site .brand img { width: 32px; height: 32px; }
footer.site h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
footer.site a { color: rgba(255, 255, 255, 0.8); display: block; padding: 4px 0; }
footer.site a:hover { color: var(--white); }
footer.site .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Catalog-driven product sections ---- */
#navProducts {
  display: contents;
}

.catalog-product-pricing + .catalog-product-pricing {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px dashed var(--line);
}

.product-section.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---- Customer portal ---- */
.portal-main {
  padding: 72px 0 96px;
}

.portal-grid {
  display: grid;
  gap: 22px;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.portal-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.portal-card p {
  color: var(--muted);
}

.portal-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.portal-status {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.portal-status.is-info {
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  color: var(--teal-deep);
}

.portal-status.is-error {
  background: #FCECEC;
  border: 1px solid #D88;
  color: #7A2020;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.portal-table th,
.portal-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.portal-table th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.btn-small {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---- Fun main page ---- */
:root { --sun: #F2B33D; --coral: #E8705A; --sky: #3A8FD6; }
.fun-hero { position: relative; overflow: hidden; }
.fun-hero .container { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; }
.blob-a { width: 420px; height: 420px; background: var(--teal); top: -120px; right: 8%; }
.blob-b { width: 320px; height: 320px; background: var(--sun); bottom: -140px; left: 6%; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }
.squiggle { background: linear-gradient(transparent 72%, rgba(242,179,61,.45) 72%); padding: 0 2px; }
.terminal { background: #0D1B1C; border-radius: 16px; box-shadow: 0 24px 60px rgba(13,27,28,.28); overflow: hidden; transform: rotate(1.5deg); transition: transform .3s; }
.terminal:hover { transform: rotate(0deg) scale(1.02); }
.terminal-bar { display: flex; gap: 7px; align-items: center; padding: 12px 14px; background: #16292B; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.terminal-bar i:nth-child(2) { background: var(--sun); }
.terminal-bar i:nth-child(3) { background: #4CC38A; }
.terminal-bar span { margin-left: 8px; color: rgba(255,255,255,.5); font: 12px ui-monospace, Menlo, monospace; }
.terminal pre { margin: 0; padding: 18px 20px 22px; color: #E6F2F2; font: 14px/1.75 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.terminal .p { color: #5BC8CE; } .terminal .ok { color: #4CC38A; } .terminal .warn { color: var(--sun); } .terminal .dim { color: rgba(255,255,255,.5); }
.cursor { animation: blink 1s steps(1) infinite; color: #5BC8CE; }
@keyframes blink { 50% { opacity: 0; } }
.marquee { background: var(--teal); color: #fff; overflow: hidden; padding: 14px 0; font-weight: 700; letter-spacing: .02em; }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track b { color: var(--sun); }
@keyframes scroll { to { transform: translateX(-50%); } }
.fun-card { transition: transform .25s, box-shadow .25s; position: relative; }
.fun-card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(13,27,28,.12); }
.fun-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; transition: transform .3s; }
.fun-card:hover .fun-icon { transform: rotate(-8deg) scale(1.08); }
.c1 .fun-icon { background: var(--teal); } .c2 .fun-icon { background: var(--sky); }
.c3 .fun-icon { background: var(--coral); } .c4 .fun-icon { background: var(--sun); }
.c4:hover .fun-icon svg { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps .step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--sun); color: var(--dark); font-weight: 700; font-size: 22px; display: grid; place-items: center; margin-bottom: 14px; }
.steps .card:nth-child(2) .step-num { background: var(--coral); color: #fff; }
.steps .card:nth-child(3) .step-num { background: var(--teal); color: #fff; }
.contact-fun { background: radial-gradient(800px 300px at 50% 100%, rgba(242,179,61,.18), transparent 70%), var(--stone); }
.contact-box { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-box h2 { margin-bottom: 12px; }
.contact-box p { color: var(--muted); }
.btn-big { font-size: 20px; padding: 18px 30px; margin: 14px 0 6px; }
@media (max-width: 880px) { .terminal { transform: none; } .blob { opacity: .25; } }
@media (max-width: 480px) { .terminal pre { font-size: 12px; padding: 14px; } }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  .blob, .marquee-track, .cursor, .c4:hover .fun-icon svg { animation: none; }
  .fun-card, .terminal, .fun-icon { transition: none; }
}
