:root {
  --brand: #0f766e;
  --brand-strong: #114b5f;
  --accent: #d26a3d;
  --accent-strong: #b85c33;
  --ink: #182334;
  --muted: #5d6978;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #f7f1e8;
  --surface-tint: #eef7f5;
  --line: #d7e2e0;
  --shadow: 0 24px 60px rgba(16, 31, 47, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(247, 237, 209, 0.92), transparent 28%),
    linear-gradient(180deg, #f6f4ee 0%, #edf3f3 52%, #f7f8fb 100%);
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: #102033;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p,
li {
  font-size: 1rem;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(248, 246, 240, 0.82);
  border-bottom: 1px solid rgba(17, 75, 95, 0.08);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #123041;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: rgba(15, 118, 110, 0.12);
  color: var(--brand);
  transform: translateY(-1px);
}

nav a[aria-current="page"] {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.18);
}

.breadcrumb {
  padding: 16px 0 0;
  margin: 0;
  background: none;
  font-size: 14px;
}

.breadcrumb .container {
  display: flex;
  justify-content: center;
}

.breadcrumb ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: rgba(93, 105, 120, 0.8);
}

.breadcrumb a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 78px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(17, 75, 95, 0.94) 55%, rgba(181, 102, 56, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(8px);
}

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

.hero h1 {
  max-width: 960px;
  margin: 0 auto 16px;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-home .container {
  display: grid;
  justify-items: center;
  gap: 0;
}

.hero-guide .container {
  max-width: 860px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 980px;
  margin-top: 26px;
}

.hero-stat {
  padding: 18px 20px;
  border-radius: 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat strong,
.hero-stat span {
  display: block;
}

.hero-stat strong {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 1.05rem;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.86);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.article-meta span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(210, 106, 61, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  color: #ffffff;
}

.btn:disabled,
.btn-primary:disabled,
.btn.is-busy {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.btn.is-confirmed {
  background: var(--brand);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.2);
}

.btn-secondary {
  background: #102033;
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(16, 32, 51, 0.18);
}

.btn-secondary:hover {
  background: #0b1827;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

main.container {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.main-tool,
.tool-card,
.results-container,
.card,
.benefit-card,
.use-case-card,
.related-tool-card,
.faq-item,
.section,
.tool-page-panel,
.step-card {
  border: 1px solid rgba(17, 75, 95, 0.08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.main-tool {
  max-width: 980px;
  margin: 0 auto 42px;
  padding: 30px;
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 26px;
  align-items: start;
}

.tool-editor h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.tool-editor .muted {
  margin-bottom: 18px;
}

.tool-aside {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eef8f5, #faf2e9);
  border: 1px solid var(--line);
}

.tool-aside .eyebrow {
  margin-bottom: 14px;
  background: rgba(17, 75, 95, 0.08);
  border-color: rgba(17, 75, 95, 0.08);
  color: var(--brand-strong);
}

.tool-help-list,
.hero-list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.tool-help-list li,
.hero-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

textarea,
input,
select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(17, 75, 95, 0.05);
}

textarea {
  min-height: 220px;
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0 10px;
  color: #102033;
  font-weight: 600;
  font-size: 0.96rem;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-actions,
.button-section,
.results-actions,
.group-actions,
.share-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-actions {
  margin-top: 14px;
}

.feedback-bar {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.feedback-bar.is-visible {
  display: block;
}

.feedback-bar[data-tone="success"] {
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
  border-color: rgba(15, 118, 110, 0.16);
}

.feedback-bar[data-tone="warning"] {
  background: rgba(210, 106, 61, 0.12);
  color: #8d4d2d;
  border-color: rgba(210, 106, 61, 0.18);
}

.feedback-bar[data-tone="info"] {
  background: rgba(16, 32, 51, 0.06);
  color: #213243;
  border-color: rgba(16, 32, 51, 0.12);
}

.results {
  display: none;
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f4f8f8, #eef3f5);
  border: 1px solid rgba(17, 75, 95, 0.1);
}

.results-meta {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.1);
}

.results-meta strong {
  display: block;
  margin-bottom: 4px;
}

.results-summary {
  margin: 0;
  color: var(--muted);
}

.results-placeholder {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  border: 1px dashed rgba(17, 75, 95, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
}

.results-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.results-placeholder.is-hidden {
  display: none;
}

.group-card {
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f5fbfb);
  border: 1px solid rgba(17, 75, 95, 0.08);
  border-left: 4px solid var(--brand);
  box-shadow: 0 18px 36px rgba(17, 75, 95, 0.08);
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.group-card h4 {
  margin: 0;
  font-size: 1.25rem;
}

.group-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
}

.group-members {
  color: var(--muted);
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f7f7;
  border: 1px solid rgba(17, 75, 95, 0.1);
  color: #29404d;
  font-size: 0.95rem;
}

.ad-slot {
  margin: 26px 0;
  padding: 18px;
  text-align: center;
  border-radius: 20px;
  background: rgba(16, 32, 51, 0.04);
}

.section {
  margin: 32px 0;
  padding: 38px;
}

.section-title,
.section h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.section-title {
  text-align: center;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
}

.grid,
.groups-grid,
.step-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card,
.benefit-card,
.use-case-card,
.related-tool-card,
.step-card {
  padding: 24px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.benefit-card:hover,
.use-case-card:hover,
.related-tool-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.22);
}

.card a,
.related-tool-card a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.card a:hover,
.related-tool-card a:hover {
  text-decoration: underline;
}

.card-kicker,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
}

.callout-card {
  background: linear-gradient(180deg, #fff7d9, #faf4ec);
  border-color: rgba(210, 106, 61, 0.22);
  border-left: 6px solid var(--accent);
}

.author-card {
  background: linear-gradient(180deg, #f8f4ec, #ffffff);
}

.author-card p,
.callout-card p {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  margin: 0;
  padding: 20px 24px;
}

.faq-item h4 {
  margin-bottom: 8px;
}

footer {
  margin-top: 56px;
  padding: 34px 20px;
  text-align: center;
  color: #ffffff;
  background: #102033;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.share-wrap {
  display: none;
  justify-content: center;
  margin-top: 16px;
}

.share-wrap .btn,
.btn-small {
  min-height: 42px;
  padding: 10px 16px;
}

.bg-section {
  padding: 6px 0;
}

.tool-section {
  padding: 26px 0 18px;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.main-title {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}

.subtitle {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.tool-page-panel {
  padding: 24px;
  background: linear-gradient(180deg, #edf7f4, #faf1e7);
}

.tool-page-panel h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.tool-card {
  padding: 30px;
  display: grid;
  gap: 22px;
}

.input-section,
.options-section,
.button-section {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-strong);
  border: 1px solid rgba(17, 75, 95, 0.08);
}

.name-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-strong);
  font-weight: 700;
}

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

.option-group {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.option-group label,
.checkbox-label {
  align-items: flex-start;
  margin: 0;
}

.option-group input[type="number"] {
  margin-top: 12px;
  margin-bottom: 0;
}

.tool-tip {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-strong);
  font-size: 0.95rem;
}

.results-container {
  padding: 26px;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.article-shell {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.article-body {
  max-width: 860px;
  margin: 0 auto;
}

.article-body .section {
  padding: 34px 36px;
}

.article-body p,
.article-body li {
  font-size: 1.04rem;
}

.article-body ol,
.article-body ul,
.how-to-guide ol,
.section ol,
.section ul {
  padding-left: 22px;
}

.article-body li,
.how-to-guide li,
.section li {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .tool-shell,
  .tool-hero-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .tool-page-panel,
  .tool-aside {
    order: 2;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0 14px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  nav li {
    scroll-snap-align: start;
  }

  nav a {
    padding: 9px 14px;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .hero {
    padding: 72px 0 62px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stat {
    padding: 16px 18px;
    text-align: center;
  }

  .hero-actions .btn,
  .tool-actions .btn,
  .button-section .btn,
  .results-actions .btn,
  .group-actions .btn,
  .share-wrap .btn {
    width: 100%;
  }

  main.container,
  .article-shell {
    margin-top: -34px;
  }

  .main-tool,
  .tool-card,
  .results-container,
  .section,
  .article-body .section,
  .step-card,
  .results-placeholder {
    padding: 20px;
  }

  .tool-card,
  .section,
  .results-container {
    border-radius: 24px;
  }

  .tool-actions,
  .button-section,
  .results-info,
  .results-actions,
  .group-actions,
  .share-wrap,
  .hero-actions,
  .group-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .results-info {
    text-align: left;
  }

  .group-card-badge {
    align-self: flex-start;
  }

  .member-list {
    gap: 8px;
  }

  .member-chip {
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
  }

  .grid,
  .groups-grid,
  .options-section,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb .container {
    justify-content: flex-start;
  }

  .article-meta {
    justify-content: center;
  }
}

@media (max-width: 540px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero h1,
  .main-title {
    font-size: 2rem;
  }

  .eyebrow {
    font-size: 0.78rem;
    padding: 7px 12px;
  }

  .section-title,
  .section h2 {
    font-size: 1.8rem;
  }

  .tool-page-panel,
  .tool-aside,
  .option-group,
  .faq-item {
    padding: 18px;
  }

  .results-summary,
  .results-placeholder,
  .member-chip,
  .tool-tip,
  .muted {
    font-size: 0.92rem;
  }

  .group-card h4 {
    font-size: 1.12rem;
  }

  .group-card-badge {
    min-width: 0;
    font-size: 0.9rem;
  }
}