:root {
  color-scheme: light;
  --bg: #f5f0e6;
  --bg-alt: #eef4f3;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.56);
  --text: #102033;
  --muted: #55657a;
  --border: rgba(16, 32, 51, 0.12);
  --border-strong: rgba(16, 32, 51, 0.2);
  --shadow: 0 24px 60px rgba(16, 32, 51, 0.12);
  --shadow-soft: 0 10px 30px rgba(16, 32, 51, 0.08);
  --brand: #0f766e;
  --brand-deep: #0b4f4a;
  --accent: #d97706;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1160px, calc(100% - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 32, 51, 0.06), transparent 30%),
    linear-gradient(180deg, #faf7f0 0%, #f3f5f4 44%, #edf3f3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(16, 32, 51, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
  z-index: -1;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.26);
  outline-offset: 2px;
}

main,
.site-header,
.site-footer {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

main {
  padding: 18px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-header nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header nav a:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.breadcrumbs {
  width: var(--container);
  margin: 2px auto -2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.crumb-sep {
  color: rgba(85, 101, 122, 0.5);
}

.hero,
.hero.compact,
.band,
.content-block,
.tool-panel,
.ad-slot,
.site-footer,
.content.article {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero,
.hero.compact,
.band,
.content-block,
.content.article {
  padding: 32px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.14), transparent 34%),
    radial-gradient(circle at left bottom, rgba(15, 118, 110, 0.14), transparent 28%);
  border-color: rgba(255, 255, 255, 0.72);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.15), transparent 68%);
  pointer-events: none;
}

.hero.compact {
  padding: 28px 32px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero .lede {
  max-width: 66ch;
  margin: 18px 0 0;
  font-size: 1.14rem;
  color: var(--muted);
}

.hero .note {
  max-width: 68ch;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.06);
  border-radius: 14px;
  color: #254154;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 51, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 32, 51, 0.1);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.button.primary:hover {
  color: #fff;
}

.band {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(217, 119, 6, 0.08)),
    rgba(255, 255, 255, 0.74);
}

.band p {
  max-width: 72ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.summary-band {
  margin-top: -6px;
}

.home-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 24px;
}

.home-search .search-box {
  flex: 1 1 360px;
  max-width: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
  color: var(--brand-deep);
  box-shadow: 0 14px 26px rgba(16, 32, 51, 0.08);
}

.info-grid,
.data-grid,
.step-grid,
.issue-grid {
  display: grid;
  gap: 14px;
}

.info-grid,
.data-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.info-grid.compact-grid,
.data-grid.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.info-card,
.data-card,
.step-card,
.issue-card {
  padding: 18px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.05);
}

.info-card span,
.data-card span,
.step-card span,
.issue-card span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.info-card p,
.data-card strong,
.step-card p,
.issue-card p {
  margin: 10px 0 0;
  color: var(--text);
}

.data-card strong {
  display: block;
  font-size: 1.05rem;
}

.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  border-color: rgba(15, 118, 110, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 251, 0.88)),
    rgba(255, 255, 255, 0.84);
}

.step-card span {
  color: var(--accent);
}

.step-card h3 {
  margin: 0;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.issue-card {
  border-color: rgba(217, 119, 6, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 240, 0.92));
}

.section-note {
  margin: -8px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.grid-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.grid-section h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 18px 36px rgba(16, 32, 51, 0.1);
}

.card span {
  font-weight: 700;
  line-height: 1.3;
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.compact-card {
  padding: 18px;
}

.tool-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.tool-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.7);
}

.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.tool-form label,
.search-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: #203144;
}

.tool-form label {
  font-size: 0.96rem;
}

.tool-form label input,
.tool-form label select,
.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 32, 51, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(16, 32, 51, 0.03);
}

.tool-form .button {
  justify-self: start;
}

.tool-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.tool-actions .button {
  min-width: 160px;
}

.output-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.94), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  position: sticky;
  top: 94px;
  align-self: start;
  min-height: 100%;
}

.panel-label {
  margin: 0;
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.output-hint {
  margin: 0;
  color: var(--muted);
}

.tool-output,
.prompt,
.data-table,
.callout,
.search-results,
.ad-slot {
  width: 100%;
}

.tool-output,
.prompt {
  min-height: 140px;
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.03));
  color: #12313c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-output {
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(16, 32, 51, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 600;
}

.content.article {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content.article h1 {
  max-width: 14ch;
}

.content.article h2 {
  margin-top: 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.content-block + .content-block {
  margin-top: 0;
}

.content-block p {
  margin: 12px 0 0;
  color: var(--muted);
}

.content-block ul,
.content.article ul,
.tool-wrap ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.content-block li + li,
.content.article li + li {
  margin-top: 8px;
}

.callout {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  background: var(--accent-soft);
  color: #59360a;
}

.sample-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sample-panel > div {
  padding: 18px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
}

.sample-panel h2 {
  margin-bottom: 12px;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(16, 32, 51, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.ad-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.06);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ad-placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  text-align: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(217, 119, 6, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.65);
}

.ad-placeholder strong {
  font-size: 1rem;
}

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

.search-box {
  max-width: 640px;
}

.search-meta {
  margin: 6px 0 0;
  color: var(--muted);
}

.search-pills {
  margin-top: 14px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.search-empty {
  padding: 18px 20px;
  border: 1px dashed rgba(16, 32, 51, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.faq-grid {
  display: grid;
  gap: 14px;
}

.faq-card {
  padding: 18px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 251, 0.84)),
    rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.05);
}

.faq-card[open] {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 18px 36px rgba(16, 32, 51, 0.08);
}

.faq-card summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

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

.faq-card summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-deep);
  font-size: 1rem;
  font-weight: 700;
}

.faq-card[open] summary::after {
  content: "−";
  background: rgba(15, 118, 110, 0.14);
}

.faq-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  margin-bottom: 22px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.72);
}

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

.site-footer p + p {
  margin-top: 10px;
}

.site-footer strong {
  color: var(--text);
}

@media (max-width: 960px) {
  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    justify-content: flex-start;
  }

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

  .tool-panel {
    grid-template-columns: 1fr;
  }

  .output-panel {
    position: static;
  }

  .tool-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-actions .button {
    min-width: 0;
    width: 100%;
  }

  .sample-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main,
  .site-header,
  .site-footer,
  .breadcrumbs {
    width: calc(100% - 20px);
    max-width: 100%;
  }

  main {
    padding-top: 12px;
    gap: 18px;
  }

  .hero,
  .hero.compact,
  .band,
  .content-block,
  .content.article,
  .tool-panel,
  .site-footer {
    padding: 22px;
    border-radius: 24px;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .card-grid,
  .search-results {
    grid-template-columns: 1fr;
  }

  .pill-row,
  .home-search {
    flex-direction: column;
    align-items: stretch;
  }

  .home-search .button {
    width: 100%;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }

  .site-header {
    position: static;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero,
  .band,
  .content-block,
  .tool-panel,
  .card,
  .ad-slot {
    animation: rise 560ms ease both;
  }

  .card:nth-child(2n) {
    animation-delay: 60ms;
  }

.card:nth-child(3n) {
    animation-delay: 110ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
