:root {
  --bg: #0b0d10;
  --card: #161a20;
  --text: #f3f4f6;
  --text-dim: #9aa1ac;
  --accent: #c73e3e;
  --border: #262b33;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

h1,
h2 {
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  color: var(--text-dim);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */

.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.brand span {
  color: var(--accent);
}

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

.header-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.header-nav .contact-btn {
  color: var(--text);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
}

.header-nav .contact-btn:hover {
  color: var(--text);
  opacity: 0.9;
}

/* Hero */

.hero {
  padding: 96px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.1rem;
}

/* Products */

.product {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.product-alt {
  background: var(--card);
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.product-inner--solo {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.product-inner--solo .example-links {
  justify-content: center;
}

.product-inner--solo .feature-list {
  text-align: left;
}

.product-media {
  order: 2;
  display: flex;
  justify-content: center;
}

.product-info {
  order: 1;
}

.product-alt .product-media {
  order: 1;
}

.product-alt .product-info {
  order: 2;
}

.product-num {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.product-info h2 {
  font-size: 1.75rem;
}

.product-info > p {
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.feature-list li {
  padding: 8px 0 8px 24px;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.example-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.example-links a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.example-links a:hover {
  text-decoration: underline;
}

/* Screenshot placeholders */

.media-placeholder {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.media-placeholder--card {
  max-width: 360px;
  aspect-ratio: 8 / 5;
}

.media-placeholder--wide {
  aspect-ratio: 16 / 9;
}

/* Phone frame — built at a real device resolution (iPhone 14, 390x844),
   then visually scaled down as one unit so the embedded app renders at a
   realistic mobile viewport instead of a squished 160px-wide one. */

.phone-frame-wrap {
  --phone-scale: 0.58;
  width: calc(390px * var(--phone-scale));
  height: calc(844px * var(--phone-scale));
  overflow: hidden;
}

.phone-frame {
  width: 390px;
  height: 844px;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  box-sizing: border-box;
  background: #000;
  border: 3px solid var(--border);
  border-radius: 46px;
  padding: 14px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--card);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.phone-preview-btn {
  font: inherit;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  color: var(--text);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  padding: 14px 24px;
  margin: 0 20px;
  cursor: pointer;
}

@media (max-width: 800px) {
  .product-inner {
    grid-template-columns: 1fr;
  }

  .product-media,
  .product-alt .product-media {
    order: -1;
  }

  .product-info,
  .product-alt .product-info {
    order: 0;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.email-link {
  color: var(--accent);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  gap: 16px;
}

.legal-nav a {
  color: var(--text-dim);
  font-size: 0.9rem;
}

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

/* Legal pages */

.legal {
  padding: 64px 0 96px;
}

.legal h1 {
  font-size: 1.75rem;
}

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