/* IronLabs site. Colors and type follow the Figma file "공식 홈페이지" (V1, Assets): logo colors on a cream page,
   Noto Sans KR. Icons are Lucide (ISC license, /assets/lucide-LICENSE.txt). */
:root {
  --blue: #2970fc;
  --teal: #31b9b9;
  --orange: #f38840;
  --navy: #071953;
  --page: #fefcf5;
  --surface: #ffffff;
  --subtle: #f5f1e6;
  --text: #071953;
  --text-2: #4a5375;
  --muted: #80869c;
  --border: #e8e2d3;
  --wrap: 1120px;
  --doc: 800px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--text); }

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

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 36px; height: auto; }
.logo .word { height: 22px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

/* Shared pieces */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.4; margin: 0 0 10px; }
.eyebrow.orange { color: var(--orange); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.blue { color: var(--blue); }
.section { padding: 88px 0; }
.section-title { font-size: 32px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 32px; }
.lead { color: var(--text-2); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.4;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1f5fe0; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #d6cdb8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; }

/* Official store badges, same visible height (--badge-h). The Google badge image carries its own transparent padding
   (top and bottom 29 of 250 px) and squarer corners, so it is drawn at 250/192 of that height inside a clipping box with
   the App Store badge's corner radius (about 18% of the height) and the same grey outline. */
.store-badges { --badge-h: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.store-badges a { display: inline-flex; line-height: 0; }
.store-badges .badge-apple { height: var(--badge-h); width: auto; }
.store-badges .link-google { position: relative; align-items: center; height: var(--badge-h); overflow: hidden; border-radius: calc(var(--badge-h) * 0.18); }
.store-badges .link-google::after { content: ""; position: absolute; inset: 0; border: 1.25px solid #a6a6a6; border-radius: inherit; pointer-events: none; }
.store-badges .badge-google { height: calc(var(--badge-h) * 250 / 192); width: auto; }

.app-icon { border-radius: 23%; display: block; }

.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-card h3 { font-size: 20px; line-height: 1.4; letter-spacing: -0.005em; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.icon-badge svg { width: 24px; height: 24px; }
.bg-orange { background: var(--orange); }
.bg-teal { background: var(--teal); }
.bg-blue { background: var(--blue); }
.bg-navy { background: var(--navy); }

/* Home */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 440px; gap: 72px; align-items: center; }
.hero h1 { font-size: 52px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero .lead { margin-bottom: 24px; }
.hero-visual { aspect-ratio: 1; border-radius: 40px; background: var(--subtle); display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 55%; height: auto; }

#apps { padding-bottom: 44px; }
.app-card { display: flex; gap: 40px; padding: 40px; border-radius: 32px; }
.app-card .icon-col { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: none; }
.app-card .info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-card .info p { margin: 0; color: var(--text-2); }
.app-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-title h3 { font-size: 32px; line-height: 1.35; letter-spacing: -0.01em; }
.tag { background: var(--subtle); color: var(--text-2); font-size: 13px; line-height: 1.6; padding: 4px 10px; border-radius: 999px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.legal-links a { color: var(--text-2); }

.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.contact-panel { background: var(--navy); color: #fff; border-radius: 32px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-panel h2 { color: #fff; font-size: 32px; line-height: 1.35; margin-bottom: 10px; }
.contact-panel p { margin: 0; color: rgba(255, 255, 255, 0.75); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.site-footer .word { height: 18px; width: auto; display: block; margin-bottom: 12px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: var(--muted); }

/* Zzigin page */
.app-hero { padding: 72px 0 64px; text-align: center; }
.app-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.app-hero h1 { font-size: 52px; line-height: 1.3; letter-spacing: -0.02em; }
.app-hero .tagline { color: var(--orange); font-size: 20px; font-weight: 700; margin: 0; }
.app-hero .lead { max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.note { margin-top: 32px; background: var(--subtle); border-radius: 20px; padding: 28px 32px; }
.note h3 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
.note p { margin: 0; color: var(--text-2); font-size: 15px; }
.help { padding: 24px 0 88px; }
.help h2 { font-size: 32px; line-height: 1.35; margin-bottom: 16px; }
.help .lead { margin-bottom: 16px; }
.help .legal-links { margin-top: 16px; }

/* Documents (support, terms, privacy, account deletion) */
.doc { max-width: calc(var(--doc) + var(--gutter) * 2); margin: 0 auto; padding: 64px var(--gutter) 96px; }
.doc h1 { font-size: 32px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 14px; }
.doc .meta { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.doc h2 { font-size: 20px; line-height: 1.4; margin: 34px 0 14px; }
.doc p { color: var(--text-2); margin: 0 0 14px; }
.doc ul, .doc ol { color: var(--text-2); margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.doc b, .doc strong { color: var(--text); }
.table-scroll { margin: 0 0 14px; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.6; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); }
.doc th { background: var(--subtle); color: var(--text); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
.doc .card { padding: 28px; margin: 0 0 14px; }
.doc .card h2 { margin-top: 0; }
.doc .card .btn { margin: 0 0 14px; }
.doc .card ul { margin-bottom: 0; }
.subject { font-weight: 700; color: var(--text); }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--muted); flex: none; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 10px 0 0; font-size: 15px; }

/* Phone widths */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .logo .mark { width: 30px; }
  .logo .word { height: 18px; }
  .site-nav { gap: 20px; }
  .site-nav .wide { display: none; }
  .section { padding: 56px 0; }
  .section-title, .contact-panel h2, .help h2, .app-title h3 { font-size: 24px; line-height: 1.4; }
  .section-title { margin-bottom: 24px; }
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero h1, .app-hero h1 { font-size: 32px; line-height: 1.35; }
  .hero-visual { aspect-ratio: auto; height: 260px; border-radius: 28px; }
  .hero-visual img { width: 150px; }
  .app-card { flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: 24px; }
  .app-card .icon-col { align-items: flex-start; }
  .app-card .icon-col .app-icon { width: 80px; height: 80px; }
  .store-badges { --badge-h: 48px; }
  .value-cards, .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-panel { flex-direction: column; align-items: flex-start; padding: 32px 24px; border-radius: 24px; gap: 24px; }
  .app-hero { padding: 32px 0 48px; text-align: left; }
  .app-hero .wrap { align-items: flex-start; gap: 16px; }
  .app-hero .app-icon { width: 88px; height: 88px; }
  .note { padding: 20px; }
  .help { padding-bottom: 56px; }
  .doc { padding-top: 32px; padding-bottom: 56px; }
  .doc h1 { font-size: 24px; line-height: 1.4; }
  .doc .card { padding: 20px; }
  /* Wide tables become one card per row; each cell shows its column name from data-label. */
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .doc tr:first-child { display: none; }
  .doc tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
  .doc td { border: 0; padding: 0 0 10px; font-size: 15px; }
  .doc td:last-child { padding-bottom: 0; }
  .doc td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
  .doc td:first-child { color: var(--text); }
}
