/* PadTerm landing page. Port of the "Landing page" artboard of the Graphite design canvas. */

:root {
  --ground: #0E0F12;
  --card: #16171B;
  --card-raised: #1C1C1F;
  --terminal: #0F0F11;
  --bar: #1A1A1D;
  --key-row: #1F1F23;
  --key: #34343A;
  --key-symbol: #2A2A2F;
  --text: #F2F2F4;
  --text-term: #D8D8DE;
  --muted: #B7B7BE;
  --subtle: #8E8E96;
  --faint: #A1A1A8;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #6CA8FF;
  --accent-hover: #9CC4FF;
  --mint: #5FF2B0;
  --green: #5FD38D;
  --yellow: #F2C94C;
  --red: #FF6B6B;
  --purple: #C792EA;
  --brand: linear-gradient(160deg, #4A86FF 0%, #2550F2 100%);
  --sans: Geist, -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
pre { margin: 0; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--ground);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Logo */
.logo-tile {
  display: inline-flex; flex-shrink: 0; overflow: hidden;
  width: 34px; height: 34px; border-radius: 22.4%; background: var(--brand);
}
.logo-tile svg { width: 100%; height: 100%; }
.wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: -0.6px; color: var(--text); }
.cursor { color: var(--mint); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(14, 15, 18, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .wordmark { font-size: 21px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; margin-left: auto; }
.nav-links a, .footer-links a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav-links a:hover, .footer-links a:hover { color: var(--text); }
.nav-cta {
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 12px; background: var(--text); color: var(--ground);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav-cta:hover { color: var(--ground); background: #FFFFFF; }
@media (max-width: 640px) {
  .nav { padding-top: 8px; padding-bottom: 8px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 4px 18px; }
  .nav-cta { margin-left: auto; }
}

/* Buttons */
.btn {
  min-height: 56px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--brand); color: #FFFFFF; box-shadow: 0 10px 30px rgba(47, 100, 255, 0.35); }
.btn-primary:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; padding: 0 22px; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-dark { background: var(--ground); color: #FFFFFF; padding: 0 26px; }
.btn-dark:hover { color: #FFFFFF; background: #000000; }
/* Store buttons: equal weight, each in its platform's colour (Apple white, Android green). */
.btn-appstore { background: #FFFFFF; color: #0E0F12; }
.btn-appstore:hover { color: #0E0F12; background: #E9E9EC; }
.btn-play { background: #3DDC84; color: #0E0F12; }
.btn-play:hover { color: #0E0F12; background: #34C676; }
.btn-appstore svg, .btn-play svg { width: 22px; height: 22px; }
.btn-play .eye { fill: #3DDC84; }
.btn-play:hover .eye { fill: #34C676; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 40px; }
.hero-glow {
  position: absolute; left: 50%; top: 360px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 100, 255, 0.28), rgba(47, 100, 255, 0) 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.hero h1 {
  max-width: 920px; font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; font-weight: 700;
  letter-spacing: -0.035em; text-wrap: balance;
}
.hero-sub { max-width: 680px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { font-size: 14px; color: var(--subtle); }
@media (max-width: 640px) { .hero { padding-top: 56px; } }

/* iPad mock (hero) */
.device {
  width: 100%; max-width: 1060px; margin-top: 36px; padding: 14px; border-radius: 34px;
  background: #1C1D21; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.screen {
  aspect-ratio: 1194 / 834; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--terminal); text-align: left;
}
@media (max-width: 640px) {
  .device { padding: 8px; border-radius: 22px; }
  .screen { border-radius: 15px; }
}
.session-bar {
  flex-shrink: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--bar); border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-family: -apple-system, system-ui, sans-serif;
}
.session-title { flex: 1; display: flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.session-name { font-size: 14px; font-weight: 600; }
.session-meta { font-size: 13px; color: var(--faint); }
.bar-action { font-size: 14px; color: var(--accent); }
.term {
  flex: 1; overflow: hidden; padding: 12px 16px; font-family: var(--mono);
  font-size: clamp(6px, 1.15vw, 13.5px); line-height: 1.5; color: var(--text-term);
}
.term .dim { color: var(--subtle); }
.term .path { color: var(--accent); }
.term .ok { color: var(--green); }
.term .del { color: var(--red); }
.term .prompt { color: var(--purple); }
.term .strong { color: var(--text); font-weight: 700; }
.term .plain { color: var(--text); }
.term .add { background: rgba(95, 211, 141, 0.12); color: #B7EFCB; }
.caret { background: var(--text-term); }
.key-row {
  flex-shrink: 0; display: flex; gap: 6px; padding: 8px 10px; background: var(--key-row);
  border-top: 1px solid var(--line); overflow: hidden; font-family: -apple-system, system-ui, sans-serif; font-size: 14px;
}
.key { flex-shrink: 0; padding: 9px 14px; border-radius: 8px; background: var(--key); }
.key.sym { background: var(--key-symbol); font-family: var(--mono); }
.key.on { background: var(--accent); color: var(--terminal); font-weight: 600; }
.key-row .spacer { flex: 1; }
@media (max-width: 640px) {
  .session-bar { height: 30px; padding: 0 10px; gap: 6px; }
  .session-meta, .bar-action { font-size: 10px; }
  .session-name { font-size: 11px; }
  .session-bar > svg { width: 14px; height: 14px; }
  .key-row { padding: 5px 6px; gap: 4px; font-size: 10px; }
  .key { padding: 5px 8px; border-radius: 5px; }
  .term { padding: 8px 10px; }
}

/* Section headings */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--mint); }
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance;
}
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Problem rows */
.features { padding: 112px 0 48px; }
.features .wrap { display: flex; flex-direction: column; gap: 96px; }
.feature-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.feature-row.reverse { flex-wrap: wrap-reverse; }
.feature-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.feature-text .num { font-family: var(--mono); font-size: 14px; color: var(--subtle); }
.feature-text h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.feature-text p { color: var(--muted); max-width: 520px; }
.panel {
  flex: 1 1 480px; min-width: 0; padding: 28px; border-radius: 24px; background: var(--card);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
@media (max-width: 640px) {
  .features { padding-top: 64px; }
  .features .wrap { gap: 64px; }
  .feature-text, .panel { flex-basis: 100%; }
  .panel { padding: 16px; border-radius: 18px; }
}

/* 01 reconnect mock */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 12px 14px 12px 18px;
  border-radius: 16px; background: #2C2C31; border: 1px solid rgba(255, 255, 255, 0.1);
}
.banner-text { flex: 1 1 200px; display: flex; flex-direction: column; }
.banner-title { font-size: 15px; font-weight: 600; }
.banner-sub { font-size: 13px; color: var(--muted); }
.banner-action { padding: 10px 14px; border-radius: 10px; background: #3A3A41; color: var(--accent); font-size: 14px; font-weight: 600; }
.spin { animation: spin 1.2s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.down-arrow { display: flex; justify-content: center; color: #5A5A64; }
.reattached {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 18px; border-radius: 16px;
  background: rgba(95, 211, 141, 0.10); border: 1px solid rgba(95, 211, 141, 0.3);
}
.reattached .dot { width: 10px; height: 10px; }
.reattached-text { flex: 1 1 200px; font-size: 15px; }
.reattached-text b { font-weight: 600; }
.reattached-text span { color: var(--muted); }
.windows { font-family: var(--mono); font-size: 13px; color: var(--subtle); }

/* 02 keyboard mock */
.mini-screen { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.mini-term {
  padding: 12px 14px; background: var(--terminal); font-family: var(--mono); font-size: 13px; line-height: 1.5;
  color: var(--text-term); overflow: hidden;
}
.mini-term .ok { color: var(--green); }
.mini-term .del { color: var(--red); }
.input-box {
  display: inline-block; width: 100%; border: 1px solid #5A5A64; border-radius: 4px; padding: 0 8px;
}
.tmux-status { color: var(--terminal); background: var(--accent); padding: 0 6px; }
.tmux-meta { color: var(--faint); }
.mini-keys { display: flex; gap: 6px; padding: 8px 10px; background: var(--key-row); overflow: hidden; font-size: 13px; }
.mini-keys span { padding: 6px 10px; border-radius: 7px; background: var(--key); }
.mini-keys .spacer { flex: 1; padding: 0; background: none; }
.keyboard {
  height: 120px; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 14px;
  background: repeating-linear-gradient(135deg, #222226 0 12px, #26262B 12px 24px);
}
@media (max-width: 640px) { .mini-term { font-size: 11px; } .keyboard { height: 80px; } }

/* Preview mock: terminal | web page */
.preview-section { padding-top: 0; }
.preview-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); }
.split-term { margin: 0; border-right: 6px solid var(--bar); white-space: pre; }
.mini-term .link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.mini-term .dim { color: var(--subtle); }
.mini-term .strong { color: var(--text); font-weight: 700; }
.mini-browser { display: flex; flex-direction: column; background: #f6f4ef; min-width: 0; }
.browser-bar { padding: 8px 10px; background: var(--bar); }
.browser-url { display: block; padding: 4px 10px; border-radius: 8px; background: #2A2A2F; font-family: var(--mono); font-size: 12px; color: var(--text-term); }
.page { padding: 12px 14px 16px; color: #1d1b16; display: flex; flex-direction: column; gap: 10px; }
.page-nav { display: flex; gap: 10px; font-size: 12px; color: #6b665c; }
.page-nav b { color: #1d1b16; margin-right: auto; }
.page-hero { font-size: 19px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.page-btns { display: flex; gap: 6px; }
.page-btn { padding: 6px 10px; border-radius: 8px; background: #2f6b4f; color: #fff; font-size: 12px; font-weight: 600; }
.page-btn.ghost { background: #fff; color: #2f6b4f; border: 1px solid #cfd9d2; }
.page-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc { height: 52px; border-radius: 8px; }
.pc.a { background: linear-gradient(135deg, #8fb996, #2f6b4f); }
.pc.b { background: linear-gradient(135deg, #f2c57c, #d9822b); }
.pc.c { background: linear-gradient(135deg, #9db8d9, #3c6e9f); }
@media (max-width: 640px) {
  .preview-split { grid-template-columns: 1fr; }
  .split-term { border-right: none; border-bottom: 6px solid var(--bar); }
}

/* 03 copy mock */
.search {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--key-symbol); color: var(--faint);
}
.search-query { flex: 1; color: var(--text); }
.search-count { font-size: 14px; }
.text-view { position: relative; padding: 46px 14px 14px; border-radius: 12px; background: var(--terminal); overflow: hidden; }
.edit-menu {
  position: absolute; top: 8px; left: 14px; display: flex; border-radius: 9px; background: #3A3A41;
  font-size: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.edit-menu span { padding: 7px 14px; }
.edit-menu span + span { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.text-view pre { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-term); overflow: hidden; }
.sel { background: rgba(108, 168, 255, 0.35); }
.hit { background: var(--yellow); color: var(--terminal); }
@media (max-width: 640px) { .text-view pre { font-size: 11px; } }

/* Card grid */
.grid-section .wrap { display: flex; flex-direction: column; gap: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card {
  padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.card > svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { font-size: 16px; color: var(--muted); }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 44px; height: 28px; border-radius: 7px; border: 2px solid; }
@media (max-width: 640px) { .card { padding: 22px; } }

/* Security */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.split .feature-text p { max-width: 520px; }
.warning {
  flex: 1 1 480px; min-width: 0; padding: 28px; border-radius: 24px; background: var(--card-raised);
  border: 1px solid rgba(255, 107, 107, 0.4); display: flex; flex-direction: column; gap: 16px;
}
.warning-head { display: flex; align-items: center; gap: 14px; }
.warning-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 107, 107, 0.16);
  color: #FF8A8A; display: flex; align-items: center; justify-content: center;
}
.warning-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.keys { display: flex; flex-direction: column; border-radius: 12px; background: #141416; overflow: hidden; }
.key-line { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; }
.key-line + .key-line { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.key-line.changed { background: rgba(255, 107, 107, 0.08); }
.key-label { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.5px; }
.changed .key-label { color: #FF8A8A; }
.fingerprint { font-family: var(--mono); font-size: 13px; color: var(--text-term); overflow-wrap: anywhere; }
.changed .fingerprint { color: var(--text); }
.warning-button {
  min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--accent); color: var(--terminal); font-weight: 600;
}
@media (max-width: 640px) { .warning { flex-basis: 100%; padding: 18px; border-radius: 18px; } }

/* Pricing */
.pricing .wrap { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.pricing .section-head { align-items: center; }
.price-card {
  width: 100%; max-width: 480px; padding: 36px; border-radius: 28px; background: var(--card);
  border: 1px solid rgba(108, 168, 255, 0.35); box-shadow: 0 30px 90px rgba(47, 100, 255, 0.18);
  display: flex; flex-direction: column; gap: 24px; text-align: left;
}
.price-app { display: flex; align-items: center; gap: 14px; }
.price-app .logo-tile { width: 52px; height: 52px; }
.price-app-name { display: flex; flex-direction: column; }
.price-app-name b { font-size: 20px; font-weight: 700; }
.price-app-name span { font-size: 15px; color: var(--subtle); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--mono); }
.price-amount { font-size: 44px; font-weight: 700; line-height: 1.1; }
.price-term { font-size: 15px; color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.price-card .btn { width: 100%; }
.price-buttons { display: flex; flex-direction: column; gap: 12px; }
.price-note { font-size: 14px; color: var(--subtle); text-align: center; }
@media (max-width: 480px) { .price-card { padding: 24px; border-radius: 22px; } }

/* FAQ */
.faq .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 32px; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.faq-list details { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.faq-list summary {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 19px; font-weight: 600; line-height: 1.35; padding: 12px 0; list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 26px; font-weight: 400; color: var(--accent); transition: transform 0.2s; flex-shrink: 0; }
details[open] .faq-plus { transform: rotate(45deg); }
.faq-list p { margin: 0 0 24px; color: var(--muted); }
@media (max-width: 640px) { .faq-list summary { font-size: 17px; } }

/* CTA band */
.cta-section { padding: 72px 0 112px; }
.cta-band {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px); border-radius: 32px;
  background: var(--brand); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-band-text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.cta-band h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; color: #FFFFFF; }
.cta-band p { font-size: 18px; color: #E6EDFF; }
@media (max-width: 640px) { .cta-section { padding: 48px 0 72px; } .cta-band { border-radius: 24px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding: 40px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; font-size: 15px; color: var(--subtle); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-tile { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; }
@media (max-width: 640px) { .footer-links { margin-left: 0; width: 100%; } }
