/* 드라이브밋 웹사이트. 앱(app/lib/core/ui.dart)과 같은 색·글꼴·모서리를 쓴다. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --asphalt: #15171a;
  --ink: #15171a;
  --paper: #ffffff;
  --soft: #6b727c;
  --fog: #f4f5f7;
  --hairline: #eceef1;
  --line: #d9dde2;
  --lane: #ffd233;
  --mute: #8b929c;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f1f2f4; --paper: #111316; --soft: #a6adb7; --fog: #1d2025; --hairline: #2a2e34; --line: #3a3f47; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.25; margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 20px; }

/* 상단 바 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.top .wrap, .top .narrow { display: flex; align-items: center; height: 56px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--asphalt); position: relative; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; left: 11px; width: 4px; height: 6px; border-radius: 1px; background: var(--lane); }
.mark::before { top: 5px; } .mark::after { bottom: 5px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top nav a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--soft); padding: 8px 10px; border-radius: 9px; }
.top nav a:hover { color: var(--ink); background: var(--fog); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 20px; border-radius: var(--r); font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn.fill { background: var(--ink); color: var(--paper); }
.btn.lane { background: var(--lane); color: var(--asphalt); }
.btn.out { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* 차선: 노란 점선 */
.lane-line { height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--lane) 0 18px, transparent 18px 30px); }

/* 첫 화면 */
.hero { background: var(--asphalt); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; letter-spacing: -0.05em; line-height: 1.14; }
.hero h1 em { font-style: normal; color: var(--lane); }
.hero p { color: #b9bfc8; font-size: 17.5px; margin: 18px 0 26px; max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn.out { border-color: #3a3f47; color: #fff; }
.hero .note { font-size: 13.5px; color: #8b929c; margin-top: 14px; }
.hero figure { margin: 0; border-radius: 20px; overflow: hidden; border: 3px solid #fff; transform: rotate(1.5deg); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.plate { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 5px; background: var(--lane); color: var(--asphalt); margin-bottom: 16px; }

section.block { padding: 64px 0; }
section.block h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
section.block .lead { color: var(--soft); margin: 10px 0 28px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature { background: var(--fog); border-radius: 18px; padding: 24px; }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--asphalt); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; fill: var(--lane); }
.feature h3 { font-size: 20px; font-weight: 800; }
.feature p { margin: 8px 0 0; color: var(--soft); font-size: 15.5px; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: var(--asphalt); color: #fff; }
.feature.wide p { color: #b9bfc8; }
.feature.wide .ico { background: var(--lane); } .feature.wide .ico svg { fill: var(--asphalt); }

/* 추천 글 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--hairline); border-radius: 16px; text-decoration: none; background: var(--paper); }
.card:hover { border-color: var(--line); }
.thumb { width: 84px; height: 84px; border-radius: var(--r); background: var(--fog); object-fit: cover; flex: none; display: grid; place-items: center; }
.thumb svg { width: 30px; height: 30px; fill: var(--mute); }
.card h3 { font-size: 16px; font-weight: 800; margin: 5px 0 4px; }
.card .where { font-size: 13px; color: var(--soft); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.kind { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.kind.flash { background: var(--lane); color: var(--asphalt); }
.score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.score b { font-weight: 800; }
.star { color: var(--lane); }
.none { color: var(--soft); }
.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 2px 6px 2px 3px; border-radius: 5px; border: 1px solid var(--line); }
.ptag i { font-style: normal; width: 15px; height: 15px; border-radius: 4px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 10.5px; line-height: 1; }
.ptag.easy { background: var(--lane); color: var(--asphalt); border-color: var(--lane); }
.ptag.easy i { background: var(--asphalt); color: var(--lane); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.chip { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* 상세(공유) 페이지 */
.detail { padding: 24px 0 120px; }
.detail h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 14px; }
.photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px 18px; padding: 0 20px; }
.photos img { height: 260px; width: auto; max-width: 86vw; border-radius: 16px; object-fit: cover; scroll-snap-align: center; flex: none; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.boxes.one { grid-template-columns: 1fr; }
.box { background: var(--fog); border-radius: 14px; padding: 12px 14px; }
.box small { display: block; font-size: 12.5px; font-weight: 700; color: var(--soft); }
.box strong { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.box span { font-size: 13px; font-weight: 600; color: var(--soft); margin-left: 6px; }
.box.easy { background: var(--lane); color: var(--asphalt); }
.box.easy small, .box.easy span { color: var(--asphalt); }
.info { background: var(--fog); border-radius: 14px; padding: 6px 14px; margin-top: 8px; }
.info div { padding: 8px 0; font-size: 15px; }
.info div + div { border-top: 1px solid var(--hairline); }
.info small { display: block; color: var(--soft); font-size: 13px; }
.info b { font-weight: 700; color: var(--soft); margin-right: 6px; font-size: 13.5px; }
.desc { white-space: pre-wrap; margin: 18px 0; font-size: 15.5px; }
.by { color: var(--soft); font-size: 14px; }
.reviews h2 { font-size: 18px; font-weight: 800; margin: 18px 0 6px; }
.review { padding: 12px 0; border-top: 1px solid var(--hairline); }
.review .who { font-weight: 700; font-size: 14.5px; }
.review .when { color: var(--soft); font-size: 12.5px; margin-left: 6px; font-weight: 400; }
.review .stars { font-size: 14px; margin: 2px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review .stars .p { font-size: 12.5px; font-weight: 700; }
.review p { margin: 4px 0 0; white-space: pre-wrap; font-size: 14.5px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.openbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--hairline); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.openbar .narrow { display: flex; gap: 8px; }
.openbar .btn { flex: 1; }
.empty { text-align: center; padding: 72px 20px; color: var(--soft); }
.empty h1 { color: var(--ink); font-size: 24px; margin-bottom: 8px; }

/* 문서(약관 등) */
.doc { padding: 36px 0 72px; }
.doc h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.doc .date { color: var(--soft); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 18px; font-weight: 800; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc .callout { background: var(--fog); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }

footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; color: var(--soft); font-size: 13.5px; }
footer .wrap, footer .narrow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .sp { margin-left: auto; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 40px; }
  .hero figure { transform: none; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .top nav a.hide-s { display: none; }
  section.block { padding: 44px 0; }
  footer .sp { margin-left: 0; width: 100%; }
}
