/* Trellis™ brand + marketing site tokens
   Hortiki Innovations · Hortiki Plants LLC
   Locked for Slice A — align logo studio to these values. */

:root {
  color-scheme: light;

  --trellis-navy: #0b132b;
  --trellis-navy-deep: #070d1c;
  --trellis-blue: #1d4ed8;
  --trellis-green: #2e7d52;
  --trellis-green-hover: #236040;
  --trellis-green-pale: #edf7f1;
  --trellis-green-line: #b7dec8;
  --trellis-white: #ffffff;
  --trellis-mist: #f7f8f5;
  --trellis-slate: #64748b;
  --trellis-border: #e2e8f0;

  --bg: var(--trellis-white);
  --bg-cream: var(--trellis-mist);
  --bg-wash: #eef5f0;
  --fg: #111827;
  --fg-mid: #374151;
  --fg-muted: var(--trellis-slate);
  --navy: var(--trellis-navy);
  --green: var(--trellis-green);
  --green-h: var(--trellis-green-hover);
  --green-pale: var(--trellis-green-pale);
  --green-line: var(--trellis-green-line);
  --border: var(--trellis-border);
  --border-w: #d8e5dc;

  --font-d: "Raleway", system-ui, sans-serif;
  --font-b: "Raleway", system-ui, sans-serif;
  --font-script: "Bad Script", cursive;

  --trellis-wordmark-weight: 800;
  --trellis-wordmark-tracking: -0.025em;
  --trellis-accent-color: var(--trellis-green);
  --trellis-mark-style: lattice;
  --trellis-wordmark-variant: "lattice-caps";
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

/* —— Nav —— */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 20px;
}

.logo {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: var(--trellis-wordmark-tracking);
  flex-shrink: 0;
}

.logo .tm {
  font-family: var(--font-script);
  font-size: 0.85em;
  font-weight: 400;
  color: var(--green);
  margin-left: 0.15em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-mid);
  text-decoration: none;
}

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

.nav-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover,
.btn-primary:hover {
  background: var(--green-h);
}

.btn-primary {
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn-dark:hover {
  opacity: 0.9;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg-mid);
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-line:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 11vw, 6.5rem);
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(46, 125, 82, 0.14), transparent 60%),
    linear-gradient(180deg, var(--trellis-white) 0%, var(--bg-wash) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 20h60M0 40h60M20 0v60M40 0v60' stroke='%230B132B' stroke-width='0.5' fill='none'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 0.045;
  pointer-events: none;
  animation: lattice-drift 48s linear infinite;
}

@keyframes lattice-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 60px 60px;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.25rem;
  animation: rise 0.7s ease both;
}

.hero-brand .tm {
  font-family: var(--font-script);
  font-size: 0.7em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--green);
  margin-left: 0.2em;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
  animation: rise 0.7s ease 0.08s both;
}

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.15rem, 5.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
  margin: 0 auto 1.1rem;
  max-width: 14ch;
  animation: rise 0.75s ease 0.14s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(0.95rem, 2.1vw, 1.125rem);
  font-weight: 500;
  color: var(--fg-mid);
  max-width: 42ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
  animation: rise 0.75s ease 0.22s both;
}

.hero-cta-wrap {
  animation: rise 0.75s ease 0.3s both;
}

.hero-note {
  display: block;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }
  .hero-brand,
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-cta-wrap {
    animation: none;
  }
}

/* —— Agencies —— */
.agencies {
  background: var(--bg);
  border-block: 1px solid var(--border-w);
  padding-block: 1.35rem;
}

.agencies-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.agency {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.agency-name {
  font-family: var(--font-d);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.agency-path {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.agency-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

@media (max-width: 480px) {
  .agency-div {
    display: none;
  }
}

/* —— Sections —— */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-bottom: 0.65rem;
}

.section-h2 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-align: center;
  margin: 0 0 3rem;
}

.section-pathways {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  background: var(--bg);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.path-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.path-card:hover {
  border-color: var(--green-line);
  box-shadow: 0 4px 20px rgba(46, 125, 82, 0.09);
  transform: translateY(-2px);
}

.path-icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
}

.path-agency {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.path-card h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.path-card p {
  font-size: 0.85rem;
  color: var(--fg-mid);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}

.section-works {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  background: var(--bg-wash);
  border-block: 1px solid var(--border-w);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  color: var(--navy);
}

.step h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.step p {
  font-size: 0.875rem;
  color: var(--fg-mid);
  margin: 0;
  line-height: 1.55;
  max-width: 24ch;
}

.section-pricing {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  background: var(--bg-cream);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.price-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-card.hi {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}

.price-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: 0.2rem 0.65rem;
}

.price-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.price-amount {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--fg-mid);
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--fg-mid);
}

.price-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.price-btn {
  display: block;
  text-align: center;
  padding: 0.7rem;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.25rem;
  border: 1.5px solid var(--green-line);
  background: var(--green-pale);
  color: var(--green);
  transition: background 0.15s ease, color 0.15s ease;
}

.price-btn:hover,
.price-card.hi .price-btn {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.section-trust {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  background: var(--bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.trust-item {
  background: var(--bg-wash);
  border: 1px solid var(--border-w);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.trust-item h3 {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--fg-mid);
  margin: 0;
  line-height: 1.6;
}

.section-incubators {
  padding-block: clamp(3.5rem, 9vw, 5.5rem);
  background: var(--navy);
  color: #fff;
}

.section-incubators .section-label {
  color: var(--green-line);
}

.section-incubators .section-h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.section-incubators .lede {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.section-incubators .btn-primary {
  margin-inline: auto;
  display: inline-flex;
}

.incubator-cta {
  text-align: center;
}

.section-cta {
  padding-block: clamp(3.5rem, 9vw, 5rem);
  background: var(--bg-wash);
  border-top: 1px solid var(--border-w);
  text-align: center;
}

.section-cta h2 {
  font-family: var(--font-d);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0.65rem 0 1rem;
}

.section-cta p {
  font-size: 0.95rem;
  color: var(--fg-mid);
  margin: 0 auto 2rem;
  max-width: 42ch;
}

.cta-pair {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* —— Page (legal / contact) —— */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  background: linear-gradient(180deg, var(--trellis-white), var(--bg-wash));
  border-bottom: 1px solid var(--border-w);
}

.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--fg-mid);
  max-width: 52ch;
}

.page-body {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-body h2 {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p,
.page-body li {
  color: var(--fg-mid);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-body ul {
  padding-left: 1.25rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 34rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--bg);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 82, 0.14);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .disclaimer {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg-mid);
  line-height: 1.45;
}

.contact-form .disclaimer input {
  margin-top: 0.2rem;
  width: auto;
}

.form-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 0;
}

/* —— Footer —— */
footer.site-footer {
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot-copy {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-links a {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--fg);
}

.nav-signin {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy, #0B132B);
  text-decoration: none;
  margin-right: 0.35rem;
}

.nav-signin:hover {
  color: var(--green, #2E7D52);
}

/* —— App / portal surfaces (premium product UI) —— */
.portal-shell {
  position: relative;
  padding: 6rem 0 5rem;
  min-height: calc(100vh - 4rem);
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(46, 125, 82, 0.14), transparent 55%),
    radial-gradient(700px 380px at 92% 12%, rgba(29, 78, 216, 0.08), transparent 50%),
    linear-gradient(180deg, #fbfcfa 0%, var(--trellis-mist) 45%, #eef5f0 100%);
}

.portal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 19, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 19, 43, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.portal-shell > .wrap {
  position: relative;
  z-index: 1;
}

.portal-narrow {
  max-width: 34rem;
}

.portal-wide {
  max-width: 44rem;
}

.portal-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.portal-title {
  font-family: var(--font-script);
  font-size: clamp(2.35rem, 5vw, 3.25rem);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 0.85rem;
  line-height: 1.12;
}

.portal-lead {
  color: var(--fg-mid);
  margin: 0 0 2rem;
  max-width: 38rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.portal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 50px rgba(11, 19, 43, 0.07);
  backdrop-filter: blur(10px);
  animation: portal-rise 0.55s ease both;
}

@keyframes portal-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.portal-form {
  display: grid;
  gap: 1.05rem;
}

.portal-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.portal-form label .label-main {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
}

.portal-form input[type="email"],
.portal-form input[type="text"],
.portal-form input[type="url"],
.portal-form input[type="file"],
.portal-form select,
.portal-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.portal-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.portal-form textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.55;
}

.portal-form input:hover,
.portal-form select:hover,
.portal-form textarea:hover {
  border-color: #c5d4e0;
}

.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 125, 82, 0.14);
  background: #fff;
}

.portal-form input[type="file"] {
  padding: 0.85rem;
  background: var(--trellis-mist);
  border-style: dashed;
}

.portal-form .btn-primary {
  margin-top: 0.35rem;
  justify-self: start;
  min-width: 12rem;
}

.portal-form .disclaimer {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fg-mid);
  line-height: 1.5;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--green-pale);
  border: 1px solid var(--green-line);
}

.portal-form .disclaimer input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  border: 1.5px solid var(--green);
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.portal-form .disclaimer input[type="checkbox"]::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  transform: scale(0);
  transition: transform 0.12s ease;
  box-shadow: inset 1em 1em var(--green);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
}

.portal-form .disclaimer input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.portal-alert {
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: var(--green-pale);
  border: 1px solid var(--green-line);
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.portal-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.portal-footnote {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.portal-footnote a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.portal-footnote a:hover {
  text-decoration: underline;
}

.portal-code {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: 12px;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.portal-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 1.25rem;
  box-shadow: 0 14px 40px rgba(11, 19, 43, 0.05);
}

.portal-panel h2 {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.portal-empty {
  color: var(--fg-muted);
  font-size: 0.98rem;
}

.portal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.portal-list li:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.portal-list a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.portal-list a:hover {
  text-decoration: underline;
}

.portal-list button {
  margin-top: 0.45rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--trellis-mist);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.portal-list button:hover {
  border-color: var(--green-line);
  background: var(--green-pale);
}

.nav-links-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.nav-links-inline a:not(.nav-btn) {
  text-decoration: none;
  font-weight: 600;
  color: var(--fg-mid);
}

.nav-links-inline a:not(.nav-btn):hover {
  color: var(--green);
}

.nav-btn-ghost {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1px solid var(--border);
}

.nav-btn-ghost:hover {
  border-color: var(--green-line) !important;
  background: var(--green-pale) !important;
}

.muted {
  color: var(--fg-muted);
  font-weight: 400;
}

.section-block {
  margin-bottom: 2.75rem;
}

.section-lead {
  color: var(--fg-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.plain-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  max-width: 44rem;
  line-height: 1.65;
  color: var(--navy);
}

.plain-list li + li {
  margin-top: 0.85rem;
}

.sign-in-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sign-in-link:hover {
  background: var(--trellis-navy-deep);
  transform: translateY(-1px);
}

.intake-step-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--navy);
  line-height: 1.55;
}

.intake-step-list li + li {
  margin-top: 1.35rem;
}

.intake-step-list .portal-form {
  margin-top: 0.85rem;
}

.manual-intake summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}

.manual-intake summary::-webkit-details-marker {
  display: none;
}

.manual-intake summary::after {
  content: "Show";
  float: right;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.manual-intake[open] summary::after {
  content: "Hide";
}

.intake-summary {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.intake-summary > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.intake-summary dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.intake-summary dd {
  margin: 0;
  color: var(--navy);
  line-height: 1.5;
  white-space: pre-wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--green-pale);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.status-pill-inline {
  margin: 0.45rem 0 0.55rem;
}

.confirm-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.confirm-sub {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--navy);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}
