/* ── Variables ── */
:root {
  --text: #1a1a2e;
  --text-sec: #4a4a5a;
  --text-muted: #7a7a8a;
  --card: rgba(255, 255, 255, 0.55);
  --card-solid: #fff;
  --card-border: rgba(255, 255, 255, 0.65);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.1);
  --btn: #1a2332;
  --r: 20px;
  --r-sm: 14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: #f5ebe0;
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Background ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255, 253, 250, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(237, 216, 194, 0.4) 0%, transparent 55%),
    linear-gradient(175deg, #fefcf8 0%, #f5ebe0 50%, #edd8c2 100%);
}

/* ── Layout ── */
.shell {
  width: min(1080px, 90vw);
  margin: 0 auto;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(254, 252, 248, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-sec);
}

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

.nav-dl {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: var(--text) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 56px 0 20px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-sub {
  margin: 14px 0 20px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-sec);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  color: var(--text-sec);
}

.stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.sep { opacity: 0.4; }

.hero-note {
  margin: 10px 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── App Store Button ── */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--btn);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 22px;
  box-shadow: 0 8px 28px rgba(26, 35, 50, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26, 35, 50, 0.38);
}

.store-btn svg {
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  opacity: 0.88;
  line-height: 1;
}

.store-btn strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ── Hero Phone ── */
.hero-phone {
  margin: 36px auto 0;
  width: min(300px, 72vw);
  filter: drop-shadow(0 32px 48px rgba(26, 20, 10, 0.22));
}

.hero-phone img {
  border-radius: 32px;
}

/* ── Features ── */
.features {
  padding: 48px 0 36px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.feat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}

.feat-icon.blue  { background: #dbeafe; color: #1d4ed8; }
.feat-icon.amber { background: #fef3c7; color: #d97706; }
.feat-icon.green { background: #d1fae5; color: #059669; }
.feat-icon.rose  { background: #fce7f3; color: #db2777; }

.feat h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feat p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Gallery ── */
.gallery {
  padding: 20px 0 36px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar { display: none; }

.gallery-track {
  display: flex;
  gap: 14px;
  padding: 12px max(5vw, calc((100vw - 1080px) / 2));
}

.gallery-track img {
  width: 200px;
  flex-shrink: 0;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.gallery-track img:hover {
  transform: scale(1.03);
}

/* ── Types (Professional / Documents) ── */
.types {
  padding: 40px 0 20px;
}

.type-group {
  margin-bottom: 48px;
}

.type-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.type-head.small {
  margin-bottom: 8px;
}

.type-emoji {
  font-size: 1.3rem;
}

.type-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.type-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.type-grid {
  display: grid;
  gap: 14px;
}

.type-grid.four {
  grid-template-columns: repeat(2, 1fr);
}

.type-grid.three {
  grid-template-columns: repeat(2, 1fr);
}

.type-card {
  background: var(--card-solid);
  border-radius: var(--r);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.ticon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
}

.ticon.blue   { background: #dbeafe; color: #1d4ed8; }
.ticon.green  { background: #d1fae5; color: #065f46; }
.ticon.amber  { background: #fef3c7; color: #b45309; }
.ticon.rose   { background: #fce7f3; color: #be185d; }
.ticon.red    { background: #fee2e2; color: #dc2626; }
.ticon.purple { background: #ede9fe; color: #7c3aed; }

.linkedin-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.06em;
}

.ticon-img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
}

.type-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.type-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Sizes ── */
.sizes {
  margin-bottom: 32px;
}

.sizes-sub {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.size-chip {
  background: var(--card-solid);
  border-radius: var(--r-sm);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.size-chip strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.size-chip span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Compliance ── */
.compliance {
  background: rgba(200, 225, 195, 0.3);
  border: 1px solid rgba(180, 210, 175, 0.4);
  border-radius: var(--r);
  padding: 24px 28px;
  margin-top: 8px;
}

.compliance-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.compliance-head strong {
  font-size: 1rem;
  color: var(--text);
}

.compliance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compliance-list li {
  padding: 3px 0;
  font-size: 0.95rem;
  color: var(--text-sec);
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 64px 0 32px;
}

.cta h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 24px 0 52px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.footer-brand img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-links {
  display: inline-flex;
  gap: 24px;
  margin-bottom: 18px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-sec);
}

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-sec);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .type-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .sizes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-track img {
    width: 240px;
  }
}

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

  .gallery-track img {
    width: 260px;
  }
}

@media (max-width: 639px) {
  .hero {
    padding-top: 36px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .nav-dl {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feat {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 16px;
    text-align: left;
    padding: 18px 20px;
  }

  .feat-icon {
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
    flex-shrink: 0;
  }

  .feat h3 {
    font-size: 1rem;
    align-self: end;
  }

  .feat p {
    align-self: start;
  }

  .type-grid.four,
  .type-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-track img {
    width: 180px;
    border-radius: 20px;
  }

  .footer-brand {
    font-size: 1.3rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-social {
    gap: 8px;
  }

  .pill {
    font-size: 0.85rem;
    padding: 7px 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@supports (padding: max(0px)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ── Legal Pages ── */
.legal-page .header {
  background: rgba(254, 252, 248, 0.85);
}

.nav a.active {
  font-weight: 650;
  color: var(--text);
}

.legal-main {
  min-height: 70vh;
  padding: 64px 0 40px;
}

.legal-card {
  width: min(900px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 32px 34px 40px;
  box-shadow: 0 16px 40px rgba(15, 24, 38, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-sec);
  text-decoration: none;
  margin-bottom: 12px;
}

.legal-title {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-toc {
  margin: 18px 0 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 20px rgba(15, 24, 38, 0.06);
}

.legal-toc h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.legal-toc ul {
  margin: 0;
  padding-left: 20px;
}

.legal-toc a {
  text-decoration: none;
  color: var(--text-sec);
}

.legal-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-sec);
}

.legal-content h1,
.legal-content h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  color: var(--text);
  position: relative;
}

.legal-content h1.legal-inline-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 18px 18px;
  padding: 0 0 0 8px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-sep {
  border: none;
  height: 1px;
  background: rgba(20, 28, 36, 0.1);
  margin: 28px 0 14px;
}

.anchor-link {
  margin-left: 10px;
  font-size: 0.9rem;
  color: rgba(22, 27, 34, 0.4);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.legal-content h2:hover .anchor-link {
  opacity: 1;
}

.anchor-link.copied {
  color: rgba(22, 27, 34, 0.8);
}

@media (max-width: 639px) {
  .legal-main {
    padding-top: 32px;
  }

  .legal-card {
    padding: 24px 20px 32px;
  }

  .anchor-link {
    opacity: 1;
  }
}
