/* Image Toolkit — shared styles. Colors derived from app theme (Color.kt / Theme.kt). */
:root {
  --primary: #1976D2;
  --primary-dark: #115293;
  --primary-light: #63a4ff;
  --secondary: #00796B;
  --secondary-dark: #004c40;
  --accent: #F57C00;
  --accent-dark: #bb4d00;
  --error: #D32F2F;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --text: #1A1C1E;
  --text-muted: #5A6472;
  --border: #E2E8F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.06);
  --shadow-lg: 0 18px 40px rgba(16,24,40,.14);
  --maxw: 1120px;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, #ffb15e 100%);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
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 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(25,118,210,.06); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* Play badge image link */
.play-badge { display: inline-block; transition: transform .15s ease, filter .15s ease; }
.play-badge:hover { transform: translateY(-2px); filter: brightness(1.03); }
.play-badge img { height: 56px; width: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(25,118,210,.10); color: var(--primary);
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: 18px; color: var(--text-muted); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font-size: 20px; color: var(--text); }
.hero-meta small { color: var(--text-muted); }

/* Phone mockup */
.phone { justify-self: center; }
.phone-frame {
  width: 300px; height: 610px; background: #0e1116; border-radius: 42px;
  padding: 14px; box-shadow: var(--shadow-lg); position: relative;
}
.phone-frame::before {
  content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 24px; background: #0e1116; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
}
.ps-top { background: var(--grad); color: #fff; padding: 34px 18px 18px; }
.ps-top small { opacity: .85; font-size: 12px; }
.ps-top h3 { font-size: 19px; margin-top: 2px; }
.ps-body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; overflow: hidden; }
.ps-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.ps-tile .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 10px; }
.ps-tile .ic svg { width: 18px; height: 18px; }
.ps-tile b { font-size: 13px; display: block; }
.ps-tile small { font-size: 11px; color: var(--text-muted); }
.ic-blue { background: rgba(25,118,210,.12); color: var(--primary); }
.ic-teal { background: rgba(0,121,107,.12); color: var(--secondary); }
.ic-orange { background: rgba(245,124,0,.14); color: var(--accent); }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--secondary); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; margin: 8px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.alt-bg { background: var(--surface-alt); }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }
.tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.tag-free { background: rgba(0,121,107,.12); color: var(--secondary); }
.tag-pro { background: var(--grad-accent); color: #4a2600; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 12px; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-md); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* Pro section */
.pro-card {
  background: var(--grad); color: #fff; border-radius: 24px; padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lg);
}
.pro-card .eyebrow { color: rgba(255,255,255,.85); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.pro-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 8px 0 14px; letter-spacing: -.02em; }
.pro-card p { color: rgba(255,255,255,.9); margin-bottom: 8px; }
.pro-list { list-style: none; display: grid; gap: 12px; }
.pro-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; }
.pro-list .check { width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.pro-list .check svg { width: 14px; height: 14px; }
.pro-plans { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.plan-pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 16px; }
.plan-pill b { display: block; font-size: 15px; }
.plan-pill small { color: rgba(255,255,255,.8); font-size: 12px; }

/* CTA banner */
.cta { text-align: center; }
.cta-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 56px 32px; box-shadow: var(--shadow-md); }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; letter-spacing: -.02em; }
.cta-inner p { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto 26px; }
.cta-badges { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #0e1116; color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand:hover { text-decoration: none; }
.site-footer p.desc { color: #94a3b8; font-size: 14.5px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #cbd5e1; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom small { color: #94a3b8; font-size: 13px; }

/* Legal / content pages */
.page-hero { background: var(--grad); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { color: rgba(255,255,255,.9); margin-top: 8px; }
.legal { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.legal .dates { display: flex; gap: 22px; flex-wrap: wrap; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; font-size: 14px; color: var(--text-muted); }
.legal .dates b { color: var(--text); }
.legal .summary { background: rgba(25,118,210,.06); border: 1px solid rgba(25,118,210,.18); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 32px; }
.legal .summary ul { margin: 8px 0 0 18px; }
.legal .summary li { margin-bottom: 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 12px; letter-spacing: -.01em; scroll-margin-top: 84px; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #33404f; font-size: 15.5px; }
.legal ul, .legal ol { margin: 10px 0 10px 22px; }
.legal li { margin-bottom: 8px; }
.legal code { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 13.5px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; color: var(--secondary-dark); }
.legal a { color: var(--primary); text-decoration: underline; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 22px; margin-bottom: 28px; }
.legal .toc h4 { margin-bottom: 10px; font-size: 15px; }
.legal .toc ol { columns: 2; column-gap: 28px; margin-left: 18px; }
.legal .toc a { text-decoration: none; }
.trademark-note { margin-top: 40px; padding: 16px 18px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 15px; background: var(--surface); color: var(--text); transition: border .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,118,210,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.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 .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: 14.5px; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0; }
  .phone { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .pro-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal .toc ol { columns: 1; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
  }
  .site-header.open .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-header.open .nav-actions .btn { display: inline-flex; }
  .site-header.open .nav-actions { position: absolute; top: 100%; margin-top: 150px; }
}
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .hero-cta .play-badge { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; }
  .pro-card { padding: 28px 20px; }
  .cta-inner { padding: 40px 20px; }
}
