:root {
  color-scheme: light;
  --ink: #121426;
  --muted: #686b7b;
  --line: rgba(47, 52, 89, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #4f56ed;
  --accent-deep: #30388f;
  --soft: #f2f2f9;
  --success: #118d68;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(79, 86, 237, 0.16), transparent 32rem),
    linear-gradient(180deg, #fbfbff 0%, #f2f2f9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(48, 56, 143, 0.24);
}

.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-download { color: var(--accent-deep); }

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 70px;
  max-width: 1120px;
  min-height: 760px;
  margin: 0 auto;
  padding: 70px 28px 90px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -0.035em; }
h1 { max-width: 720px; margin-top: 18px; font-size: clamp(3.4rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }

.hero-copy > p {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #424658;
  font-size: 0.9rem;
  font-weight: 650;
}

.store-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  min-width: 174px;
  padding: 10px 20px 11px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(18, 20, 38, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-button:hover {
  box-shadow: 0 16px 38px rgba(18, 20, 38, 0.24);
  transform: translateY(-2px);
}

.store-button:focus-visible {
  outline: 3px solid rgba(79, 86, 237, 0.35);
  outline-offset: 3px;
}

.store-button-kicker {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.1;
}

.store-button-name {
  margin-top: 2px;
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.1;
}

.store-detail {
  max-width: 190px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.phone-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
}

.phone-wrap::before {
  position: absolute;
  inset: 7% -12%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(79, 86, 237, 0.18);
  filter: blur(42px);
  content: "";
}

.phone-wrap img {
  display: block;
  width: 100%;
  border: 1px solid rgba(18, 20, 38, 0.08);
  border-radius: 42px;
  box-shadow: 0 35px 80px rgba(32, 35, 80, 0.22);
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 100px 28px;
}

.section-heading { max-width: 720px; }
.section-heading p { margin: 20px 0 0; color: var(--muted); font-size: 1.15rem; }

.steps, .feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.card {
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(36, 39, 71, 0.07);
}

.card-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 14px;
  background: rgba(79, 86, 237, 0.12);
  color: var(--accent);
  font-weight: 850;
}

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

.privacy-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  padding: 54px;
  border-radius: 36px;
  background: linear-gradient(145deg, #30388f, #22275f);
  color: white;
}

.privacy-panel p { color: rgba(255, 255, 255, 0.76); }

.privacy-list { display: grid; gap: 15px; }
.privacy-item { padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.09); font-weight: 650; }

.pro-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pro-list { display: grid; gap: 12px; }
.pro-list div { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-weight: 700; }

.calculator-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 54px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(79, 86, 237, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(79, 86, 237, 0.12), rgba(255, 255, 255, 0.78));
}

.calculator-teaser h2 { max-width: 720px; margin-top: 12px; font-size: clamp(2rem, 4vw, 3.4rem); }
.calculator-teaser p { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }

.secondary-button {
  display: inline-flex;
  justify-content: center;
  padding: 14px 19px;
  border: 1px solid rgba(79, 86, 237, 0.22);
  border-radius: 15px;
  background: white;
  color: var(--accent-deep);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(36, 39, 71, 0.08);
}

.secondary-button:hover { border-color: var(--accent); transform: translateY(-1px); }

.guide-teaser-section { padding-top: 0; }
.guide-teaser {
  max-width: 820px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 50px rgba(36, 39, 71, 0.06);
}
.guide-teaser h2 { margin-top: 12px; font-size: clamp(2rem, 4vw, 3.3rem); }
.guide-teaser p { margin: 18px 0 24px; color: var(--muted); font-size: 1.08rem; }

.calculator-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 28px 120px;
}

.calculator-intro { max-width: 810px; }
.calculator-intro h1 { margin-top: 16px; font-size: clamp(3rem, 7vw, 5.8rem); }
.calculator-intro > p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  margin-top: 52px;
}

.calculator-card,
.result-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(36, 39, 71, 0.07);
}

.field-label { display: block; margin-bottom: 8px; color: #424658; font-size: 0.88rem; font-weight: 750; }
.payment-field { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }

.calculator-card input,
.calculator-card select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 52, 89, 0.18);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.calculator-card input:focus,
.calculator-card select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(79, 86, 237, 0.12);
}

.rules-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 28px; }
.rules-header h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.rules-header p { margin: 5px 0 0; color: var(--muted); font-size: 0.9rem; }

.text-button {
  padding: 9px 11px;
  border: 0;
  border-radius: 11px;
  background: rgba(79, 86, 237, 0.1);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.rule-list { display: grid; gap: 10px; margin-top: 16px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 38px; gap: 8px; align-items: center; }
.percent-field { position: relative; }
.percent-field input { padding-right: 28px; text-align: right; }
.percent-field span { position: absolute; top: 50%; right: 11px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }

.remove-rule {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.remove-rule:hover { background: rgba(18, 20, 38, 0.06); color: var(--ink); }

.total-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 750; }
.total-row .valid { color: var(--success); }
.total-row .invalid { color: #b24848; }
.calculator-note { margin: 18px 0 0; color: var(--muted); font-size: 0.84rem; }

.result-card { align-self: start; background: linear-gradient(155deg, #30388f, #22275f); color: white; }
.result-card h2 { font-size: 2rem; }
.result-card > p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.72); }
.result-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.result-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); }
.result-list span { color: rgba(255, 255, 255, 0.78); }
.result-list strong { white-space: nowrap; }
.result-empty { margin-top: 24px; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.76); }
.result-card .store-button { margin-top: 26px; background: white; color: var(--ink); box-shadow: none; }
.result-card .store-detail { display: block; margin-top: 12px; color: rgba(255, 255, 255, 0.66); }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.guide-card { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.62); }
.guide-card p { margin: 12px 0 0; color: var(--muted); }
.faq-list { display: grid; gap: 12px; margin-top: 34px; }
.faq-list details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.66); }
.faq-list summary { font-weight: 750; cursor: pointer; }
.faq-list p { margin: 12px 0 0; color: var(--muted); }

.article-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 28px 120px;
}

.article-hero { max-width: 900px; }
.article-hero h1 { margin-top: 16px; font-size: clamp(3rem, 7vw, 5.7rem); }
.article-lede { max-width: 790px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.article-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 820px;
  margin-top: 48px;
  padding: 24px 26px;
  border: 1px solid rgba(79, 86, 237, 0.2);
  border-radius: 22px;
  background: rgba(79, 86, 237, 0.08);
}
.article-callout div { display: grid; gap: 3px; }
.article-callout span { color: var(--muted); }

.article-body { max-width: 820px; margin-top: 72px; }
.article-body > p, .article-body li { color: #4f5260; font-size: 1.06rem; }
.article-body > h2 { margin-top: 58px; font-size: clamp(2rem, 4vw, 3rem); }
.article-body > h2 + p { margin-top: 18px; }

.article-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.article-rule-grid section { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.66); }
.article-rule-grid p { margin: 10px 0 0; color: var(--muted); }

.example-card { margin-top: 30px; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, 0.72); }
.example-card h3 { margin-top: 10px; font-size: 1.6rem; }
.example-card ul { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.example-card li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.example-card .example-total { color: var(--ink); font-weight: 800; }
.example-card p { margin: 20px 0 0; color: var(--muted); font-size: 0.94rem; }

.article-cta { margin-top: 68px; padding: 38px; border-radius: 30px; background: linear-gradient(145deg, #30388f, #22275f); color: white; }
.article-cta h2 { margin-top: 10px; font-size: clamp(2rem, 4vw, 3.2rem); }
.article-cta p { color: rgba(255, 255, 255, 0.75); }
.article-cta .store-detail { color: rgba(255, 255, 255, 0.68); }
.article-disclaimer { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem !important; }

.press-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 28px 120px;
}

.press-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 70px;
  align-items: center;
}
.press-hero > div { min-width: 0; }
.press-hero h1 { margin-top: 16px; font-size: clamp(3.2rem, 7vw, 6rem); }
.press-hero p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 1.25rem; }
.press-icon { width: 100%; border-radius: 48px; box-shadow: 0 30px 70px rgba(48, 56, 143, 0.22); }

.press-section { max-width: 900px; margin-top: 110px; }
.press-section h2 { max-width: 820px; margin-top: 12px; font-size: clamp(2.2rem, 5vw, 4rem); }
.press-section > p, .press-split p { color: var(--muted); font-size: 1.08rem; }
.press-summary { max-width: 850px; margin-top: 24px; font-size: 1.22rem !important; }

.press-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.press-facts article { display: grid; gap: 5px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.68); }
.press-facts span { color: var(--muted); font-size: 0.83rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.press-facts strong { font-size: 1.08rem; }

.press-split { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 70px; align-items: center; max-width: 1000px; }
.press-screenshot { width: 100%; border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 24px 60px rgba(36, 39, 71, 0.16); }

.press-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.press-points div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.64); font-weight: 700; }
.press-note { margin-top: 24px; font-size: 0.92rem !important; }
.press-note a { color: var(--accent-deep); }

.press-assets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.press-assets a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, 0.68); text-decoration: none; }
.press-assets img { width: 76px; height: 76px; border-radius: 15px; object-fit: cover; object-position: top; }
.press-assets span { display: grid; color: var(--muted); font-size: 0.86rem; }
.press-assets strong { color: var(--ink); font-size: 1rem; }

.press-links ul { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.press-links a { color: var(--accent-deep); font-weight: 750; }

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 28px 120px;
}

.legal-page h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.legal-page h2 { margin-top: 48px; font-size: 1.7rem; }
.legal-page p, .legal-page li { color: #4f5260; }
.legal-page .updated { margin: 18px 0 44px; color: var(--muted); }
.legal-page .callout { padding: 22px; border-left: 4px solid var(--accent); border-radius: 0 16px 16px 0; background: rgba(79, 86, 237, 0.08); }
.legal-page a { color: var(--accent-deep); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 28px 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; text-align: center; }
  .hero-copy > p { margin-right: auto; margin-left: auto; }
  .trust-row { justify-content: center; }
  .store-cta { justify-content: center; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .privacy-panel, .pro-panel { grid-template-columns: 1fr; gap: 36px; }
  .privacy-panel { padding: 32px; }
  .calculator-teaser, .calculator-shell { grid-template-columns: 1fr; }
  .calculator-teaser { gap: 28px; }
  .guide-grid { grid-template-columns: 1fr; }
  .article-rule-grid { grid-template-columns: 1fr; }
  .press-hero, .press-split { grid-template-columns: 1fr; }
  .press-hero .store-cta { justify-content: flex-start; }
  .press-icon { width: 180px; }
  .press-screenshot { width: min(100%, 280px); }
  .press-facts, .press-assets { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav { padding: 14px 18px; }
  .nav-links { gap: 12px; font-size: 0.9rem; }
  .nav-links a:nth-child(2) { display: none; }
  .hero, .section, .legal-page, .calculator-page, .article-page, .press-page { padding-right: 18px; padding-left: 18px; }
  h1 { font-size: 3.2rem; }
  .store-cta { flex-direction: column; }
  .calculator-teaser, .calculator-card, .result-card { padding: 24px; }
  .guide-teaser, .article-cta { padding: 26px; }
  .article-callout { align-items: stretch; flex-direction: column; }
  .press-points { grid-template-columns: 1fr; }
  .press-hero h1 { font-size: 2.75rem; overflow-wrap: anywhere; }
  .press-hero p { font-size: 1.08rem; }
  .press-hero .store-cta { align-items: flex-start; }
  .payment-field { grid-template-columns: minmax(0, 1fr) 100px; }
  .rule-row { grid-template-columns: minmax(0, 1fr) 86px 34px; }
  footer { flex-direction: column; padding-right: 18px; padding-left: 18px; }
}
