/* Kemet — kemetconverter.com */
:root {
  --teal: #14a89a;
  --teal-2: #2dd4bf;
  --teal-deep: #0b6e6a;
  --night: #062f2e;
  --amber: #ffb547;
  --amber-2: #ffcb78;
  --ink: #0f2a28;
  --muted: #557370;
  --bg: #f6fbfa;
  --card: #ffffff;
  --line: rgba(15, 42, 40, 0.09);
  --radius: 22px;
  --max: 1180px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eaf6f4; --muted: #9db9b5; --bg: #071413; --card: #0e1f1e; --line: rgba(255, 255, 255, 0.09); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .display { font-family: var(--font); letter-spacing: -0.025em; line-height: 1.04; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
.eyebrow { font: 700 14px/1 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; margin: 18px 0 0; }
.accent { color: var(--amber); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--font); color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 650 16px/1 var(--text); text-decoration: none; border-radius: 14px; padding: 15px 22px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #22c3b3, var(--teal)); color: #fff; box-shadow: 0 10px 24px rgba(20, 168, 154, .35); }
.btn.dark { background: #0b1b1a; color: #fff; }
.btn.ghost { color: var(--ink); border: 1px solid var(--line); }
.btn svg { width: 20px; height: 20px; }
.top .btn { padding: 10px 16px; font-size: 14px; border-radius: 11px; }
@media (max-width: 860px) { .nav { display: none; } .top .lang { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #f4fbfa;
  background:
    radial-gradient(45% 60% at 80% 70%, rgba(255, 181, 71, .28), transparent 70%),
    radial-gradient(60% 70% at 5% 0%, #1fb5a6 0%, transparent 62%),
    linear-gradient(160deg, #0e7c75 0%, #0a5754 50%, var(--night) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: center; padding-top: 90px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); font-weight: 850; }
.hero h1 span { display: block; color: var(--amber-2); }
.hero .lead { color: rgba(244, 251, 250, .78); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .ctas .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .note { margin-top: 16px; font-size: 14px; color: rgba(244, 251, 250, .6); }
.hero .art { position: relative; }
.hero .art img { filter: drop-shadow(0 50px 60px rgba(0, 20, 18, .45)); }
.keycap { position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 92px; height: 84px; border-radius: 18px;
  padding: 12px 14px; color: #1b2b29; background: linear-gradient(180deg, #fff, #eef3f2); box-shadow: 0 7px 0 #c9d6d3, 0 18px 34px rgba(0, 30, 28, .35); font-family: var(--text); }
.keycap b { font-size: 34px; line-height: 1; font-weight: 600; }
.keycap span { font-size: 15px; font-weight: 600; color: #5c6e6b; }
.hero .k1 { left: -10px; bottom: 8%; transform: rotate(-8deg); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 800 22px/1 var(--font); border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 16px 34px rgba(0, 30, 28, .35); }
.chip.amber { background: linear-gradient(180deg, #ffc566, var(--amber)); color: #3b2600; }
.chip.teal { background: linear-gradient(180deg, #22c3b3, var(--teal)); color: #fff; }
.chip.ivory { background: #fff; color: var(--ink); }
.hero .c1 { right: 4%; top: 2%; transform: rotate(5deg); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 60px; } .hero .art { margin-top: 10px; } .keycap { transform: scale(.8) rotate(-8deg); } }

/* Sections */
section.block { padding: 110px 0; }
section.block.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* How it works + wheel demo */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 60px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; margin-bottom: 30px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font: 800 22px/1 var(--font);
  color: #fff; background: linear-gradient(180deg, #22c3b3, var(--teal)); box-shadow: 0 8px 18px rgba(20, 168, 154, .3); }
.steps p { margin: 6px 0 0; color: var(--muted); }
.demo { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.modes { display: flex; gap: 14px; }
.mode { all: unset; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; width: 86px; height: 76px; border-radius: 16px; padding: 10px 13px;
  background: linear-gradient(180deg, #fff, #eef3f2); color: #1b2b29; box-shadow: 0 6px 0 #c9d6d3, 0 12px 22px rgba(0, 30, 28, .14); transition: transform .12s ease, box-shadow .12s ease; font-family: var(--text); }
.mode b { font-size: 28px; line-height: 1; font-weight: 600; }
.mode span { font-size: 13px; font-weight: 650; color: #5c6e6b; }
.mode[aria-pressed="true"] { transform: translateY(5px); box-shadow: 0 1px 0 #c9d6d3, 0 6px 12px rgba(0, 30, 28, .14); outline: 3px solid var(--teal); outline-offset: 3px; }
.wheel { width: min(420px, 88vw); aspect-ratio: 1; filter: drop-shadow(0 26px 40px rgba(0, 30, 28, .22)); user-select: none; }
.wheel .plate { fill: #ececec; }
.wheel .slice { fill: #fbfbfb; stroke: #fbfbfb; stroke-linejoin: round; cursor: pointer; transition: fill .15s ease, stroke .15s ease; }
.wheel .slice.on { fill: var(--teal); stroke: var(--teal); }
.wheel .lbl { font: 800 15px var(--font); fill: #1f2b2a; pointer-events: none; text-anchor: middle; dominant-baseline: middle; letter-spacing: .02em; }
.wheel .lbl.on { fill: #fff; }
.wheel .hub { fill: #f6f6f6; }
.wheel .pill { fill: #fff; }
.wheel .center { font: 800 12px var(--text); fill: #1f2b2a; text-anchor: middle; dominant-baseline: middle; letter-spacing: .06em; }
.demo .caption { color: var(--muted); font-size: 15px; min-height: 24px; }
@media (prefers-color-scheme: dark) { .wheel .plate { fill: #273433; } .wheel .slice { fill: #3a4847; stroke: #3a4847; } .wheel .lbl { fill: #eef5f4; } .wheel .hub { fill: #2f3d3c; } .wheel .pill { fill: #465554; } .wheel .center { fill: #eef5f4; } }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; margin-top: 90px; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .copy { order: 2; }
.feature .copy h3 { font: 800 clamp(30px, 4vw, 44px)/1.05 var(--font); letter-spacing: -0.025em; }
.feature .copy p { color: var(--muted); font-size: 18px; }
.feature .copy ul { padding: 0; list-style: none; margin: 18px 0 0; }
.feature .copy li { position: relative; padding-left: 28px; margin-bottom: 9px; }
.feature .copy li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 181, 71, .2); }
.feature figure { margin: 0; position: relative; }
.feature figure img { filter: drop-shadow(0 34px 44px rgba(0, 30, 28, .25)); }
.feature .chip { font-size: 18px; padding: 10px 16px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; } .feature.flip .copy { order: 0; } }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 50px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
section.alt .fcard { background: var(--bg); }
.fcard h3 { display: flex; align-items: center; gap: 10px; }
.fcard h3 i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(20, 168, 154, .12); font-style: normal; font-size: 18px; }
.fcard p { margin: 8px 0 14px; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font: 700 13px/1 var(--text); letter-spacing: .03em; padding: 7px 10px; border-radius: 8px; background: rgba(20, 168, 154, .1); color: var(--teal-deep); }
@media (prefers-color-scheme: dark) { .tags span { color: var(--teal-2); } }

/* Tools grid */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 50px; }
.tool { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.tool svg { flex: none; width: 26px; height: 26px; color: var(--teal); }
.tool b { display: block; font-size: 16px; }
.tool span { color: var(--muted); font-size: 14px; }

/* Privacy */
.privacy { color: #f4fbfa; background:
    radial-gradient(40% 55% at 85% 30%, rgba(255, 181, 71, .2), transparent 70%),
    linear-gradient(160deg, #0a5754 0%, var(--night) 100%); }
.privacy .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.privacy .lead { color: rgba(244, 251, 250, .75); }
.privacy ul { list-style: none; padding: 0; margin: 30px 0 0; }
.privacy li { display: flex; gap: 14px; align-items: center; font: 750 20px/1.3 var(--font); margin-bottom: 16px; }
.privacy li i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 181, 71, .2); }
.privacy svg.lock { width: min(340px, 70vw); margin: 0 auto; display: block; filter: drop-shadow(0 40px 50px rgba(0, 20, 18, .45)); }
@media (max-width: 900px) { .privacy .grid { grid-template-columns: 1fr; } }

/* Pricing */
.price { max-width: 820px; margin: 50px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan { border-radius: 26px; padding: 34px; border: 1px solid var(--line); background: var(--card); }
.plan.pro { color: #fff; border: none; background: linear-gradient(160deg, #13998c, var(--teal-deep)); box-shadow: 0 24px 50px rgba(11, 110, 106, .35); }
.plan .amount { font: 850 56px/1 var(--font); letter-spacing: -0.03em; margin: 18px 0 6px; }
.plan .per { color: var(--muted); }
.plan.pro .per { color: rgba(255, 255, 255, .75); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--teal); }
.plan.pro li::before { color: var(--amber-2); }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font: 750 19px/1.35 var(--font); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* CTA band */
.band { text-align: center; color: #fff; background: linear-gradient(160deg, #0e7c75, var(--night)); padding: 100px 0; }
.band img.icon { width: 112px; height: 112px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.band .lead { color: rgba(255, 255, 255, .75); }
.band .btn { margin-top: 30px; }

/* Docs (privacy, support, licenses) */
.doc { max-width: 820px; margin: 60px auto 90px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 5vw, 56px); }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 850; margin-bottom: 8px; }
.doc h2 { font-size: 23px; font-weight: 780; margin: 36px 0 8px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 85%, transparent); }
.doc pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, Menlo, monospace; background: var(--bg); border-radius: 14px; padding: 18px; overflow-x: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 46px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
