/* tradetools.dev — shared styles for the home page and the tool pages.
   Generated pages link this file; edit here, not in index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ground-top: #16556f;
  --ground-bottom: #0a2e3e;
  --ink: #f7f9fa;
  --muted: #bcd2dc;
  --badge: #e9c44a;
  --badge-ink: #0a2e3e;
  --page: #f3f7f8;
  --surface: #ffffff;
  --text: #0b1a21;
  --text-2: #4b5f68;
  --line: #d8e3e8;
  --accent: #16556f;
  --accent-soft: #e3eef2;
  --radius: 14px;
  --max: 1120px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--badge); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 800; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }

/* Ground: the same gradient, grid and glow as the store frames. */
.ground {
  color: var(--ink);
  background:
    radial-gradient(60% 55% at 50% 35%, rgba(150, 205, 230, 0.20), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, var(--ground-top), var(--ground-bottom));
}

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243,247,248,0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; }
.top nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); }
.top .cta { background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { padding: 4.5rem 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem); font-weight: 800; }
.hero h1 .soft { color: var(--muted); }
.hero .lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 1.8rem; }
.stores .badge img { height: 54px; width: auto; }
.badge-soon { display: inline-flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 1rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.15; }
.badge-soon small { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.chip { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(255,255,255,0.10); color: var(--ink); }
.chip.gold { background: var(--badge); color: var(--badge-ink); }

/* Phones */
.phones { position: relative; height: 620px; }
.phone { position: absolute; width: 268px; border-radius: 36px; background: #090f12; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.14) inset; }
.phone img { border-radius: 27px; width: 100%; }
.phone.a { left: 8%; top: 40px; transform: rotate(-4deg); }
.phone.b { right: 4%; top: 110px; transform: rotate(3deg); }

/* Sections */
section.block { padding: 4.5rem 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card .ref-line { display: inline-block; margin-top: 0.9rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8rem; color: var(--accent); background: var(--accent-soft); padding: 0.3rem 0.55rem; border-radius: 6px; }

.video { margin-top: 2rem; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0a2e3e; box-shadow: 0 20px 50px rgba(10,46,62,0.25); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tools */
.trade { margin-top: 2.5rem; }
.trade-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; border-bottom: 2px solid var(--text); padding-bottom: 0.6rem; }
.trade-head h3 { font-size: 1.35rem; font-weight: 800; }
.trade-head .count { font-weight: 600; color: var(--text-2); font-size: 1rem; margin-left: 0.35rem; }
.trade-head p { color: var(--text-2); font-size: 0.95rem; }
.trade-head .codes { color: var(--accent); font-weight: 600; }
.tools { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1.5rem; margin-top: 0.5rem; }
.tools li { display: flex; flex-direction: column; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.tools .tool { font-weight: 700; }
.tools .tool a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tools .tool a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.tools .ref { font-size: 0.82rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-top: 0.15rem; }
.tools .ref-plain { font-family: inherit; color: var(--text-2); }

/* Pro */
.pro { padding: 4.5rem 0; }
.pro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.pro h2 { color: var(--ink); }
.pro p { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }
.pro ul { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.pro li { padding-left: 1.6rem; position: relative; color: var(--ink); }
.pro li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--badge); }
.pro .note { font-size: 0.9rem; color: var(--muted); margin-top: 1.4rem; }
.pro .phone-static { width: 250px; margin: 0 auto; position: static; transform: none; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.2rem 1.2rem; margin-top: 0.8rem; }
summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--text-2); padding: 0 0 1rem; max-width: 65ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--text-2); font-size: 0.9rem; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; color: var(--text); }
footer ul { list-style: none; display: grid; gap: 0.35rem; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .legal { margin-top: 2rem; font-size: 0.8rem; max-width: 70ch; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 480px; margin: 0 auto; width: 100%; }
  .phone { width: 220px; }
  .grid3 { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .pro .wrap { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .top nav a:not(.cta) { display: none; }
}
@media (max-width: 560px) {
  .tools { grid-template-columns: 1fr; }
  .phones { height: 440px; }
  .phone { width: 180px; }
}
