/* ANKYLO static landing — tokens aligned with lib/design/tokens.dart */
:root {
  --neutral0: #ffffff;
  --neutral25: #fafbff;
  --neutral50: #f6f7fb;
  --neutral100: #eef1f7;
  --neutral200: #e6eaf2;
  --neutral600: #66708a;
  --neutral700: #475066;
  --neutral900: #141827;
  --brand: #0a3e87;
  --brand-hover: #0d4a9e;
  --text-on-brand: #ffffff;
  --surface-muted: #eef1f7;
  --chart2: #10b981;
  --chart3: #a78bfa;
  --selected-bg: rgba(10, 62, 135, 0.1);
  --appbar-max: 1280px;
  --content-max: 1080px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --bp-wide: 900px;
  /* Horizontal inset: match content column with footer on all pages */
  --page-gutter: 16px;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue",
    "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  /* Top bar “ANKYLO” only — matches lib/design/global_top_bar.dart (GoogleFonts.monda w700) */
  --font-brand: "Monda", var(--font-sans);
}

@media (min-width: 600px) {
  :root {
    --page-gutter: 24px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Sticky app bar: in-page anchors (#record-title, #section-features, …) */
  scroll-padding-top: 72px;
}

.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;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--neutral900);
  background: var(--neutral50);
}

button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Top bar (AppTopBar + GlobalTopBar, web guest) —— */
.seo-appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--neutral0);
  border-bottom: 1px solid var(--neutral200);
}

.seo-appbar__inner {
  max-width: var(--appbar-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-appbar__left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.seo-appbar__left::-webkit-scrollbar {
  display: none;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.seo-brand:hover {
  background: rgba(10, 62, 135, 0.06);
}
.seo-brand img {
  height: 32px;
  width: auto;
  display: block;
}
.seo-brand__text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.seo-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 32px;
  flex-shrink: 0;
}

.seo-nav__link {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral700);
  white-space: nowrap;
}
.seo-nav__link:hover {
  color: var(--neutral900);
  background: rgba(10, 62, 135, 0.06);
}

.seo-appbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.seo-auth {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral700);
  padding: 4px 8px;
  border-radius: 6px;
}
.seo-auth:hover {
  background: rgba(10, 62, 135, 0.06);
}

.seo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-muted);
  color: var(--neutral700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.seo-avatar:hover {
  background: var(--neutral200);
}
.seo-avatar svg {
  width: 20px;
  height: 20px;
}

/* —— Page frame —— */
.seo-frame {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.seo-bg-page {
  background: var(--neutral50);
}

/* —— Hero —— */
.seo-hero {
  background: linear-gradient(
    135deg,
    var(--neutral50) 0%,
    rgba(250, 251, 255, 0.8) 100%
  );
}

.seo-hero__inner {
  padding: 78px 0;
  text-align: center;
}

.seo-hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  white-space: pre-line;
}

.seo-hero__sub {
  margin: 18px auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--neutral700);
}

.seo-badges {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.seo-badge {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(238, 241, 247, 0.75);
  border: 1px solid rgba(230, 234, 242, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neutral700);
}

.seo-hero__cta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.seo-btn-primary {
  display: inline-block;
  padding: 9px 18px;
  background: var(--brand);
  color: var(--text-on-brand);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.seo-btn-primary:hover {
  background: var(--brand-hover);
}

.seo-btn-outline {
  display: inline-block;
  padding: 9px 16px;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 14px;
  border: 1px solid var(--neutral200);
  cursor: pointer;
  font-family: inherit;
}
.seo-btn-outline:hover {
  background: rgba(10, 62, 135, 0.06);
}

.seo-section-gap {
  height: 72px;
}

.seo-section-gap-sm {
  height: 24px;
}

/* —— Section titles —— */
.seo-section-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.seo-section-sub {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--neutral700);
}

/* —— Record section —— */
.seo-record__grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .seo-record__grid {
    grid-template-columns: 6fr 5fr;
  }
}

.seo-copycards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-card {
  background: var(--neutral0);
  border: 1px solid rgba(230, 234, 242, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.seo-card--row {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(10, 62, 135, 0.1);
  border: 1px solid rgba(10, 62, 135, 0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.seo-card__icon--accent2 {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--chart2);
}

.seo-card__icon--accent3 {
  background: rgba(167, 139, 250, 0.11);
  border-color: rgba(167, 139, 250, 0.2);
  color: var(--chart3);
}

.seo-card__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.seo-card__title {
  margin: 0;
  letter-spacing: -0.01em;
}

/* Record + dashboard feature cards: lighter than section titles, slightly larger body */
.seo-copycards .seo-card__title,
.seo-feature .seo-card__title {
  font-size: clamp(1.0625rem, 2.15vw, 1.125rem);
  font-weight: 600;
  max-width: 100%;
}

.seo-card__body {
  margin: 6px 0 0;
  color: var(--neutral700);
  line-height: 1.45;
}

.seo-img-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 234, 242, 0.7);
  padding: 6px;
  background: var(--neutral0);
}

/* Record section: cap hero screenshot width on narrow viewports */
.seo-record__grid > .seo-img-frame {
  width: 100%;
  max-width: min(100%, 420px);
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

@media (min-width: 900px) {
  .seo-record__grid > .seo-img-frame {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-self: stretch;
  }
}

.seo-img-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
}

/* —— Dashboard feature cards —— */
.seo-features {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .seo-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.seo-feature {
  padding: 18px;
}

.seo-feature__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seo-feature__head .seo-card__title {
  line-height: 1.25;
}

.seo-feature__mock {
  margin-top: 14px;
  text-align: center;
}

.seo-feature__mock img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* —— Final CTA —— */
.seo-final-cta {
  text-align: center;
}

.seo-final-cta .seo-btn-primary {
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
}

/* —— Contact —— */
.seo-contact-card {
  padding: 18px;
}

.seo-contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.seo-contact__email {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

/* —— Footer —— */
.seo-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--neutral200);
  margin-top: 0;
}

.seo-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px var(--page-gutter) 14px;
}

.seo-footer__brand {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.seo-footer__links {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
}

.seo-footer__links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-footer__muted {
  color: var(--neutral700);
}

.seo-footer__copy {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--neutral600);
}

.seo-footer__mailto {
  margin-top: 2px;
  display: inline-block;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}

/* —— Legal / notice document body (flutter_html-like prose) —— */
.seo-doc {
  /* Only vertical — do not use padding shorthand here: it would reset horizontal
     padding to 0 and override .seo-frame’s --page-gutter (footer alignment). */
  padding-top: 24px;
  padding-bottom: 48px;
  box-sizing: border-box;
}

.seo-doc__header {
  margin-bottom: 20px;
}

.seo-doc__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.seo-doc__meta {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--neutral600);
}

.seo-doc__prose {
  max-width: 720px;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--neutral900);
}

.seo-doc__prose h1 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 1.25em 0 0.5em;
}
.seo-doc__prose h2 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 1.2em 0 0.45em;
}
.seo-doc__prose h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1em 0 0.35em;
}
.seo-doc__prose p {
  margin: 0.65em 0;
}
/* Lists: markers inside flow — aligns with landing/footer text column */
.seo-doc__prose ul,
.seo-doc__prose ol {
  margin: 0.5em 0;
  list-style-position: inside;
  padding-left: 0;
}
.seo-doc__prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seo-doc__prose hr {
  border: none;
  border-top: 1px solid var(--neutral200);
  margin: 1.5em 0;
}

.seo-notice-lead {
  margin: 0.5em 0 0;
  color: var(--neutral700);
  max-width: 40rem;
}
