/* On Repeat Labs: same look as the app. Flat colour, ink outlines, hard shadows, Nunito. */
:root {
  --ink: #121117;
  --paper: #fff;
  --cream: #fff6e5;
  --pink: #ff5fa2;
  --violet: #7b5cff;
  --violet-soft: #e6dfff;
  --yellow: #ffd23f;
  --green: #22d687;
  --muted: #5c5866;
  --line: 2.5px solid var(--ink);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { width: min(1040px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; }
.top nav { display: flex; gap: 18px; font-weight: 800; font-size: 15px; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 22px;
  border: var(--line); border-radius: 14px; box-shadow: 0 4px 0 var(--ink);
  background: var(--pink); color: var(--ink);
  font: 800 18px/1 inherit; font-family: inherit; text-decoration: none;
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.white { background: var(--paper); }
.btn.yellow { background: var(--yellow); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[aria-disabled='true'] { background: var(--paper); color: var(--muted); box-shadow: 0 4px 0 var(--ink); cursor: default; }
.btn[aria-disabled='true']:active { transform: none; }

.pill {
  display: inline-block; padding: 3px 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); font-weight: 800; font-size: 13px;
}

.card {
  background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: 0 6px 0 var(--ink);
}

/* Home */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 6vw, 60px); line-height: 1.02; letter-spacing: -1.5px; margin: 16px 0 16px; }
.hero p.lead { font-size: 19px; font-weight: 700; max-width: 34ch; margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; max-width: 330px; justify-self: center; width: 100%;
  border: 3px solid var(--ink); border-radius: 36px; box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden; background: var(--violet);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .q {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  display: grid; gap: 8px;
}
.phone .q span {
  background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink);
  padding: 9px 12px; font-weight: 800; font-size: 14px;
}
.phone .q span.ok { background: var(--green); }
.phone .q b { background: var(--yellow); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 900; font-size: 20px; text-align: center; }

.band { background: var(--violet); color: var(--paper); border-block: var(--line); padding: 64px 0; position: relative; overflow: hidden; }
.band h2 { font-weight: 900; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; line-height: 1.1; margin: 0 0 28px; }
.band::after {
  content: '반복'; position: absolute; right: -20px; bottom: -60px;
  font-size: 220px; font-weight: 900; color: rgba(255,255,255,.08); pointer-events: none;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.steps .card { color: var(--ink); padding: 22px; border-radius: 21px; box-shadow: 0 4px 0 var(--ink); }
.steps .n {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--green); font-weight: 900; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 4px; font-weight: 900; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }

.lab { padding: 64px 0; }
.lab h2 { font-weight: 900; font-size: 30px; letter-spacing: -.8px; margin: 0 0 10px; }
.lab p { max-width: 60ch; margin: 0; }

/* Legal and support pages */
.doc { padding: 24px 0 72px; }
.doc h1 { font-weight: 900; font-size: clamp(34px, 5vw, 46px); letter-spacing: -1.2px; line-height: 1.05; margin: 12px 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc .card { padding: clamp(22px, 4vw, 40px); }
.doc h2 { font-weight: 900; font-size: 23px; letter-spacing: -.4px; margin: 34px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-weight: 900; font-size: 18px; margin: 22px 0 4px; }
.doc p, .doc li { color: #2a2833; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px; border-bottom: 1.5px solid #e4dfd3; }
.doc th { font-weight: 900; }
.summary { background: var(--violet-soft); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 20px; margin: 0 0 8px; }
.summary p { margin: 0; }
.faq details { border-bottom: 1.5px solid #e4dfd3; padding: 14px 0; }
.faq summary { font-weight: 900; font-size: 18px; cursor: pointer; }
.faq details p { margin: 8px 0 0; }
.contact { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 8px; }

/* Footer */
.foot { border-top: var(--line); background: var(--paper); padding: 28px 0 36px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 800; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot p { margin: 0; color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { max-width: 280px; }
  .steps { grid-template-columns: 1fr; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
