/* Profit Margin Calculator — marketing site
   Fonts: Plus Jakarta Sans (SIL Open Font License, see assets/fonts/OFL.txt) */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --ink: #10231C;
  --muted: #4A5B53;
  --line: #E3E8E3;
  --line-strong: #CBD5CC;
  --soft: #F4F6F1;
  --white: #FFFFFF;
  --dark: #0E1F19;
  --dark-2: #142A22;
  --on-dark-muted: #A9BDB3;
  --accent: #0F7B53;
  --accent-soft: rgba(15, 123, 83, 0.12);
  --amber: #F2A33A;
  --amber-ink: #3D2A08;
  --cost: #B45309;
  --mint: #6EE7B7;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 24px 50px -30px rgba(16, 35, 28, 0.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --section-pad: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.55; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 800; }
h2 { font-size: clamp(32px, 4vw, 48px); max-width: 820px; margin-top: 12px; }
h3 { font-size: 21px; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 17px; padding: 16px 28px; border-radius: 14px; font-weight: 700; }
.btn-block { display: flex; width: 100%; margin-top: 28px; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #1C3A2F; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { color: var(--white); background: #0B6844; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { color: var(--ink); }
.btn-outline-white { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { color: var(--white); background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px 16px; padding-block: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover { background: var(--accent-soft); }
.back-short { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; margin-right: auto; }
.nav-links { display: flex; gap: 4px 18px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-links a { text-decoration: none; padding: 10px 0; }
.lang-switch { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; min-width: 44px; min-height: 36px; border-radius: 999px; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: var(--white); border-radius: 12px; font-weight: 600; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--soft); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 14px; font-weight: 600; }
.badge span:first-child { background: var(--amber); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
h1 { margin-top: 24px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 580px; }
.hero .btn-row { margin-top: 36px; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks-col { flex-direction: column; gap: 12px; color: var(--ink); font-size: 16px; margin-top: 24px; }
.hero-media { flex: 1 1 380px; position: relative; display: flex; justify-content: flex-end; min-height: 600px; }
.hero-phone { width: 356px; }
.float-card { position: absolute; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: float 6s ease-in-out infinite; }
.float-card span { font-size: 12px; font-weight: 600; }
.float-card strong { font-size: 22px; font-weight: 800; }
.float-card em { font-style: normal; font-size: 13px; font-weight: 700; }
.float-light { left: 0; top: 150px; background: var(--white); border: 1px solid var(--line); }
.float-light span { color: var(--muted); } .float-light em { color: var(--accent); }
.float-dark { left: 24px; top: 330px; background: var(--ink); color: var(--white); animation-delay: -3s; }
.float-dark span { color: var(--on-dark-muted); } .float-dark em { color: var(--amber); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); padding: 28px 0; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; }
.strip-inner p { font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: var(--white); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow-amber { color: var(--amber); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 720px; }
.section-dark .section-lead { color: var(--on-dark-muted); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 250px; background: var(--soft); border-radius: var(--radius); padding: 28px; }
.step-no { font-size: 14px; font-weight: 800; color: var(--accent); }
.steps h3 { margin: 12px 0 8px; }
.steps p { color: var(--muted); }

/* ---------- Features ---------- */
.feature-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.feature-index a { background: var(--white); border: 1px solid var(--line-strong); border-radius: 999px; padding: 11px 18px; font-size: 15px; font-weight: 600; text-decoration: none; }
.feature-index a:hover { border-color: var(--accent); }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; margin-top: 112px; }
.feature:first-of-type { margin-top: 72px; }
.feature-reverse { flex-direction: row-reverse; }
.feature-text { flex: 1 1 440px; min-width: 0; }
.feature-wide .feature-text { flex-basis: 380px; }
.feature-kicker { font-size: 15px; font-weight: 800; color: var(--accent); }
.feature-text h3 { margin-top: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.feature-text > p:not(.feature-kicker) { margin-top: 16px; font-size: 18px; color: var(--muted); }
.callouts { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: call; display: flex; flex-direction: column; gap: 18px; }
.callouts li { counter-increment: call; display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; }
.callouts li::before { content: counter(call); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.callouts strong { font-size: 17px; }
.callouts span { color: var(--muted); }
.feature-media { flex: 1 1 480px; min-width: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 44px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.feature-wide .feature-media { flex-basis: 600px; }
.feature-media img { width: auto; max-height: 684px; }
.feature-media img[width="356"] { width: 356px; }
.feature-media.dual { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px; }
.feature-media.dual img[width="356"] { width: 210px; }
.formula { width: 100%; max-width: 480px; background: var(--soft); border-radius: 16px; padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 15px; font-weight: 600; text-align: center; }
.formula i { font-style: normal; color: var(--muted); }
.formula-stack { flex-direction: column; align-items: center; }
.formula-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.cost { color: var(--cost); font-weight: 800; }
.profit { color: var(--accent); font-weight: 800; }
.channel-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.channel-switch > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.channel-switch button, .pills button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; }
.channel-switch button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
#channel-img { transition: opacity .2s ease; }
#channel-img.is-swapping { opacity: .3; }
.lang-compare { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 480px; }
.lang-compare span { flex: 1 1 200px; background: var(--soft); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.lang-compare b { display: block; font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }

/* ---------- Calculator ---------- */
.calc { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; align-items: flex-start; }
.calc-card { background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.calc-recipe { flex: 1 1 560px; min-width: 0; }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.calc-head h3 { font-size: 22px; }
.btn-ghost { background: transparent; color: var(--amber); border: 1px solid rgba(242,163,58,.5); border-radius: 999px; padding: 10px 16px; min-height: 44px; font-weight: 600; font-size: 14px; }
.calc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.calc-name { flex: 1 1 170px; min-width: 0; display: flex; align-items: center; gap: 10px; align-self: center; }
.calc-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.calc-name small { display: block; font-size: 13px; color: var(--on-dark-muted); }
.calc-field { display: flex; flex-direction: column; gap: 4px; }
.calc-field label { font-size: 12px; color: var(--on-dark-muted); }
.calc-field input { width: 100%; background: var(--dark); color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; min-height: 44px; }
.calc-field-price { width: 132px; } .calc-field-use { width: 108px; }
.calc-cost { width: 100px; text-align: right; padding-bottom: 10px; }
.calc-cost small { display: block; font-size: 12px; color: var(--on-dark-muted); }
.calc-cost strong { font-size: 16px; }
.calc-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 24px; background: rgba(255,255,255,.06); }
.calc-bar span { transition: flex-basis .25s ease; }
.calc-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 20px; }
.calc-total span { color: var(--on-dark-muted); font-size: 16px; }
.calc-total output { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; color: var(--amber); }
.calc-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.calc-controls { display: flex; flex-direction: column; gap: 22px; padding: 24px; }
.control-head { display: flex; justify-content: space-between; font-weight: 600; }
.control-label { font-weight: 600; }
.control input[type="range"] { width: 100%; margin-top: 10px; min-height: 28px; }
#calc-margin { accent-color: var(--mint); } #calc-comm { accent-color: var(--amber); }
.mint { color: var(--mint); font-weight: 800; } .amber { color: var(--amber); font-weight: 800; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pills button { background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.pills button[aria-pressed="true"] { background: var(--white); color: var(--dark); border-color: var(--white); }
.results { display: flex; flex-wrap: wrap; gap: 16px; }
.result { flex: 1 1 220px; border-radius: 24px; padding: 24px; color: var(--ink); }
.result-light { background: var(--white); }
.result-amber { background: var(--amber); }
.result-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.result-amber .result-label, .result-amber dt { color: var(--amber-ink); }
.result-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.result dl { margin: 14px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.result dl div { display: flex; justify-content: space-between; gap: 8px; }
.result dt { color: var(--muted); } .result dd { margin: 0; font-weight: 700; white-space: nowrap; text-align: right; }
.calc-note { color: var(--on-dark-muted); font-size: 15px; }
.calc-note strong { color: var(--white); }

/* ---------- Platforms ---------- */
.platforms { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 24px; margin-top: 56px; }
.plat-mac { flex: 1 1 560px; min-width: 0; max-width: 776px; width: 100%; }
.plat-ipad { flex: 0 1 456px; min-width: 0; width: 100%; max-width: 456px; }

/* ---------- Pricing ---------- */
.pricing { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.pricing > div:first-child { flex: 1 1 420px; min-width: 0; }
.price-card { flex: 1 1 380px; min-width: 0; background: var(--white); border: 2px solid var(--accent); border-radius: 28px; padding: 36px; }
.price-name { font-size: 18px; font-weight: 700; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; color: var(--muted); }
.price-amount strong { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq h2 { text-align: center; margin: 0 auto 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 28px; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; font-size: 17px; color: var(--muted); }

/* ---------- CTA + footer ---------- */
.section-cta { padding: 0 0 var(--section-pad); }
.cta-box { background: var(--accent); color: var(--white); border-radius: 32px; padding: clamp(40px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-box > div:first-child { flex: 1 1 460px; min-width: 0; }
.cta-box h2 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); }
.cta-box p { margin-top: 14px; font-size: 19px; color: rgba(255,255,255,.9); }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { padding: 10px 0; text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero-media { justify-content: center; }
  .float-card { display: none; }
}
@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; order: 10; flex-basis: 100%; flex-direction: column; gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-cta { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .back-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .back-short { display: inline; }
  .back-link { padding: 8px 12px 8px 8px; }
  .brand span { font-size: 16px; }
  .hero-media { min-height: 0; }
  .float-card { display: none; }
  .hero-phone, .feature-media img[width="356"] { width: 100%; max-width: 300px; }
  .feature-media { padding: 20px 12px; }
  .calc-field-price, .calc-field-use { flex: 1 1 120px; width: auto; }
  .calc-cost { flex: 1 1 100%; text-align: left; padding: 0; display: flex; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
