@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --lat-paper: #fdf8f2;
  --lat-ink: #1f1a2e;
  --lat-muted: #6b6478;
  --lat-rose: #ff4778;
  --lat-blue: #3d8bff;
  --lat-gold: #ffc857;
  --lat-lilac: #c9b8ff;
  --lat-teal: #2ec4b6;
  --lat-card: rgba(255, 255, 255, 0.82);
  --lat-line: rgba(31, 26, 46, 0.08);
  --lat-shadow: 0 18px 48px rgba(46, 41, 78, 0.1);
  --lat-radius: 22px;
  --lat-header-h: 68px;
  --lat-dl-h: 0px;
  --lat-max: 1160px;
  font-family: "Noto Serif SC", "Outfit", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--lat-paper);
  color: var(--lat-ink);
  line-height: 1.82;
  font-size: 16px;
  overflow-x: hidden;
}

body.lat-dl-pad {
  padding-top: var(--lat-dl-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--lat-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lat-rose);
}

h1, h2, h3, h4 {
  line-height: 1.38;
  margin: 0 0 0.7em;
  font-family: "Outfit", "Noto Serif SC", sans-serif;
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.lat-wrap {
  width: min(var(--lat-max), 92vw);
  margin: 0 auto;
}

/* Top download strip */
.lat-dl-top {
  background: linear-gradient(105deg, #fff5eb 0%, #ffe8f0 45%, #eef4ff 100%);
  border-bottom: 1px solid var(--lat-line);
  padding: 12px 0 10px;
}

.lat-dl-top-head {
  text-align: center;
  font-size: 0.86rem;
  color: var(--lat-muted);
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
}

#ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  max-width: 680px;
  margin: 0 auto;
  min-height: 76px;
}

.lat-ad-cell {
  width: 70px;
  text-align: center;
}

.lat-ad-cell figure {
  margin: 0;
}

.lat-ad-cell img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(31, 26, 46, 0.12);
  object-fit: cover;
}

.lat-ad-cell figcaption {
  font-size: 11px;
  color: var(--lat-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Outfit", sans-serif;
}

/* Header */
.lat-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lat-line);
  height: var(--lat-header-h);
}

.lat-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.lat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lat-ink);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.lat-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.lat-nav-toggle {
  display: none;
  border: 1px solid var(--lat-line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
}

.lat-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px 20px;
  flex-wrap: wrap;
}

.lat-nav-panel a {
  color: var(--lat-muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.lat-nav-panel a:hover,
.lat-nav-panel a[aria-current="page"] {
  color: var(--lat-rose);
  border-bottom-color: var(--lat-rose);
}

/* Sticky download bar */
#lat-dl-bar {
  position: fixed;
  top: var(--lat-header-h);
  left: 0;
  right: 0;
  z-index: 190;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lat-line);
  padding: 8px 12px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#lat-dl-bar.lat-dl-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#lat-dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
}

.lat-dl-cell {
  width: calc(12.5% - 8px);
  min-width: 72px;
  text-align: center;
}

.lat-dl-cell a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--lat-muted);
  font-size: 10px;
  font-family: "Outfit", sans-serif;
}

.lat-dl-cell img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(31, 26, 46, 0.1);
}

@media (max-width: 768px) {
  .lat-dl-cell {
    width: calc(25% - 8px);
  }
}

/* Hero */
.lat-hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255, 200, 87, 0.25), transparent),
    radial-gradient(ellipse 70% 50% at 5% 80%, rgba(61, 139, 255, 0.15), transparent),
    var(--lat-paper);
}

.lat-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.lat-hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--lat-rose), var(--lat-gold));
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.lat-hero-lead {
  font-size: 1.05rem;
  color: var(--lat-muted);
}

.lat-hero-visual {
  position: relative;
}

.lat-hero-visual::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--lat-lilac), var(--lat-teal));
  border-radius: 28px;
  opacity: 0.35;
  transform: rotate(-3deg);
}

.lat-hero-frame {
  position: relative;
  border-radius: var(--lat-radius);
  overflow: hidden;
  box-shadow: var(--lat-shadow);
  border: 3px solid #fff;
}

/* Sections */
.lat-section {
  padding: 56px 0;
}

.lat-section-wave {
  background: linear-gradient(180deg, #fff 0%, var(--lat-paper) 100%);
}

.lat-section-tint {
  background: linear-gradient(135deg, rgba(201, 184, 255, 0.12), rgba(46, 196, 182, 0.08));
}

.lat-section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.lat-section-head p {
  color: var(--lat-muted);
  font-size: 1.02rem;
}

/* Ribbon label */
.lat-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lat-rose);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.lat-ribbon::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--lat-rose);
  border-radius: 2px;
}

/* Split layout */
.lat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.lat-split-reverse {
  direction: rtl;
}

.lat-split-reverse > * {
  direction: ltr;
}

/* Cards */
.lat-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lat-card {
  background: var(--lat-card);
  border: 1px solid var(--lat-line);
  border-radius: var(--lat-radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(31, 26, 46, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lat-shadow);
}

.lat-card h3 {
  color: var(--lat-ink);
  font-size: 1.08rem;
}

.lat-card p:last-child {
  margin-bottom: 0;
  color: var(--lat-muted);
  font-size: 0.95rem;
}

.lat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--lat-lilac), var(--lat-blue));
  color: #fff;
}

/* Bento */
.lat-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.lat-bento-wide {
  grid-column: span 2;
}

.lat-bento-tall {
  grid-row: span 2;
}

.lat-bento-item {
  background: #fff;
  border-radius: var(--lat-radius);
  padding: 22px;
  border: 1px solid var(--lat-line);
}

.lat-bento-item img {
  border-radius: 14px;
  margin-top: 12px;
}

/* Timeline */
.lat-timeline {
  position: relative;
  padding-left: 32px;
}

.lat-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--lat-rose), var(--lat-blue));
  border-radius: 2px;
}

.lat-timeline-step {
  position: relative;
  margin-bottom: 28px;
}

.lat-timeline-step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lat-rose);
  border: 3px solid var(--lat-paper);
  box-shadow: 0 0 0 2px var(--lat-rose);
}

.lat-timeline-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

/* Pull quote */
.lat-pullquote {
  border-left: 4px solid var(--lat-gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(255, 200, 87, 0.1);
  border-radius: 0 14px 14px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--lat-ink);
}

/* FAQ */
.lat-faq-list {
  display: grid;
  gap: 14px;
}

.lat-faq-item {
  background: #fff;
  border: 1px solid var(--lat-line);
  border-radius: 16px;
  padding: 20px 24px;
}

.lat-faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5em;
  color: var(--lat-rose);
}

.lat-faq-item p {
  margin: 0;
  color: var(--lat-muted);
  font-size: 0.95rem;
}

/* Figure */
.lat-figure {
  margin: 0;
  border-radius: var(--lat-radius);
  overflow: hidden;
  box-shadow: var(--lat-shadow);
}

.lat-figure figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--lat-muted);
  background: #fff;
  font-family: "Outfit", sans-serif;
}

/* CTA strip */
.lat-cta {
  text-align: center;
  padding: 40px 28px;
  background: linear-gradient(120deg, #2e294e, #4a3f7a);
  border-radius: var(--lat-radius);
  color: #fff;
}

.lat-cta h2 {
  color: #fff;
}

.lat-cta p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 20px;
}

.lat-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--lat-rose), var(--lat-gold));
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 71, 120, 0.35);
  transition: transform 0.2s ease;
}

.lat-btn:hover {
  color: #fff;
  transform: scale(1.04);
}

/* Breadcrumb */
.lat-crumb {
  padding: 14px 0;
  font-size: 0.86rem;
  font-family: "Outfit", sans-serif;
  color: var(--lat-muted);
}

.lat-crumb a {
  color: var(--lat-muted);
}

.lat-crumb span {
  margin: 0 6px;
}

/* Legal pages */
.lat-legal {
  padding: 32px 0 64px;
}

.lat-legal h1 {
  margin-bottom: 0.5em;
}

.lat-legal h2 {
  margin-top: 2em;
  font-size: 1.25rem;
  color: var(--lat-ink);
}

.lat-legal h3 {
  margin-top: 1.4em;
  font-size: 1.05rem;
}

.lat-legal p,
.lat-legal li {
  color: var(--lat-muted);
}

.lat-legal ul {
  margin-bottom: 1.2em;
}

/* Footer */
.lat-footer {
  background: #1f1a2e;
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.lat-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.lat-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.lat-footer h4 {
  color: #fff;
  font-family: "Outfit", sans-serif;
  margin-bottom: 14px;
}

.lat-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lat-footer li {
  margin-bottom: 8px;
}

.lat-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* Error pages */
.lat-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.lat-error h1 {
  font-size: 4rem;
  color: var(--lat-rose);
  margin-bottom: 0.2em;
}

/* DY page */
.lat-dy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: var(--lat-paper);
}

.lat-dy-page h1 {
  font-size: 1.6rem;
}

/* Reveal animation */
.lat-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lat-reveal.lat-inview {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .lat-hero-grid,
  .lat-split,
  .lat-card-grid {
    grid-template-columns: 1fr;
  }

  .lat-split-reverse {
    direction: ltr;
  }

  .lat-bento {
    grid-template-columns: 1fr 1fr;
  }

  .lat-bento-wide,
  .lat-bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lat-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lat-nav-toggle {
    display: block;
  }

  .lat-nav-panel {
    display: none;
    position: absolute;
    top: var(--lat-header-h);
    left: 0;
    right: 0;
    background: rgba(253, 248, 242, 0.98);
    border-bottom: 1px solid var(--lat-line);
    padding: 16px 20px;
  }

  .lat-nav-panel.lat-nav-open {
    display: block;
  }

  .lat-nav-panel ul {
    flex-direction: column;
    gap: 4px;
  }

  .lat-header {
    position: relative;
  }

  #lat-dl-bar {
    top: 0;
  }

  .lat-bento {
    grid-template-columns: 1fr;
  }

  .lat-section {
    padding: 40px 0;
  }
}
