/* /import/ pages: one narrow column, the tool first, everything else short. */
:root {
  --ink: #101b2d; --muted: #5e6c80; --line: #dbe3eb; --paper: #f6f7f4; --white: #fff;
  --blue: #0878c9; --blue-dark: #07568f; --soft: #eaf4fb; --navy: #10263d; --ok: #13795b; --warn: #8a5300;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif; }
a { color: var(--blue-dark); }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

.bar { max-width: 720px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Manrope", sans-serif; font-weight: 800; text-decoration: none; }
.brand img { border-radius: 8px; display: block; }
.langs { display: flex; gap: 2px; flex-wrap: wrap; }
.langs a { padding: 4px 8px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

.page { max-width: 720px; margin: 0 auto; padding: 18px 20px 56px; }
h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; }
.lead { margin-top: 12px; font-size: 18px; color: var(--muted); }
h2 { margin: 44px 0 12px; font-size: 22px; }

/* the tool */
.tool { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 8px 24px rgba(16, 38, 61, 0.05); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 38px 16px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { font-size: 30px; line-height: 1; color: var(--blue); }
.drop-main { font-weight: 700; font-size: 17px; }
.drop-sub { font-size: 14px; color: var(--muted); }
.sample { margin-top: 12px; text-align: center; font-size: 14px; }
.error { margin-top: 10px; color: #b3261e; text-align: center; }
button.link { border: 0; background: none; padding: 0; color: var(--blue-dark); font: inherit; text-decoration: underline; cursor: pointer; }

.result-head { display: flex; align-items: flex-start; gap: 12px; }
.ok { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #dff3ea; color: var(--ok); font-weight: 800; }
.result.empty .ok { background: #fbefd9; color: var(--warn); }
.result-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-text strong { font-size: 18px; line-height: 1.3; }
.result-text span { color: var(--muted); font-size: 14px; }
.again { margin-top: 12px; text-align: center; font-size: 14px; }
.warn { margin-top: 10px; color: var(--warn); font-size: 14px; }
button.primary { display: block; width: 100%; margin-top: 16px; font: inherit; font-weight: 700; font-size: 17px; border: 0; border-radius: 14px; padding: 15px 20px; background: var(--blue); color: #fff; cursor: pointer; }
button.primary:hover { background: var(--blue-dark); }
button.primary:disabled { opacity: .45; cursor: default; }
.howto { margin: 14px 0 0 22px; font-size: 15px; }
.howto li { margin: 4px 0; }
.howto code, .export-steps code { font-size: 14px; background: var(--paper); padding: 1px 5px; border-radius: 6px; }
.after { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; }
details.more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.options label, .map-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 12px; margin-top: 14px; }
.tool select, .tool input[type=date] { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 40px; max-width: 100%; width: 100%; }
.table-wrap { margin-top: 10px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 600; background: var(--paper); }
tr:last-child td { border-bottom: 0; }
td.more-rows { text-align: center; color: var(--muted); }

.trust { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14px; }

/* below the tool */
.export-steps { margin-left: 22px; }
.export-steps li { margin: 6px 0; }
.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.apps a, .apps span { padding: 10px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.apps a:hover { border-color: var(--blue); }
.apps span { color: var(--muted); font-weight: 600; }

.cta { display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; padding: 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.cta img { flex: none; border-radius: 12px; }
.cta h2 { margin: 0 0 4px; font-size: 19px; }
.cta p { color: var(--muted); font-size: 15px; }
.cta-btn { display: inline-block; margin-top: 12px; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.cta .note { margin-left: 8px; color: var(--muted); font-size: 13px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--muted); }
.others { margin-top: 28px; color: var(--muted); font-size: 14px; }
.foot { max-width: 720px; margin: 0 auto; padding: 22px 20px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 520px) {
  .tool { padding: 14px; border-radius: 16px; }
  .cta { flex-direction: column; }
}

/* Fitbit → Garmin prototype additions */
.brand { gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.by { font-size: 13px; color: var(--muted); }
.busy { padding: 30px 0; text-align: center; color: var(--muted); }
.report-head { display: flex; gap: 12px; align-items: flex-start; }
.report-head div { display: flex; flex-direction: column; }
.report-head strong { font-size: 19px; }
.report-head span:not(.ok) { color: var(--muted); font-size: 14px; }
.rows { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.rows li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rows .icon { flex: none; width: 22px; text-align: center; color: var(--ok); font-weight: 800; }
.rows li.no .icon, .rows li.no .what { color: var(--muted); }
.rows .what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rows .what span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows em, .compare em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--blue-dark); }
.rows em.free, .compare div:first-child em { background: #dff3ea; color: var(--ok); }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.actions .primary { margin-top: 0; }
button.secondary { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 14px; padding: 12px 18px; cursor: pointer; }
button.secondary:hover { border-color: var(--blue); }
details.more ol { margin: 10px 0 0 22px; font-size: 15px; }
details.more li { margin: 4px 0; }
.compare { display: grid; gap: 8px; }
.compare div { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.compare b { grid-column: 1; }
.compare span { grid-column: 1; color: var(--muted); font-size: 14px; }
.compare em { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.compare .no { opacity: .75; }
.compare .no em { background: transparent; color: var(--muted); }
.steps { margin-left: 22px; }
.steps li { margin: 6px 0; }
code { font-size: 14px; background: var(--paper); padding: 1px 5px; border-radius: 6px; }
.modal { position: fixed; inset: 0; background: rgba(16, 27, 45, 0.45); display: grid; place-items: center; padding: 16px; z-index: 10; }
.sheet { position: relative; width: min(460px, 100%); background: var(--white); border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sheet h2 { margin: 0 0 6px; }
.sheet .close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.sheet > p { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; margin: 14px 0; }
.ticks li { padding-left: 24px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.soon { font-size: 14px; color: var(--muted); }
.row { display: flex; gap: 8px; margin-top: 8px; }
.row input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
button.primary.small { width: auto; margin: 0; padding: 10px 16px; font-size: 15px; }
.thanks { margin-top: 8px; color: var(--ok); font-size: 14px; }
.poc { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.note-line { color: var(--muted); margin-bottom: 10px; }

#checkout { margin-top: 14px; }
.fine { margin-top: 10px; color: var(--muted); font-size: 13px; }
.paid { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #dff3ea; font-size: 15px; }
.paid a { word-break: break-all; }
.sheet { max-height: calc(100vh - 32px); overflow-y: auto; }

/* free version: nav, contact form, more tools, footer */
a.brand { text-decoration: none; }
.bar .nav { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.bar .nav:hover { color: var(--ink); }
#download-btn { margin-top: 16px; }
.contact { display: grid; gap: 12px; margin-top: 12px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.contact label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact select, .contact textarea, .contact input[type=email] { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.contact textarea { resize: vertical; }
.contact .check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.contact .primary { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.more-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.more-tools a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.more-tools a:hover { border-color: var(--blue); }
.more-tools b { font-family: "Manrope", sans-serif; }
.more-tools span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot p + p { margin-top: 6px; }
/* Buy Me a Coffee, same pill as gtick.app */
.coffee-link { display: inline-block; background: #ffdd00; color: #1a1a1a !important; padding: 0.4rem 0.95rem; border-radius: 999px; font-weight: 700; text-decoration: none; }
.coffee-link:hover { filter: brightness(0.96); }
.footer-support { margin-bottom: 12px; }
.coffee-after { margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.coffee-after .coffee-link { margin-left: 6px; }
