@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --bg: #f5f4ef;
  --paper: #fbfaf7;
  --ink: #171714;
  --muted: #77766f;
  --line: #deddd5;
  --dark: #1d1e1b;
  --accent: #d7f04a;
  --accent-dark: #b8d22d;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(25, 25, 20, .07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.06em;
  font-size: 22px;
}

.brand span {
  font-weight: 500;
  color: #87887e;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  margin-left: 90px;
}

.desktop-nav a,
.header-login,
.text-button {
  color: #62625b;
  font-size: 14px;
  transition: color .2s;
}

.desktop-nav a:hover,
.header-login:hover,
.text-button:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-cta {
  background: var(--dark);
  color: white;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 42px auto 0;
  padding: 78px 78px;
  border-radius: 30px;
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 70px;
  align-items: center;
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  color: #77786e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 17px;
}

.hero .eyebrow {
  color: #aeb0a7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero .eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(46px, 6vw, 78px);
  letter-spacing: -.065em;
  line-height: .98;
  margin: 0;
}

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

.hero p {
  color: #b4b5ae;
  max-width: 520px;
  margin: 28px 0;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: var(--accent);
  color: var(--dark);
  padding: 14px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s, background .2s;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #e0f85f;
}

.primary-button.full {
  width: 100%;
}

.primary-button span {
  font-size: 18px;
}

.text-button {
  color: #c4c5bd;
}

.hero-note {
  margin-top: 35px;
  color: #888a82;
  font-size: 12px;
}

.hero-note span {
  color: var(--accent);
  margin-right: 5px;
}

.hero-panel {
  min-height: 360px;
  padding: 26px;
  border: 1px solid #3a3b36;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 45%);
}

.panel-top,
.panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-top {
  color: #c4c5bd;
  font-size: 12px;
}

.panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.signal {
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.signal-line {
  height: 2px;
  width: 100%;
  background: #55564e;
  transform: rotate(-7deg);
}

.signal-line.short {
  width: 70%;
  background: var(--accent);
}

.signal-line.tiny {
  width: 42%;
}

.panel-bottom small,
.panel-bottom strong {
  display: block;
}

.panel-bottom small {
  color: #7e8078;
  font-size: 11px;
  margin-bottom: 3px;
}

.panel-bottom strong {
  font-size: 14px;
}

.panel-arrow {
  font-size: 28px;
  color: var(--accent);
}

.trust-row {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8a8981;
  font-size: 12px;
}

.trust-row i {
  width: 4px;
  height: 4px;
  background: #bbb9b0;
  border-radius: 50%;
}

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

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2,
.dashboard-heading h1,
.auth-card h1,
.setup-page h1 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.055em;
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(35px, 5vw, 55px);
  line-height: 1;
}

.section-heading > p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  text-align: right;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.tariff-card {
  position: relative;
  padding: 31px;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.tariff-card.featured {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.popular {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--dark);
  background: var(--accent);
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.tariff-days {
  font-size: 14px;
  font-weight: 600;
}

.tariff-price {
  margin-top: 45px;
  font-family: "Manrope", sans-serif;
  font-size: 57px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.06em;
}

.tariff-price small {
  font-size: 21px;
  letter-spacing: -.02em;
}

.tariff-card p {
  color: var(--muted);
  font-size: 13px;
  max-width: 260px;
  margin: 19px 0 auto;
}

.featured p {
  color: #aaaCA4;
}

.buy-button,
.pay-button {
  border: 0;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13px;
  font-weight: 700;
}

.buy-button {
  width: 100%;
  margin-top: 25px;
  background: #e9e8e1;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.buy-button:hover {
  background: #deddd5;
}

.featured .buy-button {
  background: var(--accent);
}

.buy-button span {
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature-grid article {
  min-height: 250px;
  padding: 28px 30px 28px 0;
  border-right: 1px solid var(--line);
}

.feature-grid article:not(:first-child) {
  padding-left: 30px;
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid span {
  color: #a3a299;
  font-size: 11px;
}

.feature-grid h3 {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  margin: 55px 0 8px;
  letter-spacing: -.04em;
}

.feature-grid p {
  color: var(--muted);
  max-width: 280px;
  font-size: 13px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

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

.faq-list summary::after {
  content: "+";
  color: #898880;
  font-size: 20px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  max-width: 650px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 130px auto 0;
  padding: 45px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-main,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-main p {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 13px;
  color: #65655e;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 18px;
  color: #9b9a91;
  font-size: 11px;
}

.auth-body,
.dashboard-body {
  min-height: 100vh;
}

.auth-page {
  width: min(460px, calc(100% - 40px));
  margin: 75px auto;
}

.auth-page > .brand {
  display: inline-block;
  margin-bottom: 55px;
}

.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 42px;
  line-height: 1.05;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 30px;
}

.auth-card form {
  display: grid;
  gap: 16px;
}

.auth-card label {
  color: #66665f;
  font-size: 12px;
  font-weight: 600;
}

.auth-card input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 13px;
  margin-top: 7px;
  outline: none;
}

.auth-card input:focus {
  border-color: #99988f;
}

.auth-footer {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--ink);
  text-decoration: underline;
}

.form-error {
  color: #a64343;
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 0;
}

.dashboard-page {
  width: min(1050px, calc(100% - 40px));
  margin: 80px auto;
}

.dashboard-heading {
  margin-bottom: 35px;
}

.dashboard-heading h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.dashboard-heading p {
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 15px;
}

.account-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 30px;
}

.subscription-card {
  background: var(--dark);
  color: white;
}

.card-label {
  color: #92938b;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 700;
}

.subscription-card .card-label {
  color: #a7a9a1;
}

.subscription-status {
  margin-top: 55px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.account-card h2 {
  font-family: "Manrope", sans-serif;
  font-size: 38px;
  letter-spacing: -.05em;
  margin: 5px 0;
}

.account-card p {
  color: var(--muted);
  font-size: 13px;
}

.subscription-card p {
  color: #a5a69f;
}

.secondary-button {
  display: inline-flex;
  background: #e8e7df;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 18px;
}

.subscription-card .secondary-button {
  background: var(--accent);
  color: var(--dark);
}

.connection-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9efc8;
  color: #63701f;
  font-weight: 800;
  margin: 65px 0 15px;
}

.connection-card-new h2 {
  font-size: 30px;
}

.orders-section {
  margin-top: 85px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading.compact h2 {
  font-size: 36px;
}

.orders-list {
  border-top: 1px solid var(--line);
}

.order-row {
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 25px;
}

.order-main strong,
.order-main span,
.order-right strong,
.order-right span {
  display: block;
}

.order-main strong {
  font-size: 14px;
}

.order-main span,
.order-right span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.order-right {
  text-align: right;
}

.order-status {
  color: #777;
}

.order-status.paid {
  color: #657a1c;
}

.order-status.pending {
  color: #9a7b24;
}

.pay-button {
  background: var(--dark);
  color: white;
}

.pay-button:disabled {
  opacity: .5;
  cursor: wait;
}

.empty-state {
  color: var(--muted);
  font-size: 13px;
  padding: 28px 0;
}

.ghost-button {
  margin-top: 35px;
  border: 0;
  background: transparent;
  color: #929189;
  text-decoration: underline;
  font-size: 12px;
}

.setup-page {
  width: min(760px, calc(100% - 40px));
  margin: 90px auto;
}

.setup-page h1 {
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1;
}

.lead {
  color: var(--muted);
  margin: 20px 0 45px;
}

.setup-placeholder {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 50px;
}

.setup-placeholder .connection-mark {
  margin: 0 0 20px;
}

.setup-placeholder h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.setup-placeholder p {
  color: var(--muted);
  max-width: 500px;
}

@media (max-width: 800px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
    border: 0;
    background: transparent;
    font-size: 24px;
  }

  .mobile-menu {
    position: absolute;
    z-index: 10;
    top: 76px;
    left: 20px;
    right: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .mobile-menu.active {
    display: grid;
  }

  .mobile-menu a {
    padding: 13px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 55px 28px;
    gap: 45px;
  }

  .hero-panel {
    min-height: 260px;
  }

  .tariff-grid,
  .feature-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    text-align: left;
    margin-top: 15px;
  }

  .feature-grid article,
  .feature-grid article:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .trust-row {
    gap: 12px;
  }

  .trust-row span:nth-of-type(3) {
    display: none;
  }

  .trust-row i:last-of-type {
    display: none;
  }

  .footer-main,
  .footer-bottom {
    display: grid;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .order-row {
    grid-template-columns: 1fr auto;
    padding: 18px 0;
  }

  .pay-button {
    grid-column: 1 / -1;
  }
}
