:root {
  --bg: #102a36;
  --bg-soft: #102a36;
  --ink: #eef5f6;
  --muted: #a3bcc4;
  --line: rgba(205,235,242, 0.14);
  --panel: rgba(205,235,242,.06);
  --panel-strong: rgba(14,36,46,.72);
  
  
  
  
  
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body::selection {
  background: rgba(233,196,141, 0.35);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.header-cta,
.header-store-badge,
.nav-links a,
.secondary-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav-links a,
.header-cta {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a:hover,
.header-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent));
  color: #fff;
}

.header-store-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  transition: filter 180ms ease, transform 180ms ease;
}

.header-store-badge:hover {
  filter: brightness(1.08);
  transform: scale(1.045);
}

.header-store-badge img {
  display: block;
  width: auto;
  height: 39px;
}

.header-store-badge.google-play-badge img {
  height: 39px;
  margin: 0;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  padding: 124px 0 72px;
  background:
    radial-gradient(circle at 72% 8%, transparent, transparent 32%),
    radial-gradient(circle at 15% 24%, transparent, transparent 28%),
    transparent;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 72%, transparent);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 220px;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.hero-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 26px;
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(3.35rem, 7vw, 6.35rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-claim {
  max-width: 640px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.45rem, 2.7vw, 2.7rem);
  font-weight: 900;
  line-height: 1.05;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(248, 250, 252, 0.78);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.store-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.store-badge:hover {
  filter: brightness(1.08);
  transform: scale(1.045);
}

.store-badge img {
  width: auto;
  height: 53px;
}

.store-badge.google-play-badge img {
  height: 53px;
  margin: 0;
}

.secondary-link {
  position: relative;
  color: #fff;
  font-weight: 800;
}

.secondary-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--accent));
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-product {
  position: relative;
}

.hero-product::before {
  position: absolute;
  inset: -24px -18px;
  border-radius: 44px;
  content: "";
  background: linear-gradient(135deg, rgba(233,196,141, 0.2), rgba(233,196,141, 0.18));
  filter: blur(18px);
  opacity: 0.85;
}

.calculator-shell {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.calculator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calculator-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.live-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(233,196,141, 0.28);
  border-radius: 999px;
  color: var(--pos);
  background: rgba(233,196,141, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calc-form {
  display: grid;
  gap: 14px;
}

.input-row {
  display: grid;
  gap: 12px;
}

.input-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
.risk-mode {
  display: grid;
  gap: 8px;
  min-width: 0;
}

label span,
.risk-mode legend {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 760;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(233,196,141, 0.8);
  box-shadow: 0 0 0 4px rgba(233,196,141, 0.13);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 13px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.risk-mode {
  min-height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
}

.risk-mode legend {
  margin-bottom: 8px;
}

.risk-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.risk-mode legend {
  grid-column: 1 / -1;
}

.risk-mode label {
  position: relative;
  display: grid;
}

.risk-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.risk-mode span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.075);
}

.risk-mode input:checked + span {
  border-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), rgba(233,196,141, 0.8));
}

.rr-panel {
  display: grid;
  gap: 14px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.rr-panel h3 {
  margin: 0;
  text-align: center;
  font-size: 1.24rem;
  line-height: 1;
}

.rr-control {
  display: grid;
  grid-template-columns: 0.72fr 0.85fr 1.75fr 0.85fr 0.72fr;
  gap: 10px;
  align-items: center;
}

.rr-control button,
.rr-control input {
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.rr-control button {
  cursor: pointer;
}

.rr-control button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
}

.rr-control .negative {
  color: var(--neg);
}

.rr-control .positive {
  color: var(--pos);
}

.rr-control input {
  font-size: 1.06rem;
}

.break-even {
  margin: -2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.25;
}

.break-even strong {
  color: var(--accent);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

output {
  display: flex;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(233,196,141, 0.18);
  border-radius: 22px;
  background: rgba(233,196,141, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

output span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

output .value-line {
  display: inline-flex;
  max-width: 100%;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
  color: inherit;
  white-space: nowrap;
}

output strong {
  display: inline-block;
  color: var(--accent);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 0.95;
  white-space: nowrap;
}

output:nth-child(2) strong {
  color: var(--accent);
}

output:nth-child(3) strong {
  color: var(--pos);
}

output:nth-child(4) strong {
  color: var(--neg);
}

output em {
  margin-left: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

output .fit-value {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  letter-spacing: 0;
  transform-origin: center;
}

output .fit-value.is-long {
  font-size: clamp(1.15rem, 2.35vw, 1.85rem);
}

output .fit-value.is-very-long {
  font-size: clamp(0.95rem, 2vw, 1.6rem);
}

.section,
.screenshots,
.faq-section,
.final-cta {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 56px;
  align-items: end;
  padding: 86px 0 68px;
}

.section-copy h2,
.feature-copy h2,
.screenshots-copy h2,
.faq-copy h2,
.final-inner h2 {
  margin-bottom: 16px;
  font-size: clamp(2.3rem, 4.8vw, 5rem);
  line-height: 0.95;
}

.section-copy p,
.feature-copy p,
.screenshots-copy p,
.faq-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats-strip div {
  min-height: 140px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent);
}

.stats-strip strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-weight: 760;
}

.feature-band {
  padding: 64px 0 96px;
}

.feature-copy {
  max-width: 760px;
  margin-bottom: 46px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-item {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent));
  font-weight: 950;
}

.feature-item h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.14;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.screenshots {
  padding: 88px 0 96px;
}

.screenshots-copy {
  max-width: 820px;
  margin-bottom: 32px;
}

.phone-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.86fr 1fr;
  gap: 16px;
  align-items: end;
  overflow: hidden;
  padding: 18px 10px 0;
}

.phone-stage::before {
  position: absolute;
  right: 4%;
  bottom: 14%;
  left: 4%;
  height: 44%;
  border-radius: 999px;
  content: "";
  background:
    radial-gradient(circle at 28% 50%, transparent, transparent 36%),
    radial-gradient(circle at 66% 50%, transparent, transparent 38%);
  filter: blur(28px);
}

.phone-shot {
  position: relative;
  z-index: 1;
  margin: 0;
}

.phone-shot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.48));
}

.phone-shot.mid {
  transform: translateY(7%);
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  gap: 60px;
  padding: 84px 0;
}

.workflow-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list span {
  color: var(--accent);
  font-weight: 950;
}

.workflow-list p {
  margin: 0;
  color: rgba(248, 250, 252, 0.86);
  font-size: 1.18rem;
  line-height: 1.45;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 56px;
  padding: 84px 0;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-link {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.guide-link:hover {
  border-color: rgba(233,196,141, 0.42);
  background: rgba(233,196,141, 0.07);
  transform: translateY(-2px);
}

.guide-link span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-link strong {
  font-size: 1.18rem;
  line-height: 1.18;
}

.guide-link em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 56px;
  padding: 84px 0;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.final-cta {
  padding: 64px 0 92px;
}

.final-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 28%, transparent, transparent 32%),
    radial-gradient(circle at 10% 18%, transparent, transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.final-inner > img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
}

.final-inner h2 {
  margin: 0;
}

.final-store-badges {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 34px 20px 46px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.content-body {
  min-height: 100%;
  background:
    radial-gradient(circle at 76% 0%, transparent, transparent 34%),
    radial-gradient(circle at 10% 18%, transparent, transparent 30%),
    var(--bg);
}

.content-main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 126px 0 72px;
}

.article-hero,
.support-hero {
  max-width: 820px;
  margin-bottom: 44px;
}

.article-hero h1,
.support-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6.6vw, 5.5rem);
  line-height: 0.94;
}

.article-hero p,
.support-hero p {
  color: rgba(248, 250, 252, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.62;
}

.article-body,
.support-grid {
  display: grid;
  gap: 22px;
}

.article-body section,
.support-panel,
.article-cta {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.045);
}

.article-body h2,
.support-panel h2,
.article-cta h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.article-body h3 {
  margin: 24px 0 8px;
  font-size: 1.16rem;
}

.article-body p,
.article-body li,
.support-panel p,
.support-panel li,
.article-cta p {
  color: rgba(248, 250, 252, 0.76);
  line-height: 1.7;
}

.article-body a,
.support-panel a,
.article-cta a {
  color: #fff;
  font-weight: 850;
  text-decoration-color: rgba(233,196,141, 0.7);
  text-underline-offset: 4px;
}

.formula-box {
  margin: 18px 0;
  padding: 18px;
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: rgba(233,196,141, 0.08);
  color: #fff;
  font-weight: 850;
  line-height: 1.5;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  background:
    radial-gradient(circle at 90% 18%, transparent, transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.text-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-panel.featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 90% 10%, transparent, transparent 28%),
    rgba(255, 255, 255, 0.055);
}

.support-list {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 104px;
  }

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

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

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

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 48px;
  }

  .content-main {
    padding-top: 42px;
  }

  .hero-inner,
  .section,
  .screenshots,
  .faq-section,
  .content-main,
  .final-cta {
    width: min(100% - 24px, 1120px);
  }

  .hero-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    border-radius: 16px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(2.55rem, 12vw, 3rem);
    line-height: 0.94;
  }

  .hero-claim {
    margin-bottom: 12px;
    font-size: clamp(1.18rem, 6vw, 1.45rem);
    line-height: 1.08;
  }

  .hero-text {
    margin-bottom: 18px;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .hero-inner {
    gap: 24px;
  }

  .store-badge img {
    width: 156px;
  }

  .hero-actions,
  .hero-proof {
    align-items: flex-start;
  }

  .store-badges {
    gap: 8px;
  }

  .hero-proof {
    display: none;
  }

  .calculator-shell {
    padding: 16px;
    border-radius: 26px;
  }

  .input-row.two,
  .result-grid,
  .stats-strip,
  .feature-list,
  .phone-stage,
  .support-grid,
  .article-cta,
  .final-inner {
    grid-template-columns: 1fr;
  }

  .risk-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-stage {
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
  }

  .phone-shot.mid {
    display: none;
  }

  .phone-shot:not(:first-child) {
    margin-top: -34px;
  }

  .feature-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .workflow-list li {
    grid-template-columns: 52px 1fr;
  }

  .final-inner {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 2026-10-19: simplified page — back link, badges under screenshots, compact guides list. */
.back-link {
  display: none;
}

.screenshots-copy .store-badges {
  margin-top: 24px;
}

.guide-mini {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.guide-mini .mini-label {
  margin: 0 0 6px;
}

.guide-mini a {
  padding: 6px 0;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.guide-mini a:hover {
  color: var(--ink);
}

.screenshots {
  padding-bottom: 40px;
}

@media (max-width: 720px) {
  .back-link {
    display: flex;
    width: fit-content;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
  }

  .screenshots {
    padding: 48px 0 24px;
  }

  .phone-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .phone-shot:not(:first-child) {
    margin-top: 0;
  }

  .faq-section {
    padding: 48px 0 64px;
    gap: 24px;
  }
}

/*
  2026-10-19 (2): compact calculator, so the lot size is visible while typing.
  Same fields and logic as before — only spacing, sizes and the hero around it.
*/

/* Lighter hero: smaller title, no full-screen height. */
.hero {
  min-height: auto;
  padding: 112px 0 56px;
}

.hero-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 19px;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
}

.hero-claim {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
}

.hero-text {
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.hero-actions {
  margin-bottom: 0;
}

/* Compact calculator. */
.calculator-shell {
  padding: 18px;
  border-radius: 26px;
}

.calculator-head {
  align-items: center;
  margin-bottom: 12px;
}

.calculator-head .mini-label {
  margin-bottom: 6px;
}

.calculator-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
}

.calc-form,
.input-row {
  gap: 10px;
}

label,
.risk-mode {
  gap: 6px;
}

input,
select {
  min-height: 40px;
  border-radius: 12px;
}

select {
  background-position:
    calc(100% - 19px) 17px,
    calc(100% - 13px) 17px;
}

.risk-mode {
  min-height: 0;
}

.risk-mode legend {
  margin-bottom: 6px;
}

.risk-mode span {
  min-height: 40px;
  border-radius: 12px;
}

.result-grid {
  gap: 10px;
  margin-top: 2px;
}

output {
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
}

output span {
  margin-bottom: 6px;
}

output strong {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

output .fit-value {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

output .fit-value.is-long {
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
}

output .fit-value.is-very-long {
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
}

.rr-panel {
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
}

.rr-panel h3 {
  font-size: 1.05rem;
}

.rr-control {
  gap: 8px;
}

.rr-control button,
.rr-control input {
  min-height: 36px;
  border-radius: 10px;
}

.break-even {
  margin: 0;
  font-size: 0.92rem;
}

/* Section headings and screenshots at a calmer size. */
.section-copy h2,
.feature-copy h2,
.screenshots-copy h2,
.faq-copy h2,
.final-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.screenshots {
  padding: 64px 0 32px;
}

.phone-stage {
  max-width: 760px;
  margin: 0 auto;
}

.faq-section {
  padding: 56px 0 72px;
}

/* Narrow windows: keep two columns a bit longer... */
@media (min-width: 861px) and (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr);
    gap: 32px;
  }
}

/* ...then one column, with the calculator no wider than 560px. */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-product {
    width: min(100%, 560px);
  }
}

/* Phones: short hero, calculator on the first screen, paired fields side by side. */
@media (max-width: 720px) {
  .hero {
    padding: 22px 0 32px;
  }

  .hero-inner {
    gap: 20px;
  }

  .hero-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 14px;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 9vw, 2.4rem);
  }

  .hero-claim {
    margin-bottom: 14px;
    font-size: 1.1rem;
  }

  .hero-text {
    display: none;
  }

  .store-badge img,
  .store-badge.google-play-badge img {
    width: auto;
    height: 44px;
  }

  .calculator-shell {
    padding: 14px;
    border-radius: 22px;
  }

  .input-row.two,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  output {
    min-height: 70px;
    padding: 10px 8px;
  }

  output strong {
    font-size: 1.5rem;
  }

  /* Half-width boxes: very long values (big accounts, high R:R) wrap instead of overflowing. */
  output strong,
  output .fit-value {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.1;
  }

  output .fit-value {
    font-size: 1.05rem;
  }

  output .fit-value.is-long {
    font-size: 0.95rem;
  }

  output .fit-value.is-very-long {
    font-size: 0.85rem;
  }

  .rr-control {
    grid-template-columns: 0.8fr 0.9fr 1.4fr 0.9fr 0.8fr;
    gap: 6px;
  }

  .rr-control button,
  .rr-control input {
    padding: 0 4px;
  }

  .screenshots {
    padding: 40px 0 16px;
  }

  .faq-section {
    padding: 40px 0 56px;
  }
}

/* 2026-10-19 (3): one pair of store badges per screen. */

/* Header without badges: logo left, menu right (also on narrow windows, until the header hides on phones). */
.site-header {
  grid-template-columns: auto 1fr;
}

.nav-links {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: flex;
  }
}

/* "Inside the app" badges only in the one-column layout; with two columns the hero badges are still in view. */
@media (min-width: 861px) {
  .screenshots-copy .store-badges {
    display: none;
  }
}

/* 2026-10-19 (4): app icon beside the title, like an App Store page; on wide screens the text
   starts at the top, level with the calculator, instead of floating in the middle. */
.hero-inner {
  align-items: start;
}

.hero-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  align-items: center;
}

.hero-copy > * {
  grid-column: 1 / -1;
}

.hero-copy > .hero-icon {
  grid-column: 1;
  width: 96px;
  height: 96px;
  margin: 0;
  border-radius: 22px;
}

.hero-copy > h1 {
  grid-column: 2;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 3.7vw, 3rem);
}

.hero-claim {
  margin-top: 24px;
}

/* One-column tablets: the title fits on one line, so a smaller icon keeps it balanced. */
@media (min-width: 721px) and (max-width: 860px) {
  .hero-copy > .hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }
}

@media (max-width: 720px) {
  .hero-copy {
    column-gap: 14px;
  }

  .hero-copy > .hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }

  .hero-copy > h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .hero-claim {
    margin-top: 16px;
  }
}

/* 2026-10-19 (5): with two columns, two app screenshots fill the space under the hero text,
   so the separate "Inside the app" block only shows in the one-column layout.
   On phones the hero screenshots stay hidden (and, being lazy, are not even downloaded). */
.hero-shots {
  display: none;
}

@media (min-width: 861px) {
  .hero-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 190px));
    gap: 18px;
    margin-top: 30px;
  }

  .hero-shots img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5));
  }

  .hero-shots img:last-child {
    transform: translateY(18px);
  }

  #screenshots {
    display: none;
  }
}


/* 2026-10-31: calm petrol page. */
:root { --accent: #e9c48d; --on-accent: #2a2013; --pos: #93dcc0; --neg: #f4a593; --field: rgba(205,235,242, 0.085); --field-line: rgba(205,235,242, 0.14); --card: rgba(205,235,242,.06); --card-soft: rgba(205,235,242,.04); }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(165deg, #17394a 0%, #102a36 48%, #0c1f29 100%); }
.hero { background: transparent; }
.content-body { background: var(--bg); }
.hero-grid, .hero-product::before, .phone-stage::before { display: none; }
.hero-icon, .hero-copy > .hero-icon { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26); }
.site-header { border-color: var(--field-line); background: rgba(14,36,46,.72); }
.mini-label { color: var(--accent); }
.formula-box { border-left-color: var(--accent); background: var(--field); }

/* 2026-10-31: the calculator is a solid card in the app's dark theme, whatever the page colour is. */
.calculator-shell {
  --app-bg: #111315;
  --app-card: #1b1d1f;
  --app-ink: #eaedef;
  --app-muted: #9299a0;
  --app-accent: #6ec094;
  --app-negative: #ec766c;
  --app-well: #0f1113;
  --app-key-fill: linear-gradient(#3c4044, #2c2f32);
  --app-key-rim: linear-gradient(rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.5));
  --app-row-fill: linear-gradient(#363a3e, #26292c);
  --app-row-rim: linear-gradient(rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.5));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 30px;
  color: var(--app-ink);
  background: var(--app-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26), 0 28px 60px rgba(0, 0, 0, 0.34);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, "Segoe UI", sans-serif;
}

.calculator-shell .calc-form {
  gap: 10px;
}

.calculator-shell .calc-card {
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(var(--app-card), var(--app-card)) padding-box,
    linear-gradient(rgba(110, 192, 148, 0.3), rgba(110, 192, 148, 0.08)) border-box,
    linear-gradient(var(--app-card), var(--app-card)) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 3px 5px rgba(0, 0, 0, 0.35),
    0 12px 22px rgba(0, 0, 0, 0.42);
}

/* Pressed-in wells. */
.calculator-shell input:not([type="radio"]) {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  color: var(--app-ink);
  background: var(--app-well);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.7), inset 0 -1px 2px rgba(255, 255, 255, 0.07);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: center;
}

.calculator-shell input:not([type="radio"]):focus {
  border-color: rgba(110, 192, 148, 0.55);
}

.calculator-shell label span,
.calculator-shell .account-title label {
  color: var(--app-ink);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Balance and risk. */
.account-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.account-title {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.account-field:last-child .account-title {
  justify-content: space-between;
  padding-left: 6px;
}

.calculator-shell .currency-pick {
  position: relative;
  display: inline-block;
  color: var(--app-accent);
  font-size: 1.02rem;
  font-weight: 600;
}

.calculator-shell .currency-pick::before,
.calculator-shell .currency-pick::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.calculator-shell .currency-pick::before {
  content: "(";
  left: 0;
}

.calculator-shell .currency-pick::after {
  content: ")";
  right: 19px;
}

.calculator-shell .currency-pick select {
  width: 68px;
  min-height: 30px;
  padding: 0 24px 0 7px;
  border: 0;
  border-radius: 8px;
  color: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='16' fill='none' stroke='%23eaedef' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6 6 2.5 9.5 6M2.5 10 6 13.5 9.5 10'/%3E%3C/svg%3E") right 1px center / 12px 16px no-repeat;
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

@supports (field-sizing: content) {
  .calculator-shell .currency-pick select {
    width: auto;
    field-sizing: content;
  }
}

.calculator-shell select option {
  color: var(--app-ink);
  background: var(--app-card);
}

.calculator-shell .risk-mode {
  display: grid;
  width: 118px;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: var(--app-well);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.7), inset 0 -1px 2px rgba(255, 255, 255, 0.07);
}

.calculator-shell .risk-mode label {
  display: block;
  cursor: pointer;
}

.calculator-shell .risk-mode span {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--app-muted);
  background: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.calculator-shell .risk-mode input:checked + span {
  border-color: transparent;
  color: var(--app-ink);
  background: var(--app-key-fill) padding-box, var(--app-key-rim) border-box, var(--app-key-fill) border-box;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Instrument, entry, stop, pip settings. */
.trade-card {
  display: grid;
  gap: 8px;
}

.calculator-shell .instrument-row {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--app-row-fill) padding-box, var(--app-row-rim) border-box, var(--app-row-fill) border-box;
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.calculator-shell .instrument-row:focus-within {
  border-color: rgba(110, 192, 148, 0.55);
}

.calculator-shell .instrument-row select:focus-visible {
  outline: none;
}

.calculator-shell .instrument-row span {
  font-size: 1.06rem;
  white-space: nowrap;
}

.calculator-shell .instrument-row select {
  flex: none;
  width: 6.1em;
  min-height: 44px;
  padding: 0 24px 0 8px;
  border: 0;
  border-radius: 8px;
  color: var(--app-accent);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' fill='none' stroke='%239299a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 6 5.5-6 5.5'/%3E%3C/svg%3E") right 2px center / 9px 14px no-repeat;
  box-shadow: none;
  font-size: 1.06rem;
  font-weight: 600;
  text-align: right;
  text-align-last: right;
  cursor: pointer;
}

@supports (field-sizing: content) {
  .calculator-shell .instrument-row select {
    width: auto;
    field-sizing: content;
  }
}

/* Keyboard focus stays visible on the controls that have no border of their own. */
.calculator-shell .currency-pick select:focus-visible,
.calculator-shell .risk-mode input:focus-visible + span {
  outline: 2px solid rgba(110, 192, 148, 0.55);
  outline-offset: 2px;
}

.trade-card .input-row label {
  display: grid;
  justify-items: stretch;
  gap: 6px;
  text-align: center;
}

.calculator-shell .pip-row {
  position: relative;
  margin-top: 4px;
  padding-top: 11px;
}

/* Engraved divider: a dark line with a light one right below it. */
.calculator-shell .pip-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(rgba(0, 0, 0, 0.45) 50%, rgba(255, 255, 255, 0.05) 50%);
}

/* R:R. */
.calculator-shell .rr-panel,
.calculator-shell .results-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.calculator-shell .calc-card h2 {
  margin: 0;
  color: var(--app-ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.calculator-shell .rr-control {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  gap: 10px;
}

.calculator-shell .rr-control .rr-key {
  min-height: 48px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--app-ink);
  background: var(--app-row-fill) padding-box, var(--app-row-rim) border-box, var(--app-row-fill) border-box;
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.calculator-shell .rr-well {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: var(--app-well);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.7), inset 0 -1px 2px rgba(255, 255, 255, 0.07);
}

.calculator-shell .rr-well button {
  min-height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--app-ink);
  background: var(--app-key-fill) padding-box, var(--app-key-rim) border-box, var(--app-key-fill) border-box;
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.calculator-shell .rr-control button:hover {
  filter: brightness(1.12);
}

.calculator-shell .rr-control .rr-well input {
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: 1.2rem;
}

.calculator-shell .break-even {
  margin: 0;
  color: var(--app-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.calculator-shell .break-even strong {
  margin-left: 2px;
  color: var(--app-accent);
  font-size: 1.04rem;
  font-weight: 600;
}

/* Results. */
.calculator-shell .result-grid {
  gap: 8px 12px;
  margin: 0;
}

.calculator-shell output {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--app-row-fill) padding-box, var(--app-row-rim) border-box, var(--app-row-fill) border-box;
  box-shadow: 0 1.5px 2px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
}

.calculator-shell output:first-child {
  border-color: rgba(110, 192, 148, 0.38);
  background:
    linear-gradient(rgba(110, 192, 148, 0.12), transparent) padding-box,
    var(--app-row-fill) padding-box;
}

.calculator-shell output > span:first-child {
  margin-bottom: 4px;
  color: #a7aeb5;
  font-size: 0.82rem;
  font-weight: 600;
}

.calculator-shell output .value-line {
  margin: 0;
  font-size: inherit;
}

.calculator-shell output strong,
.calculator-shell output:nth-child(2) strong {
  color: var(--app-ink);
  font-size: 1.42rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.15;
}

.calculator-shell output strong small {
  font-size: 0.72em;
  font-weight: 600;
}

.calculator-shell output:first-child strong {
  font-size: 1.68rem;
}

.calculator-shell output:nth-child(3) strong {
  color: var(--app-accent);
}

.calculator-shell output:nth-child(4) strong {
  color: var(--app-negative);
}

.calculator-shell output .fit-value {
  font-size: 1.42rem;
}

.calculator-shell output .fit-value.is-long {
  font-size: 1.2rem;
}

.calculator-shell output .fit-value.is-very-long {
  font-size: 1.02rem;
}

.calculator-shell output em {
  margin-left: 0;
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .calculator-shell {
    padding: 9px;
    border-radius: 26px;
  }

  .calculator-shell .calc-form {
    gap: 10px;
  }

  .calculator-shell .calc-card,
  .calculator-shell .rr-panel,
  .calculator-shell .results-card {
    padding: 11px;
    border-radius: 20px;
  }

  .account-card,
  .calculator-shell .input-row.two,
  .calculator-shell .result-grid {
    gap: 8px 10px;
  }

  .calculator-shell label span,
  .calculator-shell .account-title label {
    font-size: 0.94rem;
  }

  /* 16px on selects: iOS zooms the page when a smaller one is tapped. */
  .calculator-shell .currency-pick,
  .calculator-shell .instrument-row select {
    font-size: 1rem;
  }

  .account-title {
    gap: 3px;
  }

  .account-field:last-child .account-title {
    padding-left: 2px;
  }

  .calculator-shell .risk-mode {
    width: 98px;
  }

  .calculator-shell .risk-mode span {
    font-size: 0.76rem;
  }

  .calculator-shell input:not([type="radio"]) {
    min-height: 44px;
    font-size: 1.06rem;
  }

  .calculator-shell .instrument-row {
    padding: 0 12px 0 16px;
  }

  .calculator-shell .instrument-row span {
    font-size: 0.98rem;
  }

  .calculator-shell .instrument-row select {
    padding: 0 20px 0 0;
    background-position: right 0 center;
  }

  .calculator-shell .rr-control {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 6px;
  }

  .calculator-shell .rr-well {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 0 5px;
  }

  .calculator-shell .rr-well button {
    font-size: 0.78rem;
  }

  .calculator-shell output {
    min-height: 72px;
    padding: 10px 6px;
  }

  .calculator-shell output > span:first-child {
    font-size: 0.76rem;
  }

  .calculator-shell output strong,
  .calculator-shell output:nth-child(2) strong,
  .calculator-shell output .fit-value {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .calculator-shell output:first-child strong {
    font-size: 1.42rem;
  }

  .calculator-shell output .fit-value.is-long {
    font-size: 1rem;
  }

  .calculator-shell output .fit-value.is-very-long {
    font-size: 0.88rem;
  }
}

/* Smallest phones: everything still fits on one line. */
@media (max-width: 359px) {
  .calculator-shell {
    padding: 7px;
    border-radius: 24px;
  }

  .calculator-shell .calc-card,
  .calculator-shell .rr-panel,
  .calculator-shell .results-card {
    padding: 9px;
  }

  .account-card,
  .calculator-shell .input-row.two,
  .calculator-shell .result-grid {
    gap: 8px;
  }

  .calculator-shell label span,
  .calculator-shell .account-title label {
    font-size: 0.86rem;
  }

  .account-title {
    gap: 2px;
  }

  .account-field:last-child .account-title {
    padding-left: 0;
  }

  .calculator-shell .risk-mode {
    width: 84px;
  }

  .calculator-shell .risk-mode span {
    font-size: 0.72rem;
  }

  .calculator-shell .instrument-row {
    gap: 4px;
    padding: 0 10px 0 12px;
  }

  .calculator-shell .instrument-row span {
    font-size: 0.88rem;
  }
}

/* 2026-10-31: one block that sells the app, right after the calculator. */
.app-pitch {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy list" "get list";
  gap: 0 64px;
}

.app-pitch-copy {
  grid-area: copy;
}

.app-pitch-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.app-pitch-copy p:last-child {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.app-pitch-list {
  display: grid;
  grid-area: list;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-pitch-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.app-pitch-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.app-pitch-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.app-pitch-list span {
  color: var(--muted);
  line-height: 1.5;
}

.app-pitch-get {
  grid-area: get;
}

.app-pitch-get p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-pitch .phone-stage {
  grid-area: shots;
  margin-top: 28px;
}

@media (max-width: 860px) {
  .app-pitch {
    padding: 40px 0 16px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "copy" "list" "shots" "get";
  }

  .app-pitch-get {
    margin-top: 28px;
  }
}

/* Guide links close the page. */
main > .guide-mini {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}

main > .guide-mini .mini-label {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  main > .guide-mini {
    margin: 24px auto 56px;
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Two ways on from every guide. */
.article-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.article-cta .text-button {
  color: var(--on-accent);
}

.article-cta .text-button + .text-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

/* Guides have no header on phones, so they get the same back link as the main page. */
.back-link {
  display: none;
}

@media (max-width: 720px) {
  .back-link {
    display: flex;
    width: fit-content;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
  }
}

/* The base guide stylesheet hides these links on tablets; the main page keeps them. */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
    justify-content: flex-end;
  }
}
