/* ArkVerge Tools: shared design system, in the ArkVerge brand (Palette C; Clash Grotesk, Satoshi, JetBrains Mono).
   near-black film stock, warm ink, Instrument Serif display, Inter Tight body, JetBrains Mono labels, one gold accent. */
@font-face { font-family: "Clash Grotesk"; src: url("../../../assets/fonts/clash-grotesk.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../../../assets/fonts/satoshi.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../../../assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #141312; --bg2: #1D1C1B; --bg3: #262524; --ink: #FAF8F3; --soft: rgba(250, 248, 243, .86); --muted: #BDB6AC; --faint: rgba(189, 182, 172, .7);
  /* update 72 (brand guide v4): every shade comes from Palette C. bg2 and bg3 are Carbon with 4% and 8% Paper; soft is Paper at 86%; faint is Mist at 70% (5.1:1 on Carbon, so small labels pass) */
  --line: rgba(250, 248, 243, .12); --line2: rgba(250, 248, 243, .2); --accent: #0F9A96; --accent2: #0F9A96; --dreef: #0B2A2C;
  --ok: #0F9A96; --bad: #EE7B63;
  --serif: "Clash Grotesk", "Helvetica Neue", sans-serif; --sans: "Satoshi", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --g: clamp(16px, 3.2vw, 48px); --ease: cubic-bezier(.7, 0, .2, 1); --r: 14px; --hdr: 76px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, canvas, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }   /* v4: a 2 px ring, 4 px out; Paper, since the tools are dark */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.serif { font-family: var(--serif); font-weight: 400; }
.display { font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -.02em; }
.display em, .serif em { font-style: normal; color: var(--accent); }
.muted { color: var(--muted); }
.label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.label i { font-style: normal; color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); display: inline-block; }
.grain { position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 var(--g); background: linear-gradient(var(--bg) 55%, rgba(20, 19, 18,0)); }
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.brand img { width: 24px; height: 24px; }
.brand b { font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: -.01em; white-space: nowrap; }
.brand b em { color: var(--muted); }
.tnav { display: flex; gap: 2px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; background: rgba(20, 19, 18,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 64vw; overflow-x: auto; scrollbar-width: none; }
.tnav::-webkit-scrollbar { display: none; }
.tnav a { padding: 7px 13px; border-radius: 99px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: color .35s, background .35s; }
.tnav a:hover { color: var(--ink); }
.tnav a.on { color: #141312; background: var(--ink); }
.hdr-r { justify-self: end; display: flex; align-items: center; gap: 18px; }
.pill-cta { font-size: 13px; padding: 9px 18px; border-radius: 99px; background: var(--ink); color: #141312; white-space: nowrap; transition: background .35s; }
.pill-cta:hover { background: var(--accent); color: var(--ink); }
.hdr .back { color: var(--muted); font-size: 13px; transition: color .3s; white-space: nowrap; }
.hdr .back:hover { color: var(--ink); }
@media (max-width: 1100px) { .tnav { display: none; } .hdr { grid-template-columns: 1fr auto; } }
@media (max-width: 560px) { .hdr .back { display: none; } .brand b { font-size: 19px; } .pill-cta { padding: 8px 14px; } }

/* ---------- tool page shell ---------- */
.tool-head { padding: 28px var(--g) 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tool-head h1 { font-size: clamp(44px, 6.4vw, 96px); }
.tool-head p { max-width: 460px; color: var(--muted); font-size: 15px; }
.tool-head .label { margin-bottom: 14px; }
.wrap { padding: 0 var(--g); }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 18px var(--g) 40px; align-items: start; }
.split > .side { position: sticky; top: calc(var(--hdr) + 8px); max-height: calc(100vh - var(--hdr) - 24px); overflow: auto; scrollbar-width: thin; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split > .side { position: static; max-height: none; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line2); color: var(--soft); font-size: 13px; white-space: nowrap; transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease); user-select: none; }
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }   /* v4: primary is Reef with a Carbon label */
.btn.primary:hover, .btn.primary:focus-visible { background: var(--dreef); border-color: var(--dreef); color: var(--ink); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.gold:hover, .btn.gold:focus-visible { background: var(--dreef); border-color: var(--dreef); color: var(--ink); }
.btn.ghost { border-color: transparent; }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.icon { width: 36px; height: 36px; padding: 0; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 99px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 13px; border-radius: 99px; color: var(--muted); font-size: 12.5px; transition: .3s; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12.5px; transition: .3s; }
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip.on { background: var(--ink); color: #141312; border-color: var(--ink); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span, .fl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.field > span output, .fl output { color: var(--soft); }
.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); outline: none; transition: border-color .3s; font-size: 14px; }
.inp:focus { border-color: var(--faint); }
textarea.inp { resize: vertical; min-height: 84px; line-height: 1.5; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line2); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 0; transition: transform .2s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); background: var(--accent); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line2); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
input[type=color] { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 50%; padding: 0; background: none; cursor: pointer; overflow: hidden; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
.sec { padding: 18px; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: 0; }
.sec h3 { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drop { position: relative; display: grid; place-items: center; text-align: center; gap: 10px; padding: 40px 20px; border: 1px dashed var(--line2); border-radius: var(--r); color: var(--muted); transition: border-color .3s, background .3s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(15,154,150,.04); color: var(--soft); }
.drop b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ink); font-style: normal; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border: 1px solid var(--line2); border-radius: 5px; color: var(--soft); }
.btn.primary .kbd, .btn.gold .kbd { color: inherit; border-color: currentColor; }   /* update 72: on Reef the hint follows the Carbon label */
.code { font-family: var(--mono); font-size: 12px; line-height: 1.6; background: var(--bg3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--soft); white-space: pre; overflow: auto; max-height: 260px; }
.hint { color: var(--muted); font-size: 12.5px; }
.sep { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- toast & modal ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; padding: 10px 18px; border-radius: 99px; background: var(--ink); color: #141312; font-size: 13px; transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none; display: flex; align-items: center; gap: 8px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(5,5,4,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal.on { opacity: 1; visibility: visible; }
.modal .box { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg2); border: 1px solid var(--line2); border-radius: 18px; transform: translateY(14px) scale(.98); transition: transform .45s var(--ease); }
.modal.on .box { transform: none; }
.modal .box header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal .box header h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.modal .box .body { padding: 20px; }

/* ---------- footer ---------- */
.foot { margin-top: 30px; padding: 26px var(--g) 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot a:hover { color: var(--ink); }
.foot .made { display: flex; align-items: center; gap: 10px; }
.foot .made img { width: 18px; height: 18px; opacity: .8; }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .grain { animation: none; } * { transition-duration: .01ms !important; } }
.checker { background-color: #2a2a27; background-image: linear-gradient(45deg, #353531 25%, transparent 25%), linear-gradient(-45deg, #353531 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #353531 75%), linear-gradient(-45deg, transparent 75%, #353531 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }

/* ---------- how to use ---------- */
.head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 460px; }
.howto-btn { border-color: var(--line2); }
.howto-btn:hover { border-color: var(--accent); color: var(--ink); }
.quick { display: flex; align-items: center; gap: 22px; margin: 14px var(--g) 0; padding: 12px 14px 12px 18px; border: 1px solid rgba(15,154,150,.35); border-radius: 14px; background: linear-gradient(90deg, rgba(15,154,150,.08), rgba(15,154,150,.02)); transition: opacity .4s, transform .4s var(--ease); }
.quick.gone { opacity: 0; transform: translateY(-6px); }
.quick .q-l { display: flex; align-items: center; gap: 9px; color: var(--accent); white-space: nowrap; }
.quick ol { list-style: none; display: flex; gap: 22px; flex: 1; min-width: 0; }
.quick li { display: flex; align-items: baseline; gap: 9px; color: var(--soft); font-size: 13.5px; line-height: 1.4; flex: 1; }
.quick li em { font-family: var(--serif); font-size: 22px; color: var(--accent); font-style: normal; line-height: 1; }
.quick li b { color: var(--ink); font-weight: 400; }
.quick .q-r { display: flex; gap: 6px; align-items: center; }
@media (max-width: 900px) { .quick { flex-wrap: wrap; gap: 12px; } .quick ol { flex-direction: column; gap: 8px; flex-basis: 100%; order: 2; } .quick .q-r { margin-left: auto; } }
.guide-modal .box { width: min(720px, 100%); }
.g-intro { color: var(--soft); margin-bottom: 18px; }
.g-steps { list-style: none; counter-reset: s; display: grid; gap: 2px; }
.g-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 4px; }
.g-steps b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }
.g-steps span { color: var(--muted); font-size: 14px; margin-top: 3px; }
.g-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.g-block h4 { font-weight: 400; color: var(--muted); margin-bottom: 10px; }
.g-tips { padding-left: 18px; color: var(--soft); font-size: 14px; display: grid; gap: 6px; }
.g-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.g-keys span { display: inline-flex; align-items: center; gap: 8px; }
.g-foot { margin-top: 18px; color: var(--muted); font-size: 13px; }
.g-foot a { color: var(--ink); border-bottom: 1px solid var(--faint); }
.quick.float { position: fixed; left: 50%; bottom: 74px; z-index: 60; margin: 0; width: min(980px, calc(100% - 32px)); transform: translateX(-50%); background: rgba(14,13,11,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.quick.float.gone { transform: translate(-50%, 8px); }
@media (max-width: 900px) { .quick.float { bottom: 86px; } }


/* ---------- Pro (assets/js/pro.js) ---------- */
.pro-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(15,154,150, .45); color: var(--accent2); font-size: 12.5px; margin-right: 6px; transition: background .3s, color .3s; }
.pro-btn:hover { background: var(--accent); color: var(--ink); }
.pro-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pro-why { margin-bottom: 10px; color: var(--soft); } .pro-why b { color: var(--accent); font-weight: 400; }
.pro-lead { color: var(--soft); margin-bottom: 14px; }
.pro-inc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pro-inc > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; }
.pro-inc h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.1; margin-bottom: 6px; }
.pro-inc ul { list-style: none; display: grid; gap: 5px; }
.pro-inc li { font-size: 12.5px; color: var(--soft); padding-left: 14px; position: relative; }
.pro-inc li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pro-soon { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 1px 6px; vertical-align: 3px; }
.pro-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pro-plans button { text-align: left; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.pro-plans button[aria-checked="true"] { border-color: var(--accent); background: rgba(15,154,150, .07); }
.pro-plans span { color: var(--muted); } .pro-plans b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--ink); } .pro-plans em { font-style: normal; font-size: 12px; color: var(--muted); }
.pro-form { display: flex; gap: 8px; } .pro-form .inp { flex: 1; min-width: 0; }
.pro-small { font-size: 12px; margin-top: 10px; } .pro-link { color: var(--soft); text-decoration: underline; font-size: 12px; padding: 0; }
.pro-err { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 1em; }
@media (max-width: 720px) { .pro-inc { grid-template-columns: 1fr; } .pro-form { flex-direction: column; } }


/* ---------- header, tool menu and footer (update 9) ---------- */
.hdr { grid-template-columns: auto 1fr auto; gap: 22px; }
.hdr-c { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); white-space: nowrap; min-width: 0; }
.crumb a:hover { color: var(--ink); }
.crumb i { font-style: normal; color: var(--faint); }
.crumb b { font-weight: 400; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.allbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--soft); font-size: 13px; background: rgba(20, 19, 18,.5); transition: color .3s, border-color .3s; }
.allbtn:hover, .allbtn[aria-expanded="true"] { color: var(--ink); border-color: var(--muted); }
.allbtn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.allbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.tmenu { position: absolute; left: var(--g); right: var(--g); top: calc(var(--hdr) - 6px); z-index: 60; border: 1px solid var(--line2); border-radius: 20px; background: rgba(17,17,15,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.tm-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 28px; padding: 26px 28px 22px; }
.tm-g h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.tm-g a { display: block; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; transition: background .25s; }
.tm-g a:hover, .tm-g a[aria-current="page"] { background: var(--bg3); }
.tm-g a b { display: block; font-weight: 400; font-size: 14px; color: var(--ink); }
.tm-g a span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tm-tag { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: #141312; vertical-align: 2px; font-weight: 500; }
.tm-tag.new { background: var(--ink); }
.tm-g a b .tm-tag { display: inline-block; margin-left: 4px; font-size: 10px; line-height: 1.5; }
@media (max-width: 1100px) { .tm-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hdr .back { display: none; } }
@media (max-width: 720px) { .crumb { display: none; } .hdr { grid-template-columns: 1fr auto; } .hdr-c { justify-self: end; } .hdr-r .pill-cta { display: none; }
  .tmenu { position: fixed; inset: var(--hdr) 0 0; border-radius: 0; border: 0; overflow-y: auto; } .tm-in { grid-template-columns: 1fr; padding: 18px var(--g) 40px; } }
.foot { display: block; padding: 56px var(--g) 28px; margin-top: 80px; border-top: 1px solid var(--line); }
.f-top { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 28px; }
.f-brand img { width: 28px; height: 28px; margin-bottom: 14px; }
.f-brand p { color: var(--muted); font-size: 13.5px; max-width: 32ch; line-height: 1.55; }
.f-brand a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.f-col h5 { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ink); margin: 0 0 10px; }
.f-col a { display: block; color: var(--muted); font-size: 13.5px; padding: 3px 0; transition: color .25s; }
.f-col a:hover { color: var(--ink); }
.f-bot { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.f-bot a { color: var(--muted); } .f-bot a:hover { color: var(--ink); }
@media (max-width: 1000px) { .f-top { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ArkVerge: headings set light in Clash Grotesk, as on the studio site */
.display, h1, h2, .h1, .h2 { font-weight: 300; letter-spacing: -0.02em; }
.hdr .brand svg { width: 22px; height: 30px; flex: none; }
.hdr .brand b em { font-style: normal; color: var(--accent); }
.foot .f-brand svg { width: 30px; height: 42px; display: block; margin-bottom: 14px; }

/* every tool is free: no Pro tags, flags, upsell panels or Get Pro buttons */
.pro-tag, .pro-flag, .pro-panel, #getPro, .pro-btn, .pro-dot, [data-pro-only-hint] { display: none !important; }
.pill-sup { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; margin-right: 8px; border: 1px solid var(--line2); border-radius: 40px; color: var(--ink); font: 400 12.5px var(--sans); background: none; cursor: pointer; transition: border-color .35s, background .35s; }
.pill-sup:hover, .pill-sup:focus-visible { border-color: var(--accent); background: rgba(15,154,150,.12); }
@media (max-width: 760px) { .pill-sup { display: none; } }


/* ================= phones first (update 77): on a phone every tool has readable labels, 16 px fields and thumb-sized controls.
   Inside phone and tablet widths only: the desktop tools are untouched. ================= */
@media (max-width: 900px) {
  body .mono, body .tag, body .fl, body .srcname, body .ex-dims, body output { font-size: 12px; }
  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), body select, body textarea { font-size: 16px; }
  body .btn { min-height: 44px; }
  body .btn.sm { min-height: 40px; font-size: 13px; padding-inline: 14px; }
  body .btn.icon { width: 44px; height: 44px; min-height: 44px; }
  body .btn.icon.sm { width: 40px; height: 40px; min-height: 40px; }
  body .seg button { min-height: 38px; font-size: 13px; }
  body .chip { min-height: 38px; font-size: 13px; }
  body .allbtn { min-height: 44px; }
  body .brand { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 900px) {
  /* labels, hints and section heads at 12 px (the previews keep their own scale) */
  body :is(.sec h3, .sec h3 span, .sec h3 button, .tab h3, label > span, label em, label .fl, .field label, .field span, small, .kbd, .fl, summary span, .stats span, .tc, .tc span, .cue, .tl-ruler i, .lock, .sreset, i.app, .m span, .looks-h span, .looks-h output, .strength span):not(.art *) { font-size: 12px !important; }
  body .seg button { font-size: 13px !important; }
  /* every control at least 44 px for a thumb */
  body .btn, body .btn.sm { min-height: 44px; }
  body .btn.sm.icon, body #undo, body #redo, body #loop { min-width: 44px; }
  body .seg button, body .chip, body .wts button, body .lock, body .sreset, body .heart { min-height: 44px; }
  body .heart { min-width: 44px; }
  body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), body select, body textarea { min-height: 44px; font-size: 16px !important; }
  /* the tiny controls keep their look; an invisible area round each takes the tap */
  body .themes button, body .ins, body .handle, body .nm button { position: relative; }
  body .themes button::before, body .ins::after, body .handle::after, body .nm button::after { content: ""; position: absolute; inset: -12px; }
  /* the tools' footer links */
  body .f-col a, body .f-bot a { display: inline-block; padding-block: 12px; }
}

@media (max-width: 900px) {
  body .btn.icon.sm { width: 44px; height: 44px; min-height: 44px; }
  body .mono:not(.art *), body pre.code { font-size: 12px !important; }
  body .f-col a, body .f-bot a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }
}

@media (max-width: 900px) {
  body .pr span, body .wts button { font-size: 12px !important; }
  body .h::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }   /* a colour point: a thumb-sized area round it */
  body .sw-add { min-width: 44px; min-height: 44px; }
  body details > summary { min-height: 44px; }
}

/* update 78: Support the tools, by bank transfer */
.bank { display: grid; gap: 10px; margin: 14px 0 18px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg3); }
.bank div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; align-items: center; }
.bank dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bank dd { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink); }
.bank dd b { font-family: var(--mono); font-weight: 500; font-size: 1.15em; letter-spacing: .06em; }
.modal .bank [data-copy-acct] { min-height: 44px; min-width: 76px; }
@media (max-width: 520px) { .bank div { grid-template-columns: 1fr; gap: 4px; } }
