/* Size Chart & Guide marketing site — brand from app logo (#2E7D52) */
:root {
  --brand: #2e7d52;
  --brand-hover: #236340;
  --brand-soft: #eaf6ed;
  --brand-mid: #52b774;
  --brand-deep: #0f3d2e;
  --ink: #14231c;
  --muted: #5a6b62;
  --line: #d5e5db;
  --paper: #f7faf8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 61, 46, 0.08);
  --radius: 18px;
  --max: 1120px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(82, 183, 116, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(46, 125, 82, 0.12), transparent 55%),
    var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid rgba(213, 229, 219, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  font-size: 1.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(46, 125, 82, 0.28);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--brand-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1 {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  margin: 0 0 1rem;
  color: var(--brand-deep);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.hero-panel {
  background: linear-gradient(160deg, #163b2c 0%, #2e7d52 55%, #52b774 120%);
  color: #f4fff8;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.preview-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  animation: rise 0.8s ease both;
}

.preview-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.preview-card p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.preview-table th,
.preview-table td {
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #e8eee9;
  text-align: left;
}

.preview-table th {
  color: var(--muted);
  font-weight: 650;
}

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

.fade-up {
  animation: rise 0.7s ease both;
}

.fade-up-delay {
  animation-delay: 0.12s;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 1px 0 rgba(15, 61, 46, 0.04);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.pill {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 650;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  color: var(--brand-deep);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.pricing {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem;
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f1f9f4 100%);
}

.price-card .plan {
  font-weight: 750;
  color: var(--brand-deep);
}

.price-card .amount {
  font-family: var(--display);
  font-size: 2.2rem;
  margin: 0.4rem 0;
  letter-spacing: -0.03em;
}

.price-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 0.35rem;
}

/* Legal / FAQ page */
.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero .meta {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 1px 0 rgba(15, 61, 46, 0.04);
}

.prose h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--brand-deep);
}

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

.prose p,
.prose li {
  color: #33453d;
}

.prose ul {
  padding-left: 1.2rem;
}

.toc {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand-deep);
}

.toc a {
  display: inline-block;
  margin-right: 0.85rem;
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

/* FAQ */
.faq-search {
  width: 100%;
  max-width: 420px;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: var(--white);
}

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

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item[hidden] {
  display: none !important;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

.faq-item .answer p {
  margin: 0 0 0.65rem;
}

.faq-item .answer p:last-child {
  margin-bottom: 0;
}

/* Support form-ish blocks */
.support-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .support-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.contact-box {
  background: linear-gradient(160deg, var(--brand-deep), var(--brand));
  color: #f4fff8;
  border-radius: 22px;
  padding: 1.5rem;
}

.contact-box a {
  color: #fff;
}

.contact-box h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #10261c;
  color: rgba(244, 255, 248, 0.88);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer a {
  color: rgba(244, 255, 248, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  opacity: 0.75;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0.4rem;
  }
}
