/* ==========================================================================
   Web & Automation — simple, minimal one-pager
   ========================================================================== */

:root {
  --text: #1d1d1f;
  --muted: #515154;   /* darker gray for easier reading (about 8:1 on white) */
  --soft: #6e6e73;
  --alt: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.022em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(0,113,227,.6); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: #fff; color: var(--text); padding: 10px 16px; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Korean: keep words whole when wrapping, and loosen the tight Latin tracking */
:lang(ko) body, html:lang(ko) { word-break: keep-all; }
html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -0.02em; line-height: 1.12; }
html:lang(ko) body { letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; text-align: center; }

/* --- Buttons & links --- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 17px; text-decoration: none;
  transition: background-color .2s ease;
}
.pill:hover { background: var(--blue-hover); }
.pill-sm { min-height: 32px; padding: 6px 14px; font-size: 14px; }
.more { color: var(--link); text-decoration: none; }
.more::after { content: "\00a0\203A"; }
.more:hover { text-decoration: underline; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; }
.brand { color: var(--text); text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; }
.lang button {
  min-height: 32px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--muted);
}
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { color: var(--text); font-weight: 600; }
.lang button:hover { color: var(--text); }

/* --- Hero: client sites drifting slowly behind the headline --- */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(620px, calc(100svh - var(--nav-h)), 900px); padding: 96px 0;
}
.hero-content { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.track { display: flex; width: max-content; animation: drift 120s linear infinite; will-change: transform; }
.row:nth-child(2) .track { animation-duration: 140s; animation-direction: reverse; }
.row:nth-child(3) .track { animation-duration: 130s; }
.hero.paused .track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }

.shot {
  flex: none; width: 440px; aspect-ratio: 16 / 10; margin-right: 22px; overflow: hidden;
  border-radius: 14px; background: var(--alt);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 24px 48px -28px rgba(0,0,0,.35);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 56% 58% at 50% 50%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 56%, rgba(255,255,255,.78) 78%, rgba(255,255,255,.35) 100%),
    linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 16%, rgba(255,255,255,0) 84%, #fff 100%);
}
.hero .sub { color: #3a3a3c; }

/* Scroll hint: a mouse whose wheel rolls down slowly */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500;
}
.mouse { position: relative; width: 26px; height: 40px; border: 2px solid currentColor; border-radius: 14px; opacity: .75; transition: opacity .2s ease; }
.mouse::before {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: currentColor; animation: wheel 2.4s var(--ease) infinite;
}
.scroll-cue:hover .mouse { opacity: 1; }
@keyframes wheel {
  0% { opacity: 0; transform: translateY(-2px); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translateY(11px); }
  100% { opacity: 0; transform: translateY(13px); }
}

.hero h1 { font-size: clamp(48px, 8.2vw, 96px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.soft { color: var(--soft); }
.sub { text-wrap: balance; max-width: 600px; margin: 22px auto 0; font-size: 21px; line-height: 1.38; color: var(--muted); letter-spacing: -0.01em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; margin-top: 34px; }
.ctas .more { font-size: 19px; }

/* --- Sections --- */
.section { padding: 120px 0; }
.alt { background: var(--alt); }
.section h2 { font-size: clamp(40px, 5.8vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }

/* --- Pricing --- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 56px auto 0; }
.plan { display: flex; flex-direction: column; justify-content: center; background: #fff; border-radius: 18px; padding: 40px 28px; }
.num { font-variant-numeric: tabular-nums; }
.price .num { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }
.deal-badge {
  align-self: center; margin-bottom: 10px; padding: 4px 12px; border-radius: 980px;
  background: #e8f1fd; color: var(--link); font-size: 14px; font-weight: 600;
}
.was {
  margin-right: 10px; font-size: 30px; font-weight: 500; color: var(--soft); vertical-align: 0.35em;
  text-decoration-thickness: 2px;
}
.deal-note { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.plan-name { font-size: 21px; font-weight: 600; }
.price { margin-top: 10px; font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.price span { font-size: 21px; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }

.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 20px auto 0; }
.highlight { background: #fff; border-radius: 18px; padding: 36px 28px; }
.big { font-size: 80px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.hl-title { margin-top: 12px; font-size: 21px; font-weight: 600; line-height: 1.24; letter-spacing: -0.02em; }
.hl-note { margin-top: 8px; font-size: 16px; line-height: 1.45; color: var(--muted); }

/* Pause / play for the moving backgrounds (WCAG 2.2.2) */
.motion-toggle {
  position: absolute; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(29,29,31,.08); cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s ease;
}
.motion-toggle:hover { background: rgba(29,29,31,.14); }
.motion-toggle::before {           /* pause icon: two bars */
  content: ""; width: 10px; height: 12px;
  background: linear-gradient(to right, var(--text) 0 3px, transparent 3px 7px, var(--text) 7px 10px);
}
.motion-toggle[aria-pressed="true"]::before {   /* play icon: triangle */
  width: 0; height: 0; margin-left: 3px; background: none;
  border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--text);
}
.hero-toggle { right: 24px; bottom: 24px; }
.logos-wrap { display: flex; align-items: center; gap: 12px; margin: 36px 0 28px; }
.logos-wrap .logos { flex: 1; min-width: 0; margin: 0; }
.logos-toggle { position: static; flex: none; }
.motion-paused .track, .motion-paused .logo-track, .motion-paused .mouse::before { animation-play-state: paused; }

.addons { max-width: 760px; margin: 96px auto 0; }
.addons h3 { font-size: 28px; }
.addons-lead { margin-top: 10px; font-size: 21px; color: var(--muted); letter-spacing: -0.01em; }

.logos {
  position: relative; overflow: hidden; margin: 36px 0 28px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.logo-track { display: flex; align-items: center; width: max-content; animation: drift 48s linear infinite; }
.logo-track img { flex: none; width: auto; margin-right: 64px; filter: grayscale(1) brightness(0); opacity: .72; }
.logo-toast { height: 26px; }
.logo-doordash { height: 17px; }
.logo-ubereats { height: 22px; }
.logo-grubhub { height: 24px; }

.addons ul { text-align: left; border-bottom: 1px solid var(--line); }
.addons li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.addons li strong { display: block; font-weight: 600; }
.addons li span { display: block; margin-top: 2px; font-size: 16px; color: var(--muted); }
.addons li p { flex: none; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.addons li p span { display: inline; margin: 0; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; }
.note { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* --- Work --- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card { display: flex; flex-direction: column; align-items: center; background: var(--alt); border-radius: 28px; padding: 40px 28px 0; overflow: hidden; }
.card-kind { font-size: 15px; color: var(--muted); }
.card h3 { margin-top: 6px; font-size: 24px; line-height: 1.17; }
.card .more { margin-top: 8px; font-size: 17px; }
.device { width: 72%; max-width: 230px; margin-top: auto; padding-top: 36px; aspect-ratio: 390 / 560; }
.device img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border: 7px solid #1d1d1f; border-bottom: 0; border-radius: 34px 34px 0 0;
}

/* --- Footer --- */
.footer { padding: 24px 0 32px; font-size: 14px; color: var(--muted); }

/* --- Slow reveal on scroll (only when JS is on) --- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform 1.3s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .track, .logo-track, .mouse::before { animation: none; }
  .motion-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .hero { min-height: 600px; padding: 72px 0; }
  .hero-bg { gap: 14px; }
  .shot { width: 250px; margin-right: 14px; border-radius: 10px; }
  .hero-scrim {
    background:
      radial-gradient(ellipse 85% 52% at 50% 50%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 62%, rgba(255,255,255,.75) 85%, rgba(255,255,255,.35) 100%),
      linear-gradient(to bottom, #fff 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 86%, #fff 100%);
  }
  .sub { font-size: 19px; }
  .section { padding: 88px 0; }
  .plans { gap: 12px; }
  .plan { padding: 28px 16px; }
  .plan-name { font-size: 17px; }
  .price { font-size: 40px; }
  .price span { font-size: 17px; }
  .was { display: block; margin: 0 0 4px; font-size: 20px; vertical-align: baseline; }
  .deal-note { font-size: 15px; }
  .nav-inner { padding: 0 16px; }
  .brand { font-size: 17px; }
  .nav-right { gap: 8px; }
  .lang button { padding: 0 6px; font-size: 13px; }
  .pill-sm { padding: 6px 12px; font-size: 13px; }
  .scroll-cue { bottom: 18px; }
  .highlights { grid-template-columns: 1fr; gap: 12px; }
  .highlight { padding: 28px 22px; }
  .big { font-size: 64px; }
  .hero-toggle { right: 16px; bottom: 16px; }
  .addons { margin-top: 72px; }
  .addons-lead { font-size: 19px; }
  .logo-track img { margin-right: 44px; }
  .addons li { flex-direction: column; align-items: flex-start; gap: 6px; }
}
