/* FreeUp Photos — landing page styles */

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #55637a;
  --border: #e2e8f0;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-soft: #ccfbf1;
  --accent: #0ea5e9;
  --gradient: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2c;
    --text: #e6edf7;
    --muted: #9aa8bf;
    --border: #223045;
    --brand: #2dd4bf;
    --brand-dark: #14b8a6;
    --brand-soft: rgba(45, 212, 191, .12);
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */

header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  display: flex; gap: 2px; border: 1px solid var(--border);
  border-radius: 999px; padding: 2px; font-size: .85rem;
}
.lang-switch a, .lang-switch span {
  padding: 2px 10px; border-radius: 999px; color: var(--muted);
}
.lang-switch span { background: var(--brand); color: #fff; font-weight: 600; }
.lang-switch a:hover { text-decoration: none; color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; overflow: hidden; }

.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 48px; align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15; letter-spacing: -.02em; font-weight: 800;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 34em;
}

.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* width:auto so the intrinsic width/height attributes (there for CLS) do not
   stretch the badge — they act as presentation hints and would win otherwise */
.play-badge img { height: 64px; width: auto; display: block; }
.hero-note { font-size: .9rem; color: var(--muted); }

.badges { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  font-size: .85rem; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 600;
}
@media (prefers-color-scheme: dark) { .pill, .phone .btn { color: var(--brand); } }

/* ---------- Phone mockup ---------- */

.phone {
  width: 270px; margin: 0 auto;
  border: 10px solid #1e293b; border-radius: 36px;
  background: var(--surface); box-shadow: var(--shadow);
  padding: 22px 16px; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 6px; border-radius: 999px; background: #1e293b;
}
.phone .app-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 12px;
}
.phone .app-title { font-weight: 700; font-size: .95rem; }
.phone .app-bar .icons { display: flex; gap: 10px; }
.phone .app-bar svg {
  width: 15px; height: 15px; fill: none;
  stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* The gear only reads as a gear when it is filled; stroked teeth look like a sun. */
.phone .app-bar svg.solid { fill: var(--muted); stroke: none; }
.phone .card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 10px; font-size: .8rem;
}
.phone .card .row { display: flex; justify-content: space-between; color: var(--muted); }
/* The real dashboard stacks whole sentences rather than label/value pairs. */
.phone .card .line { color: var(--muted); margin-bottom: 3px; }
.phone .card .line:last-child { margin-bottom: 0; }
.phone .card .line strong { color: var(--text); font-weight: 600; }
.phone .meta { color: var(--muted); font-size: .72rem; margin-top: 6px; }
.phone .btn {
  display: inline-block; margin-top: 9px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .72rem; font-weight: 600;
}
.phone .strip-title { font-size: .78rem; font-weight: 600; margin-top: 12px; }
.phone .bar {
  height: 8px; border-radius: 999px; background: var(--border);
  margin-top: 8px; overflow: hidden;
}
.phone .bar i { display: block; height: 100%; width: 72%; background: var(--gradient); border-radius: 999px; }
.phone .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.phone .thumbs i {
  aspect-ratio: 1; border-radius: 6px; display: block;
  background: linear-gradient(135deg, #99f6e4, #7dd3fc);
}
.phone .thumbs i:nth-child(2) { background: linear-gradient(135deg, #fde68a, #fca5a5); }
.phone .thumbs i:nth-child(3) { background: linear-gradient(135deg, #c4b5fd, #f9a8d4); }
.phone .thumbs i:nth-child(4) { background: linear-gradient(135deg, #86efac, #fcd34d); }
.phone .thumbs i:nth-child(5) { background: linear-gradient(135deg, #7dd3fc, #c4b5fd); }
.phone .thumbs i:nth-child(6) { background: linear-gradient(135deg, #fca5a5, #99f6e4); }
.phone .thumbs i:nth-child(7) { background: linear-gradient(135deg, #f9a8d4, #86efac); }
.phone .thumbs i:nth-child(8) { background: linear-gradient(135deg, #fcd34d, #7dd3fc); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.01em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* Use cases */
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .usecases { grid-template-columns: 1fr; } }

.usecase {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
section.alt .usecase { background: var(--bg); }
.usecase .icon { font-size: 2rem; }
.usecase h3 { margin: 14px 0 10px; font-size: 1.25rem; }
.usecase p { color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--gradient); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
section.alt .feature { background: var(--bg); }
.feature .icon { font-size: 1.6rem; }
.feature h3 { font-size: 1.02rem; margin: 10px 0 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* SFTP section */
.sftp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .sftp-grid { grid-template-columns: 1fr; } }
.sftp-grid h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.sftp-grid p { color: var(--muted); margin-bottom: 14px; }
.sftp-grid ul { list-style: none; margin-top: 8px; }
.sftp-grid li { padding: 8px 0 8px 32px; position: relative; }
.sftp-grid li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.terminal {
  background: #0b1220; color: #d7e3f4; border-radius: var(--radius);
  padding: 20px 22px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem; line-height: 1.7; box-shadow: var(--shadow);
  border: 1px solid #223045; overflow-x: auto;
}
.terminal .dim { color: #64748b; }
.terminal .ok { color: #34d399; }
.terminal .accent { color: #38bdf8; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 820px) { .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
}
section.alt .plan { background: var(--bg); }
.plan.featured { border: 2px solid var(--brand); position: relative; box-shadow: var(--shadow); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 3px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 2.2rem; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 20px 0; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; font-size: .93rem; color: var(--muted); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: .95rem; }
.pricing-note strong { color: var(--text); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 12px; padding: 0 20px;
}
section.alt .faq details { background: var(--bg); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: .95rem; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-final p { color: var(--muted); margin: 14px auto 30px; max-width: 34em; }
.cta-final .play-badge { display: inline-block; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem;
}
.footer-inner .links { display: flex; gap: 18px; }

/* Legal pages (privacy policy) */
.legal { padding: 56px 0 72px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.legal h2 {
  font-size: 1.25rem; margin: 44px 0 14px; padding-top: 20px;
  border-top: 1px solid var(--border); letter-spacing: -.01em;
}
.legal h3 { font-size: 1.02rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { padding: 4px 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em; background: var(--brand-soft); color: var(--brand-dark);
  padding: 1px 6px; border-radius: 5px;
}

.legal .summary {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius); padding: 22px 24px; margin: 28px 0 8px;
}
.legal .summary h2 { margin: 0 0 12px; padding: 0; border: 0; font-size: 1.05rem; }
.legal .summary ul { margin-bottom: 0; }

.legal .toc { margin: 28px 0 0; }
.legal .toc ol { columns: 2; column-gap: 32px; margin-left: 18px; font-size: .93rem; }
@media (max-width: 620px) { .legal .toc ol { columns: 1; } }

.table-scroll { overflow-x: auto; margin: 0 0 18px; }
.legal table {
  width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px;
}
.legal th, .legal td {
  text-align: left; vertical-align: top; padding: 11px 14px;
  border-bottom: 1px solid var(--border); color: var(--muted);
}
.legal th { color: var(--text); font-weight: 600; white-space: nowrap; }
.legal tbody tr:last-child td { border-bottom: 0; }

/* Placeholders that must be filled in before this page goes live */
.todo {
  background: #fef08a; color: #713f12; font-weight: 600;
  padding: 1px 7px; border-radius: 5px; font-size: .92em;
}
@media (prefers-color-scheme: dark) { .todo { background: #a16207; color: #fefce8; } }
