/* sinmerma.com: the app's own tokens ("Porcelana simplificada", Theme.swift) on the web.
   Light and dark follow the system, like the app. */

:root {
  color-scheme: light dark;
  --background: #F4F5F8;
  --card: #FFFFFF;
  --ink: #222A39;
  --muted: #60697B;
  --line: #DCE0EB;
  --accent: #0A5847;
  --on-accent: #FFFFFF;
  --soft: #AEF3C4;
  --error: #AB3647;
  --shadow: 0 18px 50px rgba(37, 50, 76, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #151820;
    --card: #232731;
    --ink: #F1F3FA;
    --muted: #BAC2D2;
    --line: #424A5C;
    --accent: #AEF3C4;
    --on-accent: #0A5847;
    --soft: #0A5847;
    --error: #FFB8C3;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; }

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

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }

h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; }

h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0; }

.muted { color: var(--muted); }

kbd {
  font: 15px/1 var(--font);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Buttons, as in the app: accent when primary, card-colored otherwise. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font: 600 16px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
}
.button:active { opacity: 0.8; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.small { min-height: 38px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }

.text-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 19px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img { height: 22px; width: auto; }

.site-header nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.site-header nav a:not(.button) { text-decoration: none; color: var(--muted); }
.site-header nav a:not(.button):hover { color: var(--ink); }

/* Hero */

.hero .wrap {
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 70px);
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -0.045em;
  max-width: 13em;
}

.hero .lead { font-size: 20px; line-height: 1.5; color: var(--muted); margin-top: 22px; max-width: 30em; }

.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 34px; }

.hero .fine { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* The demo video: the story of the problem and the fix, under the headline. */

.video {
  position: relative;
  margin: clamp(40px, 6vw, 72px) 0 0;
  border-radius: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  background: #0A5847;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px 8px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0A5847;
  font: 600 14px/1 var(--font);
  cursor: pointer;
}
.video-toggle svg { width: 18px; height: 18px; }

/* Sections */

.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 19px; color: var(--muted); margin-top: 16px; }

/* How it works: a real sequence, so numbered. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font: 600 15px/1 var(--display); color: var(--muted); margin-bottom: 18px; }
.steps p { color: var(--muted); margin-top: 8px; }
.option-note { margin-top: clamp(32px, 5vw, 48px); color: var(--muted); }

/* Documento and Multimedia, side by side as in the overlay. */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare article { border-radius: 34px; padding: clamp(26px, 4vw, 40px); background: var(--card); }
.compare article.document { background: var(--soft); color: var(--accent); }
.compare h3 { font-size: 27px; letter-spacing: -0.03em; }
.compare .tagline { margin-top: 6px; font-size: 16px; color: var(--muted); }
.compare .document .tagline { color: var(--accent); }
.compare ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { position: relative; padding-left: 22px; }
.compare li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.compare .best { margin-top: 26px; padding-top: 18px; border-top: 1px solid currentColor; opacity: 0.85; font-size: 15px; }
.compare .media .best { border-top-color: var(--line); color: var(--muted); opacity: 1; }

/* Trust: rows divided by hairlines, like the app's welcome window. */
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 80px); }
.facts-grid > div { padding: 24px 0; border-top: 1px solid var(--line); }
.facts-grid p { color: var(--muted); margin-top: 6px; }

/* Price */
.price-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--card);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
}
.launch { display: inline-block; margin-bottom: 14px; padding: 6px 14px 7px; border-radius: 999px; background: var(--soft); color: var(--accent); font-size: 15px; font-weight: 600; }
.amount { font: 680 clamp(64px, 9vw, 104px)/1 var(--display); letter-spacing: -0.05em; }
.amount small { font-size: 0.32em; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); margin-right: 6px; vertical-align: 0.95em; }
.price-card .once { margin-top: 14px; font-size: 19px; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.price-card li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.price-card li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.price-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.price-card .button:not(.primary) { background: var(--background); }

/* FAQ */
.faq { max-width: 46em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font: 600 19px/1.35 var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 40em; }
.faq details p + p { margin-top: -10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .legal { grid-column: 1 / -1; font-size: 13px; }

/* Legal pages */
.doc { padding-top: clamp(24px, 5vw, 56px); padding-bottom: 96px; }
.doc > * { max-width: 44em; }
.doc .actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.doc .key-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 28px; padding: 18px 20px; border-radius: 16px; background: var(--card); }
.doc .key-box code { font: 600 17px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; word-break: break-all; }
.doc .key-box .button { background: var(--background); }
.doc .muted { margin-top: 28px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; font-weight: 680; letter-spacing: -0.04em; }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin-top: 44px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }

/* Guides: long reading pages with the same tokens. */
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.doc .crumbs + h1 { margin-top: 18px; }
.doc .lead { font-size: 20px; line-height: 1.5; color: var(--muted); margin-top: 18px; }
.doc h3 { margin-top: 28px; }
.doc ol { padding-left: 1.3em; margin-top: 14px; }
.doc ol li + li { margin-top: 8px; }
.summary { margin-top: 32px; padding: 22px 24px; border-radius: 18px; background: var(--soft); color: var(--accent); }
.summary p { margin: 0; }
.summary strong { display: block; margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc figure { margin: 28px 0 0; }
.doc figure > a { display: block; border-radius: 18px; overflow: hidden; }
.doc figure img { width: 100%; height: auto; }
.doc figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cta-box { margin-top: 48px; padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--card); }
.cta-box h2 { margin-top: 0; }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; }
.guide-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { font: 600 21px/1.3 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin-top: 6px; color: var(--muted); }

@media (max-width: 900px) {
  .steps, .compare, .facts-grid, .price-card { grid-template-columns: 1fr; }
  .site-header nav a:not(.button) { display: none; }
}

@media (max-width: 600px) {
  .video { aspect-ratio: 4 / 5; }
  .video-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .video-toggle { right: 12px; bottom: 12px; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero .lead { font-size: 18px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}
