/* TimeAttack Labs — site styles. System fonts only, no external requests.
   KO (/) and EN (/en/) are separate pages; no language toggling in CSS. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --link: #0066cc;
  --btn-bg: #1d1d1f;
  --btn-text: #ffffff;
  --header: rgba(255, 255, 255, 0.8);
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.22);
  --radius-shot: 22px;
  --container: 1120px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #2997ff;
    --link: #2997ff;
    --btn-bg: #f5f5f7;
    --btn-text: #1d1d1f;
    --header: rgba(0, 0, 0, 0.72);
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); text-wrap: balance; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-text); font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-link { color: var(--text-2); font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.lang-link:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--btn-bg); color: var(--btn-text); }
.btn-dark:hover { opacity: 0.86; }

/* ---------- Type ---------- */
h1 { font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.4rem); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.1vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; }
:lang(ko) h1 { line-height: 1.18; letter-spacing: -0.03em; }
:lang(ko) h2 { line-height: 1.22; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--text-2); letter-spacing: -0.015em; }
.overline { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 9vw, 136px) 0; }
.band-alt { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 30em; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; }
/* Apple badge: clear space of at least 1/4 of the badge height on every side */
.badge-link { display: inline-block; padding: 11px; margin: -11px; line-height: 0; }
.badge-link img { height: 44px; width: auto; }
.hero-meta { margin-top: 28px; display: grid; gap: 4px; font-size: 14px; color: var(--text-3); max-width: 34em; }

/* ---------- Media ---------- */
figure { margin: 0; }
.shot img { width: 100%; border-radius: var(--radius-shot); box-shadow: var(--shot-shadow); background: var(--bg-alt); }
figcaption { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.hero-media { justify-self: end; width: 100%; max-width: 500px; }

/* ---------- Feature rows: screenshot leads, text follows ---------- */
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.feature.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature.reverse > .feature-text { order: 2; }
.feature-media { justify-self: center; width: 100%; max-width: 520px; }
.feature h2 { margin-bottom: 18px; }
.points { margin-top: 32px; display: grid; gap: 14px; }
.points li { font-size: 16px; line-height: 1.5; color: var(--text-2); padding-left: 0; }
.points strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.fine { margin-top: 24px; font-size: 14px; color: var(--text-3); }

/* ---------- AI data (collapsible) ---------- */
.data { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.data summary::-webkit-details-marker { display: none; }
.data summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--text-3); line-height: 1; }
.data[open] summary::after { content: "−"; }
.data-body { padding: 0 0 32px; }
.data-body > p { color: var(--text-2); max-width: 46em; }
.data-grid { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.data-grid > div { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.data-grid dt { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.data-grid dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.data-notes { margin-top: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 62em; }

/* ---------- Privacy / how it works ---------- */
.how-cols { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.how-cols h3 { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.spec li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .v { text-align: right; color: var(--text-2); flex: 0 1 45%; }

/* ---------- Coming next ---------- */
.next h2 { margin-bottom: 14px; }
.next-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.next-grid li { padding-top: 20px; border-top: 1px solid var(--line); }
.next-grid .label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.next-grid strong { display: block; font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 6px; }
.next-grid p { color: var(--text-2); font-size: 15px; }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.company-grid h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-bottom: 16px; }
.company-grid > div > p { color: var(--text-2); }
.facts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.facts dt { font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.facts .wide { grid-column: 1 / -1; }
.legal li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 17px; }
.legal li:last-child a { border-bottom: 1px solid var(--line); }
.legal li a:hover { color: var(--link); text-decoration: none; }
.legal .arrow { color: var(--text-3); }
.legal-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
footer p { max-width: 72em; }
footer p + p { margin-top: 8px; }
.foot-row { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- 404 ---------- */
.notfound { padding: 120px var(--gutter); }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 20px; }
.notfound p + p { margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .nav-links { gap: 18px; } }

@media (max-width: 900px) {
  .hero-grid, .feature, .company-grid, .how-cols { grid-template-columns: 1fr; }
  .feature.reverse > .feature-text { order: 0; }
  .hero-media { justify-self: center; max-width: 460px; }
  .feature-media { max-width: 460px; }
  .how-cols > div + div { margin-top: 32px; }
  .next-grid { grid-template-columns: 1fr; gap: 24px; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) { .nav-links { display: none; } }

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav { gap: 12px; }
  .btn { padding: 0 12px; }
  .facts { grid-template-columns: 1fr; }
  .spec li { flex-direction: column; gap: 2px; }
  .spec .v { text-align: left; }
}

@media (max-width: 400px) { .brand-name { display: none; } }
