/* SORRISO landing — same system as Expenser, emerald accent (matches the SORRISO web app: Tailwind emerald-700) */
:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-soft: #eef0f3;
  --ink: #1d1d1f;
  --ink-secondary: #6e6e73;
  --ink-tertiary: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #047857;
  --accent-soft: #ecfdf5;
  --accent-dark: #065f46;
  --watch-bg: #0c0c0e;
  --watch-ink: #f5f5f7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);
  --shadow-phone: 0 24px 80px rgba(0,0,0,0.18);
  --max: 1120px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: var(--cloudia-bar-h, 0px);
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 980px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 560;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover { background: #000; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.35rem;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.75rem;
}

.btn-ghost:hover { color: var(--accent-dark); }

.btn-apple-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  box-shadow: var(--shadow-soft), 0 10px 30px rgba(0,0,0,0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 auto 0.75rem;
  max-width: 38rem;
  color: var(--ink-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
}

.hero-free {
  margin: 0 auto 1rem;
  max-width: 36rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-promo {
  margin: 0 auto 2rem;
  max-width: 36rem;
  color: var(--ink-tertiary);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-tertiary);
  margin-right: 1.25rem;
  vertical-align: middle;
  opacity: 0.6;
}

.hero-meta span:first-child::before { display: none; }

.hero-banner {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.hero-banner img {
  width: 100%;
  aspect-ratio: 1920 / 1080;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header p {
  margin: 0;
  color: var(--ink-secondary);
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.feature-card.wide {
  grid-column: 1 / -1;
}

.feature-copy {
  padding: 1.5rem 1.5rem 1.25rem;
}

.feature-copy h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--ink-secondary);
  background: var(--bg-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 980px;
}

.feature-visual {
  padding: 0 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent, var(--bg-soft) 40%);
}

.phone-frame {
  width: min(100%, 280px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(0,0,0,0.08);
  background: #111;
}

.phone-frame img {
  width: 100%;
  display: block;
}

.feature-card.wide .feature-body {
  display: grid;
  gap: 0;
}

@media (min-width: 800px) {
  .feature-card.wide .feature-body {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .feature-card.wide .feature-visual {
    background: linear-gradient(90deg, transparent, var(--bg-soft));
    padding: 2rem;
    min-height: 100%;
  }
  .feature-card.wide .feature-copy {
    padding: 2.25rem;
  }
}

.mini-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .mini-grid { grid-template-columns: repeat(3, 1fr); }
}

.mini-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.mini-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mini-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.92rem;
}

.mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
}

/* Watch */
.watch-section {
  background: var(--watch-bg);
  color: var(--watch-ink);
  border-radius: 0;
  margin: 0;
}

.watch-section .section-kicker { color: #6ee7b7; }
.watch-section .section-header p { color: rgba(245,245,247,0.68); }

.watch-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .watch-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.watch-points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.watch-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.watch-points strong {
  display: block;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.watch-points span {
  color: rgba(245,245,247,0.65);
  font-size: 0.95rem;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.15);
}

.watch-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.watch-visual img {
  width: 100%;
  aspect-ratio: 896 / 1200;
  object-fit: cover;
}

/* Privacy trust */
.trust {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.trust-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.trust-item p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.privacy-link {
  display: inline-flex;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 560;
  font-size: 0.95rem;
}

.privacy-link:hover { color: var(--accent-dark); }

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink-tertiary);
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 4rem 0 5rem;
}

.final-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.final-cta p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--ink-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--ink-tertiary);
  font-size: 0.875rem;
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Legal pages */
.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal {
  max-width: 42rem;
}

.legal h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal h3 {
  margin: 1.35rem 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.legal p,
.legal li {
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.legal p {
  margin: 0 0 0.9rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.45rem;
}

.legal a {
  color: var(--accent);
  font-weight: 560;
}

.legal a:hover {
  color: var(--accent-dark);
}

.legal code {
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.legal-meta {
  color: var(--ink) !important;
  margin-bottom: 0.35rem !important;
}

.legal-note {
  margin: 1rem 0 1.5rem !important;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem !important;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--line);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
@media (max-width: 720px) {
  .lang-btn { padding: 0.3rem 0.4rem; font-size: 11px; }
}

/* Support form */
.support-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.1rem;
  max-width: 28rem;
}
.support-form .field {
  display: grid;
  gap: 0.35rem;
}
.support-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.support-form input,
.support-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.support-form input[aria-invalid="true"],
.support-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
}
.support-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.support-form .field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #c0392b;
}
.support-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm, 10px);
  font-size: 0.92rem;
}
.form-status--ok {
  background: #e8f8ef;
  color: #1a6b3c;
  border: 1px solid #b7e0c6;
}
.form-status--err {
  background: #fdecea;
  color: #8a1f17;
  border: 1px solid #f5c2c0;
}
.support-form .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.support-form select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 0.7rem 0.85rem;
}
.support-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.site-nav.bare .nav-inner {
  justify-content: flex-start;
}

.support-captcha {
  min-height: 92px;
}
.support-captcha-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
#turnstile-widget {
  min-height: 65px;
}

/* Changelog */
.changelog .release + .release {
  margin-top: 2.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.changelog .release h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}


/* ---- SORRISO additions ---- */
.tile-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  background: #fff;
}
.tile-frame img { width: 100%; height: auto; display: block; }
.feature-visual { padding-top: 0.25rem; }

.store-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}
.store-item > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; }
.store-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.store-item img { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; }
.store-item strong { font-size: 0.95rem; letter-spacing: -0.01em; }
.store-link { color: #6ee7b7; font-size: 0.85rem; font-weight: 600; }
.store-link:hover { color: #a7f3d0; }
.pill-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(245,245,247,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.15rem 0.55rem;
  border-radius: 980px;
}
[hidden] { display: none !important; }

.apps-visual {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 30%, rgba(110,231,183,0.18), transparent 60%), #141417;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}
.apps-icon {
  position: absolute;
  width: 34%;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.apps-icon-a { left: 12%; top: 14%; transform: rotate(-6deg); }
.apps-icon-b { right: 12%; top: 26%; transform: rotate(5deg); }
.apps-icon-c { left: 33%; bottom: 10%; width: 30%; }

.demo-section { background: var(--accent-soft); border-block: 1px solid var(--line); }
.demo-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .demo-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.demo-notes { margin: 1.25rem 0 0; padding-left: 1.1rem; color: var(--ink-secondary); font-size: 0.95rem; }
.demo-notes li { margin-bottom: 0.35rem; }
.demo-form {
  margin-top: 0;
  max-width: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.support-form .field-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.support-form .field-check input { width: 18px; height: 18px; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--accent); }
.support-form .field-check label { font-weight: 500; color: var(--ink-secondary); font-size: 0.9rem; }
.support-form .field-check a, .faq-item a { color: var(--accent); font-weight: 600; }
