:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --ink: #2c2419;
  --muted: #6f6254;
  --line: #eadcc6;
  --brand: #f6a51a;
  --brand-dark: #c76d00;
  --brand-soft: #fff0c8;
  --green: #2d7a61;
  --shadow: 0 22px 60px rgba(113, 72, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.8;
  background:
    linear-gradient(180deg, #fff6df 0, #fffaf0 420px, #ffffff 100%);
}

a {
  color: #8f4d00;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(234, 220, 198, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
}

.header-login {
  background: #fff;
  border-top: 1px solid rgba(234, 220, 198, 0.75);
}

.header-login-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0;
}

.login-title {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 210px;
}

.brand img {
  display: block;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.header-nav a,
.header-cta,
.button {
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.header-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.header-nav a:hover {
  color: var(--ink);
  background: var(--brand-soft);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.header-cta {
  padding: 9px 16px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  min-height: 640px;
  margin: 0 auto;
  padding: 72px 0 80px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(40px, 5.2vw, 62px);
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #f6a51a, #e07000);
  box-shadow: 0 14px 30px rgba(224, 112, 0, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 38px 0 0;
}

.trust-list div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-list dt {
  color: var(--brand-dark);
  font-weight: 800;
}

.trust-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel,
.side-panel,
.news-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px 10px;
}

.counter-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  margin: 16px 0;
  padding: 22px;

background: linear-gradient(180deg, #faf8f4, #ffffff);

  border: 1px solid #ead8b8;
  border-radius: 8px;

  box-shadow:
    inset 0 1px 3px rgba(0,0,0,0.04);
}

.sample-counter {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sample-counter b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 52px;
  color: #2c2419;
  background: linear-gradient(180deg, #fff6c8, #ffca4b);
  border: 1px solid #dfa438;
  border-radius: 6px;
  box-shadow: inset 0 -8px 16px rgba(141, 80, 0, 0.12);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.panel-note,
.viewer-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.viewer-count strong {
  color: var(--ink);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.intro-grid,
.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.intro-grid p,
.split-section p,
.section-heading p {
  color: var(--muted);
}

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

.feature-list article,
.link-cards a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list article {
  padding: 22px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 800;
}

.feature-list p,
.link-cards span {
  color: var(--muted);
}

.visual-section,
.cards-section,
.news-section {
  border-top: 1px solid var(--line);
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 34px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 54px);
}

.content-section {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.content-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(113, 72, 16, 0.1);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.content-card h3 {
  margin-top: 24px;
}

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

.legacy-content {
  color: var(--ink);
  font-size: 16px;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
  margin: 18px 0 12px;
}

.legacy-content p {
  color: var(--ink);
}

.legacy-content p.background,
.legacy-content div.background,
.legacy-content h4.background,
.legacy-content h5.background,
.legacy-content p.backcolor,
.legacy-content div.backcolor,
.legacy-content h4.backcolor,
.legacy-content h5.backcolor,
.legacy-content p.style1,
.legacy-content div.style1 {
  display: block;
  margin: 18px 0 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff6df;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  font-weight: 800;
}

.legacy-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.legacy-content tbody {
  display: table;
  width: 100%;
}

.legacy-content th,
.legacy-content td {
  padding: 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legacy-content th {
  white-space: nowrap;
}

.legacy-content th.backcolor {
  color: var(--ink);
  background: #fff1cf;
  border-left: 4px solid var(--brand);
}

.legacy-content td.background {
  color: var(--ink);
  background: #fff;
  border-left: 0;
}

.legacy-content input[type="text"],
.legacy-content input[type="url"],
.legacy-content input[type="password"],
.legacy-content input[type="email"],
.legacy-content select,
.legacy-content textarea {
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.legacy-content textarea {
  width: 100%;
  min-height: 160px;
}

.legacy-content input[type="submit"],
.legacy-content input[type="button"],
.legacy-content button {
  min-height: 42px;
  padding: 9px 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.legacy-content input[type="radio"],
.legacy-content input[type="checkbox"] {
  margin-right: 6px;
}

.legacy-content center {
  display: block;
  max-width: 100%;
}

.legacy-content hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.number-list,
.plain-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 1.4em;
  color: var(--muted);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.analytics-grid,
.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

figure {
  margin: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.link-cards a {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 20px;
  color: var(--ink);
}

.link-cards a:hover {
  border-color: #f2b84c;
  box-shadow: 0 14px 36px rgba(113, 72, 16, 0.12);
  text-decoration: none;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.side-panel {
  padding: 28px;
}

.login-card form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.login-card label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}

.login-card input[type="submit"] {
  min-height: 38px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 8px;
  font-size: 14px;
}

.header-login .login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.header-login .login-links {
  margin-top: 0;
  justify-content: flex-end;
}

.panel-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.news-box {
  padding: 8px 26px 22px;
}

.news-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-weight: 800;
}

.news-body {
  margin: 0;
  color: var(--muted);
}

.more-link {
  text-align: right;
}

.site-footer {
  margin-top: 20px;
  padding: 42px 0;
  color: #fff;
  background: #2c2419;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a {
  color: #ffe0a1;
}

.footer-note {
  margin: 10px 0 0;
  color: #d8c8ae;
  font-size: 13px;
}

.footer-copy {
  width: min(1120px, calc(100% - 40px));
  margin: 26px auto 0;
  color: #d8c8ae;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-login-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-login .login-card {
    grid-template-columns: 1fr;
  }

  .header-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-inner,
  .intro-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 48px;
  }

  .hero-panel {
    max-width: 520px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    width: 168px;
  }

  .header-cta {
    padding: 8px 12px;
  }

  .hero-inner,
  .section {
    padding: 46px 0;
  }

  h1 {
    font-size: 38px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .lead {
    font-size: 17px;
  }

  .trust-list,
  .feature-list,
  .link-cards,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .login-card label {
    grid-template-columns: 56px 1fr;
  }

  .header-login .login-links {
    justify-content: flex-start;
  }

  .hero-panel,
  .side-panel,
  .news-box,
  .content-card {
    padding: 20px;
  }

  .page-hero-inner,
  .content-section {
    width: min(100% - 28px, 920px);
  }

  .page-hero-inner {
    padding: 34px 0 30px;
  }

  .content-section {
    padding-top: 34px;
  }

  .legacy-content table,
  .legacy-content tbody,
  .legacy-content tr,
  .legacy-content th,
  .legacy-content td {
    display: block;
    width: 100%;
  }

  .legacy-content th,
  .legacy-content td {
    white-space: normal;
  }

  .legacy-content input[type="text"],
  .legacy-content input[type="password"],
  .legacy-content input[type="email"],
  .legacy-content select,
  .legacy-content input[type="submit"],
  .legacy-content input[type="button"],
  .legacy-content button {
    width: 100% !important;
  }
}
