/* Free tools, guides, templates and the referral page */
.res-hero { padding: 120px 0 36px; }
.res-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 14px; max-width: 820px; }
.res-hero .lead-text { max-width: 720px; }
.res-body { padding: 10px 0 90px; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.res-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.res-card b { font-size: 1.08rem; } .res-card span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.res-card .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.res-section-title { font-size: 1.3rem; margin: 46px 0 16px; }

.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.calc form, .calc .out { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: #fff; }
.calc .out { background: var(--navy); color: #fff; position: sticky; top: 90px; }
.calc label { display: block; font-weight: 600; font-size: .93rem; margin: 14px 0 6px; }
.calc label:first-child { margin-top: 0; }
.calc label small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.calc input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.05rem; background: var(--bg-soft); }
.calc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.calc .out dl { margin: 0; display: grid; gap: 12px; }
.calc .out dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc .out dt { color: #cbd5e1; } .calc .out dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc .out .big { font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 18px; }
.calc .out .note { color: #cbd5e1; font-size: .92rem; line-height: 1.5; margin-top: 16px; }
.calc .out .btn { margin-top: 18px; }
.calc .fine-print { color: var(--muted); font-size: .85rem; margin-top: 14px; line-height: 1.5; }

.prose { max-width: 760px; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 1.45rem; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h3 { color: var(--ink); font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; } .prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.prose .template { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 18px; white-space: pre-line; font-size: .98rem; }
.prose .callout { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 22px 0; color: var(--ink); }
.prose .updated { color: var(--muted); font-size: .9rem; }
.cta-band { margin-top: 50px; padding: 30px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 4px; font-size: 1.35rem; color: #fff; } .cta-band p { margin: 0; color: #cbd5e1; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 30px; }
.steps div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }

@media (max-width: 900px) { .res-grid, .steps { grid-template-columns: 1fr; } .calc { grid-template-columns: 1fr; } .calc .out { position: static; } }

/* ---- FAQ (faq.html) ---- */
.faq-wrap { max-width: 860px; }
.faq-search input { width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; font: inherit; font-size: 1.05rem; background: #fff; box-shadow: var(--shadow); }
.faq-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.faq-search .fine { color: var(--muted); margin-top: 12px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.faq-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.faq-nav a:hover { border-color: var(--accent); color: var(--accent); }
.faq-group { scroll-margin-top: 90px; padding: 0 !important; }
.faq-group h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -.01em; }
.faq-group details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; transition: border-color .2s; }
.faq-group details[open] { border-color: #c7d4fb; }
.faq-group summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--ink); position: relative; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-group details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-group details p { padding: 0 18px 18px; color: var(--ink-2); line-height: 1.65; }

/* ---- Security & privacy (security.html) ---- */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.sec-point { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.sec-point h3 { font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.sec-point h3::before { content: ""; display: block; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232554e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / 18px no-repeat; }
.sec-point p { color: var(--ink-2); line-height: 1.6; margin: 0; }

/* ---- What's new (changelog.html) ---- */
.log { max-width: 860px; border-left: 2px solid var(--line); margin-left: 6px; }
.log-item { position: relative; padding: 0 0 34px 28px; }
.log-item::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.log-when b { display: block; font-size: 1.1rem; color: var(--ink); } .log-when span { color: var(--accent); font-weight: 600; font-size: .9rem; }
.log-item ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); line-height: 1.65; } .log-item li { margin: 4px 0; }

/* ---- trade pages (apps-for-*.html) ---- */
.trade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; align-items: start; }
.trade h2 { font-size: 1.3rem; letter-spacing: -.01em; margin: 0 0 14px; }
.trade h2.res-section-title { margin: 52px 0 18px; }
.trade-pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trade-pains li { position: relative; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink-2); line-height: 1.55; }
.trade-pains li::before { content: "!"; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: #fef2f2; color: #b91c1c;
  font: 700 12px/20px system-ui, sans-serif; text-align: center; }
.trade-text .sms { position: relative; max-width: 420px; padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--accent); color: #fff; line-height: 1.5; margin: 10px 0; }
.trade-text .fine { color: var(--muted); font-size: .9rem; }
.trade-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.trade-app { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.trade-app:hover { border-color: var(--accent); transform: translateY(-2px); }
.trade-app img { border-radius: 10px; } .trade-app span { color: var(--ink-2); line-height: 1.55; font-size: .95rem; } .trade-app small { color: var(--accent); font-weight: 600; }
.trade-setup { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 34px 0 6px; padding: 24px; border-radius: var(--radius-lg); background: var(--accent-soft); }
.trade-setup > div { flex: 1 1 360px; } .trade-setup h2 { margin-bottom: 6px; } .trade-setup p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.trade-links { display: flex; flex-wrap: wrap; gap: 10px; }
.trade-links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; }
.trade-links a:hover { border-color: var(--accent); color: var(--accent); }
.trade .faq-group { padding: 0 !important; }

.bundle-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px dashed var(--line); font-size: .95rem; }
