/* nextbird.app landing. Brand values from brand-kit/design-tokens.css. No web fonts.
   Layout: one .wrap (1280 max, 80px gutters at 1440, 24 on a phone), 12 columns with 24px gaps,
   splits 6/6 (right column at x 732 on a 1440 screen), top-aligned; each section and the closing
   footer one screen tall (two on a phone where the content needs it), the fixed header over the hero. */
:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --card: #fffef9;
  --ink: #26392f;
  --muted: #5c6658;
  --rule: #d9dccf;
  --chestnut: #98492e;
  --action: #2b4839;
  --action-hover: #193b29;
  --band: #eef0e4;
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Batang", "Noto Serif CJK KR", Georgia, serif;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", system-ui, sans-serif;
  --gut: clamp(24px, 5.56vw, 80px);
  --gap: 24px;
  --nav: 72px;
  --pad-top: calc(var(--nav) + clamp(32px, 5vh, 48px));
  --pad-bottom: clamp(32px, 5vh, 48px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--nav); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 3px solid #ae532c; outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* Header: fixed over the top of the hero, on a solid ground */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav); background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-bar { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.skip { position: absolute; left: var(--gut); top: -100px; padding: 12px 16px; background: var(--card); border-radius: 10px; }
.skip:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; }
.nav nav { display: flex; align-items: center; gap: 8px; }
.nav nav > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 650; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 12px 78%; background-repeat: no-repeat; transition: background-size .25s ease; }
.nav nav > a:not(.btn):hover { background-size: calc(100% - 24px) 1.5px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 26px; border-radius: 100px; background: var(--action); color: #fffdf3; border: 1px solid var(--action); font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.btn:hover { background: var(--action-hover); transform: translateY(-2px); box-shadow: 0 6px 14px #193b2922; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #a7b29f; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 24px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--chestnut); }
.arrow { display: inline-block; }

/* Sections and the closing footer: one screen each (two on a phone where the content needs it) */
main > section, .closing { --h: 1; min-height: calc(var(--h) * 100svh); padding: var(--pad-top) 0 var(--pad-bottom); }
.band { background: var(--band); }
h2 { font: 800 clamp(30px, 3.2vw, 46px)/1.2 var(--serif); letter-spacing: -.05em; text-wrap: balance; }
.section-lead { margin-top: 12px; max-width: 46em; }

/* Hero: exactly the first screen, under the fixed header */
.hero { display: flex; align-items: center; height: 100svh; min-height: 600px; }
.hero-grid { align-items: start; row-gap: 24px; }
.hero-copy { grid-column: 1 / 7; }
.hero-art { grid-column: 7 / 13; border-radius: 28px; overflow: hidden; border: 1px solid #cbd1c1; box-shadow: 0 10px 30px #283b2a14; aspect-ratio: 3 / 2; background: #dbe2ca; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s ease; }
.hero-art:hover img { transform: scale(1.025); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--chestnut); }
h1 { margin-top: 16px; font: 800 clamp(36px, 5vw, 72px)/1.14 var(--serif); letter-spacing: -.06em; text-wrap: balance; }
.lead { margin-top: 20px; max-width: 30em; font-size: clamp(17px, 1.4vw, 19px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* The hero enters once on load (html.m-enter is set by the head line). */
@media (prefers-reduced-motion: no-preference) {
  .m-enter [data-enter] .hero-copy > *, .m-enter [data-enter] .hero-art { animation: enter .7s cubic-bezier(.2, .7, .2, 1) both; }
  .m-enter [data-enter] .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .m-enter [data-enter] .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .m-enter [data-enter] .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .m-enter [data-enter] .hero-art { animation-delay: .1s; }
  @keyframes enter { from { opacity: 0; transform: translateY(14px); } }
}

/* Preview cards (filled at build time from the real snapshot): 4 + 4 + 4 columns */
.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cards a { display: grid; grid-template-rows: auto 1fr; height: 100%; border: 1px solid #cbd1c1; border-radius: 20px; overflow: hidden; background: var(--card); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.cards a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #283b2a14; }
.cards img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.cards a:hover img { transform: scale(1.025); }
.cards span { display: grid; align-content: start; gap: 8px; padding: 20px 22px 24px; }
.cards strong { font: 800 22px/1.3 var(--serif); letter-spacing: -.04em; }
.cards small { color: var(--muted); font-size: 14px; }

/* How it works: steps on the left, the illustration on the right (6 / 6), then the four promises */
.how-grid { margin-top: 28px; align-items: start; row-gap: 24px; }
.steps { grid-column: 1 / 7; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; border-top: 1px solid #c9cfbd; padding-top: 14px; }
.num { grid-row: span 2; font: 600 15px/1.6 Georgia, serif; letter-spacing: .12em; color: var(--chestnut); }
.steps h3 { font: 800 21px/1.3 var(--serif); letter-spacing: -.04em; }
.steps p { margin-top: 4px; font-size: 16px; }
.how-art { grid-column: 7 / 13; border-radius: 24px; overflow: hidden; border: 1px solid #cbd1c1; aspect-ratio: 16 / 10; background: #cfdcdc; }
.how-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform .6s ease; }
.how-art:hover img { transform: scale(1.025); }
.promise-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.promise-list li { border-top: 2px solid var(--ink); padding-top: 12px; }
.promise-list h3 { font-size: 16px; font-weight: 800; }
.promise-list p { margin-top: 4px; font-size: 15px; }

/* Closing footer: the last call and the illustration (6 / 6), then sources and business details */
.closing { display: flex; flex-direction: column; gap: 40px; }
.close-grid { align-items: start; row-gap: 28px; }
.close-copy { grid-column: 1 / 7; }
.close-copy .section-lead { margin-top: 18px; }
.close-copy .btn { margin-top: 30px; }
.close-art { grid-column: 7 / 13; border-radius: 24px; overflow: hidden; border: 1px solid #cbd1c1; aspect-ratio: 16 / 10; background: #dfe6d3; }
.close-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform .6s ease; }
.close-art:hover img { transform: scale(1.025); }
.foot-grid { margin-top: auto; row-gap: 20px; padding-top: 24px; border-top: 1px solid #cfd5c3; font-size: 14px; }
.foot-sources { grid-column: 1 / 7; }
.foot-biz { grid-column: 7 / 13; }
.foot-brand { font: 800 20px/1.2 var(--serif); letter-spacing: -.04em; }
.foot-brand span { margin-left: 8px; font: 700 11px/1 Georgia, serif; letter-spacing: .2em; color: var(--muted); }
.foot-title { margin-top: 14px; font: 700 14px/1.4 var(--sans); }
.sources { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 2px; color: var(--muted); }
.sources a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.biz { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }

@media (max-width: 1023px) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; padding-top: calc(var(--nav) + 20px); padding-bottom: 24px; }
  .hero-copy, .hero-art, .steps, .how-art, .close-copy, .close-art, .foot-sources, .foot-biz { grid-column: 1 / -1; }
  .hero-art { aspect-ratio: 16 / 9; border-radius: 20px; }
  .cards { grid-template-columns: 1fr; }
  .preview, .how, .closing { --h: 2; }
}
@media (max-width: 560px) {
  :root { --gap: 12px; }
  .nav nav > a:not(.btn) { display: none; }
  .brand img { width: 124px; }
  .promise-list { grid-template-columns: 1fr; }
  .actions .btn, .close-copy .btn { width: 100%; }
  .actions { margin-top: 24px; }
  .lead { margin-top: 14px; }
  .cards img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
