/* PDF Toolkit — marketing site styles
   Palette pulled from the app's Compose theme (Theme.kt / ToolColors.kt). */

:root {
  --brand-red: #E53935;
  --brand-red-dark: #C62828;
  --navy: #17324D;
  --navy-light: #2C5378;
  --amber: #F9A825;
  --teal: #00897B;

  --primary: var(--brand-red);
  --primary-dark: var(--brand-red-dark);
  --secondary: var(--navy);
  --accent: var(--amber);

  --bg: #FBF9FA;
  --surface: #FFFFFF;
  --surface-alt: #F1EEF0;
  --text: #1A1C1E;
  --text-muted: #5B5760;
  --border: #E7E2E5;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(23, 50, 77, 0.08), 0 1px 2px rgba(23, 50, 77, 0.06);
  --shadow-md: 0 6px 20px rgba(23, 50, 77, 0.10);
  --shadow-lg: 0 20px 45px rgba(23, 50, 77, 0.16);
  --maxw: 1120px;
  --header-h: 68px;

  --gradient-brand: linear-gradient(135deg, #E53935 0%, #C62828 55%, #17324D 100%);
  --gradient-pro: linear-gradient(135deg, #17324D 0%, #2C5378 55%, #C62828 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(229, 57, 53, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); background: var(--surface-alt); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f4f4f6; }

/* Play badge link */
.playstore-badge { display: inline-block; transition: transform 0.15s ease; }
.playstore-badge:hover { transform: translateY(-2px); text-decoration: none; }
.playstore-badge img { height: 58px; width: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 1.12rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(249, 168, 37, 0.14), transparent 60%),
    radial-gradient(760px 460px at -5% 10%, rgba(23, 50, 77, 0.10), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }

/* Phone mockup */
.phone {
  position: relative;
  width: 290px;
  margin: 0 auto;
  background: #0e1013;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #23262b;
}
.phone-screen { background: var(--bg); border-radius: 30px; overflow: hidden; }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #0e1013; border-radius: 0 0 14px 14px; z-index: 2; }
.mock-appbar { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; background: #fff; }
.mock-appbar img { width: 24px; height: 24px; border-radius: 6px; }
.mock-appbar b { font-size: 0.95rem; color: var(--navy); }
.mock-hero {
  margin: 10px; padding: 16px; border-radius: 16px; color: #fff;
  background: var(--gradient-brand);
}
.mock-hero b { font-size: 0.9rem; display: block; }
.mock-hero small { font-size: 0.72rem; opacity: 0.85; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 10px 16px; }
.mock-tile {
  position: relative;
  aspect-ratio: 0.95;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
}
.mock-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mock-ico svg { width: 20px; height: 20px; }
.mock-tile small { font-size: 0.6rem; color: var(--text); font-weight: 600; text-align: center; line-height: 1.1; }
.mock-pro { position: absolute; top: 5px; right: 5px; font-size: 0.5rem; font-weight: 800; color: #fff; background: var(--amber); padding: 1px 5px; border-radius: 6px; }

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: 0.96rem; }
.trust-item svg { color: var(--primary); flex: none; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(229, 57, 53, 0.35); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.badge-free { background: rgba(0, 137, 123, 0.12); color: var(--teal); }
.badge-pro { background: rgba(249, 168, 37, 0.16); color: #B26A00; }

/* Tile icon gradients (mirror ToolColors.kt) */
.g-blue   { background: linear-gradient(135deg, #42A5F5, #1976D2); }
.g-green  { background: linear-gradient(135deg, #66BB6A, #2E7D32); }
.g-orange { background: linear-gradient(135deg, #FFB74D, #F57C00); }
.g-teal   { background: linear-gradient(135deg, #26C6DA, #00838F); }
.g-indigo { background: linear-gradient(135deg, #5C6BC0, #303F9F); }
.g-pink   { background: linear-gradient(135deg, #EC407A, #C2185B); }
.g-purple { background: linear-gradient(135deg, #AB47BC, #7B1FA2); }
.g-amber  { background: linear-gradient(135deg, #FFCA28, #FF8F00); }
.g-red    { background: linear-gradient(135deg, #FF5F52, #D32F2F); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 8px; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.3rem; margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* Pro section */
.pro-wrap { background: var(--navy); }
.pro-card {
  background: var(--gradient-pro);
  border-radius: var(--radius-lg);
  padding: 52px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.pro-card h2 { color: #fff; }
.pro-card .eyebrow { background: rgba(249, 168, 37, 0.22); color: #FFD98A; }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pro-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; }
.pro-list svg { flex: none; color: var(--amber); margin-top: 3px; }
.pro-plans { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pro-plan {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: center;
  flex: 1;
  min-width: 92px;
}
.pro-plan b { display: block; font-size: 1.02rem; }
.pro-plan small { opacity: 0.8; font-size: 0.78rem; }

/* CTA banner */
.cta-banner { background: var(--gradient-brand); color: #fff; text-align: center; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }

/* Footer */
.site-footer { background: #0f2033; color: #c7d3df; padding: 62px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand b { color: #fff; font-size: 1.15rem; }
.site-footer p { color: #96a6b5; font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #c7d3df; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8496a6;
}
.footer-bottom .disclaimer { max-width: 720px; }

/* Legal / content pages */
.page-hero { background: var(--gradient-brand); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.9); margin: 0; }
.legal { max-width: 860px; }
.legal .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.08rem; margin-top: 26px; color: var(--navy-light); }
.legal p, .legal li { color: #33373d; font-size: 1rem; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; }
.legal code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: var(--navy);
  word-break: break-word;
}
.legal .callout {
  background: rgba(249, 168, 37, 0.10);
  border-left: 4px solid var(--amber);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 8px;
}
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 20px; }
.toc a { text-decoration: none; font-size: 0.92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 6px; }
.contact-card h3 svg { color: var(--primary); }
.contact-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.contact-card a { font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-order { order: 2; }
  .hero { padding: 48px 0 64px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; max-width: 420px; margin: 0 auto; }
  .pro-card { grid-template-columns: 1fr; padding: 38px; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .toc ol { columns: 1; }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--surface-alt); }
  .nav .btn { display: none; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 10px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .trust .container { justify-content: flex-start; gap: 16px 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .playstore-badge { width: 100%; }
  .hero-cta .playstore-badge img { height: 54px; margin: 0 auto; }
  .pro-card { padding: 28px 22px; }
  .contact-form { padding: 24px; }
}
