/* SwipeSmile landing — static HTML for Cloudflare Pages */

:root {
  /* Slightly lifted dark UI — was very deep (#0c0f14) for better balance on long pages */
  --bg: #131922;
  --bg-elevated: #1c2330;
  --text: #e8ecf1;
  --muted: #9aa3b2;
  --accent: #3dd6c6;
  --accent-dim: rgba(61, 214, 198, 0.12);
  --border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(180deg, #171d28 0%, var(--bg) 45%, #10141c 100%),
    radial-gradient(ellipse 120% 80% at 50% -15%, rgba(61, 214, 198, 0.11), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 45%, rgba(99, 102, 241, 0.07), transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #5fe8d9;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: 6px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.wrap--gallery {
  min-width: 0;
  max-width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(19, 25, 34, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  border-radius: 22%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner .brand {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
    width: 100%;
  }

  .header-actions .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  margin-inline-end: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(25, 32, 44, 0.92);
}

.lang-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn--active {
  color: #062a26;
  background: var(--accent);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #062a26;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #5fe8d9;
  border-color: #5fe8d9;
  color: #062a26;
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

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

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #f0f4f8;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(28, 35, 48, 0.95) 100%
  );
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.store-btn:hover {
  border-color: rgba(95, 232, 217, 0.5);
  color: #fff;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(61, 214, 198, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.store-icon {
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(61, 214, 198, 0.35));
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-line {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(232, 236, 241, 0.8);
}

.store-name {
  font-size: 1rem;
  font-weight: 650;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.hero-glow {
  position: absolute;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 214, 198, 0.35) 0%, transparent 70%);
  filter: blur(8px);
}

.hero-logo {
  position: relative;
  border-radius: 24%;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Sections */

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 52ch;
}

.section-intro.tight {
  margin-bottom: 0;
}

.section-intro--tight {
  margin: 0 0 0.5rem;
}

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

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Merged “Built for you” + feature stack */

.section--product {
  padding-block: clamp(2rem, 4.5vw, 3rem);
}

/* No card / border “box” — clean typography + spacing only */
.product-panel {
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  max-width: 920px;
  margin-inline: auto;
}

.product-head h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.7rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

.product-lead {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 49ch;
  line-height: 1.5;
}

.product-kicker {
  margin: 0 0 1.35rem;
  color: rgba(154, 163, 178, 0.9);
  font-size: 0.96rem;
  max-width: 50ch;
  line-height: 1.5;
}

.product-pills {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .product-pills {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

.product-pills li {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.product-pills strong {
  color: var(--text);
  font-weight: 650;
}

.product-eyebrow {
  margin: 0 0 0.9rem;
}

.feature-grid--in-panel {
  gap: 0.6rem;
}

@media (min-width: 600px) {
  .feature-grid--in-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .feature-grid--in-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-panel .feature-card {
  padding: 0.8rem 0.95rem;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.product-panel .feature-card h3 {
  font-size: 0.88rem;
  line-height: 1.3;
  margin: 0 0 0.3rem;
}

.product-panel .feature-card p {
  font-size: 0.86rem;
  line-height: 1.4;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pill-list li {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.95rem;
  color: var(--muted);
}

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

.notice {
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(61, 214, 198, 0.25);
  background: var(--accent-dim);
}

.notice h2 {
  margin-bottom: 0.5rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots + auto-scrolling carousel */

.section--shots .section-intro {
  margin-bottom: 1rem;
}

/* Gallery under hero: pull closer to the hero, fewer empty pixels */
.section--gallery-first {
  padding: clamp(1.25rem, 3vw, 1.9rem) 0 clamp(2.25rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.shot-marquee {
  container-type: inline-size;
  container-name: shot-strip;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin-inline: 0;
  padding: 0.4rem 0 1.15rem;
}

.shot-marquee--scrollable {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  scrollbar-color: rgba(61, 214, 198, 0.4) transparent;
}

.shot-track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  gap: 1rem;
  will-change: transform;
  animation: shotMarqueeX var(--shot-sec, 48s) linear infinite;
  transform: translate3d(0, 0, 0);
}

.shot-track--static {
  animation: none;
}

@keyframes shotMarqueeX {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(0px - var(--shot-loop, 0px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-track {
    animation: none;
  }

  .shot-marquee:not(.shot-marquee--scrollable) {
    overflow-x: auto;
  }
}

.shot-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: stretch;
  gap: 1rem;
}

/* Slide width follows the marquee (same width as .wrap), not the viewport */
.shot {
  --shot-w: min(16rem, 38cqi);
  margin: 0;
  flex: 0 0 var(--shot-w);
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

@supports not (width: 1cqi) {
  .shot {
    --shot-w: min(16rem, 38vw);
  }
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Legal & support */

.legal p {
  color: var(--muted);
  max-width: 60ch;
}

.link-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.support {
  text-align: center;
  max-width: 520px;
}

.support p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.support .btn-primary {
  padding: 0.65rem 1.35rem;
}

/* Footer */

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

.footer-inner {
  text-align: center;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-weight: 650;
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-legal-links {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-legal-links a {
  color: var(--muted);
}

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

.footer-dot {
  margin: 0 0.35rem;
  opacity: 0.6;
}

/* 404 */

.not-found-main {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.not-found-doc {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.not-found-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.not-found-code {
  display: block;
  font-size: clamp(3.25rem, 12vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.14);
}

.not-found-heading-line {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.not-found-lead {
  margin-bottom: 1.75rem;
}

.not-found-actions {
  margin-bottom: 2.25rem;
}

.not-found-nav {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.not-found-nav-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.not-found-nav .link-list {
  margin: 0;
}

/* Legal pages */

.legal-main {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.legal-doc {
  max-width: 720px;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.legal-back a {
  color: var(--muted);
}

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

.legal-section h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal-section:first-of-type h2 {
  margin-top: 0;
}

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

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

.legal-section li + li {
  margin-top: 0.35rem;
}

/* SEO / article subpages (e.g. swipewipe-alternative) */

.seo-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-article-header .seo-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.seo-byline {
  margin-top: 0.35rem;
}

.seo-tldr {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  line-height: 1.55;
}

.seo-takeaways ul {
  margin-top: 0.5rem;
}

.seo-table-wrap {
  margin: 1rem 0 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.seo-table th,
.seo-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-table th {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-faq {
  margin: 0.75rem 0 0;
}

.seo-faq dt {
  margin: 1rem 0 0.35rem;
  font-weight: 600;
  color: var(--text);
}

.seo-faq dd {
  margin: 0;
  color: var(--muted);
}

.seo-faq dd + dt {
  margin-top: 1.15rem;
}

.seo-cta .store-row--article {
  margin-top: 1rem;
}

.seo-muted {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.seo-muted a:hover {
  color: var(--accent);
}
