:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --accent: var(--text);
  --text-on-emphasis: #ffffff;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-secondary: #d4d4d2;
  --surface-fn: #d4d4d2;
  --surface-op: #505050;
  --text: #000000;
  --text-secondary: #6c6c70;
  --shadow: rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #333333;
  --surface-secondary: #1c1c1e;
  --surface-fn: #505050;
  --surface-op: #505050;
  --text: #ffffff;
  --text-secondary: #a5a5a5;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  justify-content: center;
}

.landing {
  width: 100%;
  max-width: min(100vw, 720px);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  padding: calc(24px + var(--safe-top)) clamp(16px, 4vw, 24px)
    calc(32px + var(--safe-bottom));
  margin: 0 auto;
}

.landing-header {
  text-align: center;
  margin-bottom: 36px;
}

.landing-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: none;
  margin-bottom: 16px;
  filter: grayscale(1);
}

.landing-header h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.landing-tagline {
  margin: 0;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 400;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn:active {
  filter: brightness(1.12);
}

.btn-primary {
  background: var(--surface-op);
  color: var(--text-on-emphasis);
}

.btn-secondary {
  background: var(--surface-fn);
  color: var(--text);
}

.landing-section {
  margin-bottom: 32px;
}

.landing-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.landing-section p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: none;
}

html[data-theme="dark"] .feature-card {
  background: var(--surface);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
}

.pro-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 22px;
  box-shadow: none;
}

html[data-theme="dark"] .pro-card {
  background: var(--surface);
}

.pro-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-fn);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pro-price {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 300;
}

.pro-price-note {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pro-examples {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.pro-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.unlock-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unlock-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.unlock-form input {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: none;
}

.unlock-form input:focus {
  outline: 2px solid var(--text-secondary);
  outline-offset: 1px;
}

.unlock-message {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 13px;
}

.unlock-message.success {
  color: var(--text);
}

.unlock-message.error {
  color: var(--text-secondary);
}

.landing-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.landing-footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page {
  padding-top: calc(16px + var(--safe-top));
}

.legal-nav {
  margin-bottom: 24px;
}

.legal-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--text);
}

.legal-doc h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legal-doc h2 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.legal-doc h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-doc li {
  margin-bottom: 6px;
}

.legal-doc a {
  color: var(--text);
}

.legal-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-fn);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.support-page code {
  font-size: 0.92em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-fn);
  color: var(--text);
}

.support-ai-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 28px;
}

.support-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}

.support-form textarea {
  resize: vertical;
  min-height: 140px;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 2px solid var(--text-secondary);
  outline-offset: 1px;
}

.support-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.support-status {
  min-height: 20px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.support-status.success {
  color: var(--text);
}

.support-status.error {
  color: var(--text-secondary);
}

.support-fallback {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 28px;
}

.pro-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 15px;
}

.pro-page-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.pro-page-nav a:hover {
  color: var(--text);
}

.product-hero {
  text-align: center;
  margin-bottom: 28px;
}

.product-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.included-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.included-list li {
  margin-bottom: 8px;
}

.included-list strong {
  color: var(--text);
}

.product-support p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-support a {
  color: var(--text);
}

.install-intro,
.install-tip {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 15px;
}

.install-grid {
  margin-bottom: 8px;
}

.install-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.install-steps li {
  margin-bottom: 8px;
}

.install-steps a {
  color: var(--text);
}

.install-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}
