/* =========================================================
   DAMYE — site styles
   ========================================================= */
:root {
  --mint: #95C4B8;
  --mint-dark: #7AAE9F;
  --mint-deep: #3F6F63;
  --mint-soft: #EAF3F0;
  --dark: #131D1A;
  --bg: #fbfaf5;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #666666;
  --border: #E4E1D8;
  --red: #D0021B;
  --heart: #C8102E;
  --radius: 20px;
  --font: 'Figtree', 'Apple SD Gothic Neo', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 2px; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: middle; }
/* Every page uses the same 1280px content width (plus side padding) */
.container { width: 100%; max-width: calc(1280px + 48px); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: #fff; }
.mint { color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
#site-header { position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.logo-text {
  font-family: 'Pinyon Script', cursive; font-size: 2.35rem; line-height: 1;
  color: var(--mint); letter-spacing: .01em; padding-top: 6px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  white-space: nowrap; padding: 7px 20px; border-radius: 999px; font-size: 1rem; color: var(--text);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--mint-soft); }
.nav a.active { background: var(--mint); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--text); }
.menu-btn .icon { width: 26px; height: 26px; stroke-width: 1.2; }

/* Header on top of the home hero */
.header-overlay #site-header { position: absolute; top: 0; left: 0; right: 0; }
.header-overlay .nav a { color: #fff; }
.header-overlay .nav a:hover { background: rgba(255,255,255,.15); }
.header-overlay .menu-btn { color: #fff; }

/* ---------- Footer ---------- */
#site-footer { background: var(--dark); color: #fff; padding: 56px 0 64px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-inner .logo { margin-bottom: 18px; }
.footer-inner p { font-size: .95rem; margin-bottom: 18px; }
.footer-inner h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.footer-inner a:not(.logo) { display: flex; align-items: center; gap: 10px; font-size: .95rem; padding: 3px 0; opacity: .95; }
.footer-inner a:not(.logo):hover { color: var(--mint); }

/* ---------- Buttons & form fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 28px; border-radius: 999px; border: 0;
  background: var(--mint); color: #fff; font-weight: 500; font-size: 1rem;
  transition: background-color .2s;
}
.btn:hover { background: var(--mint-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; padding: 15px 28px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text); font-size: 1rem; }
.link-btn:hover { text-decoration: underline; }
.text-red { color: var(--red); }
.text-mint { color: var(--mint); }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 1rem; margin-bottom: 8px; }
.field label .req { color: var(--red); }
.input, select.input, textarea.input {
  width: 100%; height: 52px; padding: 0 16px; background: #fff;
  border: 1px solid #cfccc4; border-radius: 14px; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
textarea.input { height: 150px; padding: 14px 16px; resize: vertical; }
.input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }

.notice { padding: 14px 16px; border-radius: 12px; font-size: .95rem; margin-bottom: 20px; }
.notice-error { background: #fcefef; color: #9b1c1c; }
.notice-ok { background: var(--mint-soft); color: var(--mint-deep); }
.notice-info { background: #f3f1ea; color: #555; }
[hidden] { display: none !important; }

/* ---------- Panel card (login, profile, contact...) ---------- */
.page-pad { padding-block: 104px 120px; }
.panel {
  background: var(--card); border-radius: var(--radius);
  max-width: 716px; margin: 0 auto; padding: 46px 40px 40px;
}
.panel-title { font-size: 2.4rem; font-weight: 700; line-height: 1.2; margin-bottom: 40px; }
.panel-title.center { text-align: center; }

/* ---------- Restaurant cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.r-card { background: var(--card); display: flex; flex-direction: column; color: var(--text); }
.r-card-img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mint-soft); }
.r-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.r-card:hover .r-card-img img { transform: scale(1.03); }
.r-card-body { padding: 22px 20px 24px; }
.r-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.r-card-head h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.35; }
.r-card-head h3 a:hover { color: var(--mint-deep); }
.r-card-desc { font-size: 1rem; line-height: 1.5; margin-bottom: 8px; }
.r-meta { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-top: 4px; }
.r-meta .icon { color: #444; }

.img-placeholder {
  width: 100%; height: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center;
  background: var(--mint-soft); color: var(--mint);
}
.img-placeholder .icon { width: 56px; height: 56px; stroke-width: 1.2; }

.heart { background: none; border: 0; padding: 2px; color: var(--heart); line-height: 0; flex-shrink: 0; }
.heart .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.heart.is-fav .icon { fill: var(--heart); }
.heart:hover .icon { transform: scale(1.08); }

/* ---------- Home ---------- */
.hero {
  position: relative; min-height: 800px; display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 120px 24px 80px;
  background: #2b3532 url("../img/hero.webp") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(15, 20, 18, .15); }
.hero > * { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px); font-size: .9rem; margin-bottom: 22px;
}
.flag { width: 20px; height: 20px; object-fit: cover; clip-path: circle(45% at 50% 50%); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; line-height: 1.3; margin-bottom: 36px; }
.search-box {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 600px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 0 20px; height: 56px; color: var(--text);
}
.search-box .icon { width: 26px; height: 26px; color: #9a9a9a; stroke-width: 1.4; }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.05rem; min-width: 0; }
.search-box input::placeholder { color: #a3a3a3; }
.hero .search-box { height: 50px; max-width: 590px; border-radius: 16px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: 2.2rem; font-weight: 600; line-height: 1.2; }
.section-head h2::before { content: ""; display: block; width: 58px; height: 4px; background: var(--mint); margin-bottom: 24px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; white-space: nowrap; }
.more-link:hover { color: var(--mint); }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px;
  background: #fff; border: 1px solid #ecebe6; border-radius: 14px; text-align: center; font-size: .95rem; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.cat-card:hover { border-color: var(--mint); background: var(--mint-soft); }
.cat-card .icon { width: 20px; height: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: #fff; border: 1px solid #ecebe6; border-radius: 18px; padding: 18px 24px 26px; text-align: center;
}
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 12px; background: var(--mint-soft); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon .icon { width: 34px; height: 34px; stroke-width: 1.4; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.feature-card p { font-size: .98rem; line-height: 1.55; color: #333; }
.center-btn { text-align: center; margin-top: 40px; }

/* ---------- About ---------- */
.about-hero { text-align: center; padding: 90px 24px 92px; }
.about-hero h1 { font-size: 2.6rem; font-weight: 600; margin-bottom: 38px; }
.about-hero p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.meaning { text-align: center; padding: 96px 24px 90px; }
.meaning-img { width: 150px; height: 150px; margin: 0 auto 50px; object-fit: contain; }
.meaning h2 { font-size: 2.6rem; font-weight: 600; margin-bottom: 40px; }
.quote { display: flex; justify-content: center; gap: 120px; align-items: center; max-width: 820px; margin: 0 auto; font-size: 2rem; }
.quote-mark { font-size: 3rem; line-height: 1; font-weight: 800; align-self: flex-start; }
.quote-mark.end { align-self: flex-end; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.split-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: #26302d; }
.split h2 { font-size: 2.6rem; font-weight: 600; margin-bottom: 26px; }
.split p { font-size: 1.05rem; line-height: 1.6; max-width: 540px; }
.values h2, .team h2 { text-align: center; font-size: 2.6rem; font-weight: 600; margin-bottom: 50px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { background: #fff; border: 1px solid #ecebe6; border-radius: 18px; padding: 18px 24px 26px; text-align: center; }
.value-card .feature-icon { margin-bottom: 26px; }
.value-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.value-card p { font-size: .98rem; line-height: 1.55; color: #333; }
.team-card {
  background: #fff; color: var(--text); border-radius: 20px; max-width: 890px; margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: center; padding: 44px 46px 40px 46px;
}
.team-person { text-align: center; }
.avatar-default {
  width: 160px; height: 160px; margin: 0 auto 26px; border-radius: 50%; background: #dfe3e3; color: #b3bbbb;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.avatar-default svg { width: 74%; height: 74%; }
.avatar-default img { width: 100%; height: 100%; object-fit: cover; }
.team-person h3 { font-size: 1.6rem; font-weight: 600; margin-bottom: 14px; }
.team-person .role { color: var(--mint); font-size: .95rem; }
.team-bio p { font-size: .98rem; line-height: 1.55; margin-bottom: 22px; }
.team-bio ul { list-style: none; padding: 0; margin: 0 0 22px; }
.team-bio li { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .98rem; }
.check-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-dot svg { width: 13px; height: 13px; stroke-width: 3; }

/* ---------- Restaurants list ---------- */
.list-page { padding-block: 40px 100px; }
.list-page .search-box { max-width: 512px; margin: 0 0 22px; height: 52px; border-radius: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff;
  border: 1px solid #e3e1da; border-radius: 999px; font-size: .97rem; font-weight: 500;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip .icon { width: 19px; height: 19px; }
.chip:hover { border-color: var(--mint); }
.chip.on { background: var(--mint); border-color: var(--mint); color: #fff; }
.chip-reset { color: var(--red); }
.chip-reset .icon { color: var(--red); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Restaurant detail ---------- */
.detail { padding-top: 40px; }
.detail-top { display: grid; grid-template-columns: 437fr 497fr; gap: 30px; align-items: start; }
.detail-img { aspect-ratio: 1 / 1; background: var(--mint-soft); overflow: hidden; }
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.tag-chip { display: inline-block; padding: 8px 16px; border: 1px solid #e3e1da; border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; margin-bottom: 18px; }
.detail-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.detail-title h1 { font-size: 2.2rem; font-weight: 500; line-height: 1.25; }
.detail-info { padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.detail-desc { font-size: 1rem; line-height: 1.6; margin-bottom: 30px; }
.detail h2 { font-size: 1.9rem; font-weight: 500; margin: 80px 0 18px; }
#map { width: 100%; height: 380px; background: #ecebe6; }
.map-missing { padding: 60px 20px; text-align: center; background: #f3f1ea; color: var(--muted); }

/* ---------- Quiz page ---------- */
.quiz-page { padding-block: 60px 100px; }
.quiz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.quiz-row + .quiz-row { border-top: 1px solid #ddd; margin-top: 100px; padding-top: 90px; }
.quiz-label {
  display: inline-block; padding: 5px 18px; border-radius: 999px; background: var(--mint); color: #fff;
  font-size: .85rem; font-weight: 500; letter-spacing: .08em; margin: 0 0 26px;
}
.quiz-intro h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.15; margin-bottom: 30px; }
.quiz-intro p { font-size: 1.05rem; max-width: 560px; }
.quiz-row #damye-quiz, .quiz-row #damye-balance { max-width: none; padding: 0; }

/* ---------- Contact ---------- */
.contact-head { text-align: center; padding: 84px 24px 40px; }
.contact-head h1 { font-size: 3rem; font-weight: 700; margin-bottom: 40px; }
.contact-head p { font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---------- Profile & favorites ---------- */
.profile-head { position: relative; text-align: center; margin-bottom: 26px; }
.profile-head .panel-title { margin-bottom: 0; }
.logout-btn {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; padding: 2px 12px; font-size: 1rem;
}
.logout-btn:hover { background: #fdf2f3; }
.avatar-wrap { position: relative; width: 120px; margin: 0 auto 22px; }
.avatar-btn { border: 0; padding: 0; background: none; width: 120px; height: 120px; border-radius: 50%; }
.avatar-btn .avatar-default { width: 120px; height: 120px; margin: 0; }
.avatar-remove { position: absolute; top: 0; right: -18px; background: none; border: 0; color: #777; padding: 4px; }
.avatar-remove .icon { width: 18px; height: 18px; }
.avatar-hint { text-align: center; font-size: .85rem; color: var(--muted); margin: -12px 0 18px; }
.pill-link {
  display: flex; width: max-content; margin: 0 auto 26px; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid #e3e1da; border-radius: 999px; background: #fff; font-weight: 500; font-size: .95rem;
}
.pill-link .icon { color: var(--heart); fill: var(--heart); }
.pill-link:hover { border-color: var(--mint); }
.center-link { display: block; text-align: center; margin-top: 30px; }
.fav-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.fav-item { border: 1px solid #e3e1da; padding: 20px 20px 22px; }
.fav-item .r-card-head { margin-bottom: 14px; }
.fav-item h3 { font-size: 1.15rem; font-weight: 500; }
.fav-item p { margin-bottom: 8px; }

.auth-foot { text-align: center; margin-top: 34px; }
.auth-foot a { display: inline-block; padding: 6px 4px; color: var(--text); }
.auth-foot a span { color: var(--mint); }
.auth-foot a:hover span { text-decoration: underline; }
.forgot { text-align: right; margin: -6px 0 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid, .feature-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz-row, .split, .detail-top { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .quote { gap: 30px; font-size: 1.6rem; }
}
/* Mobile menu: switches on before the six links run out of room (they need about 820px) */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; position: relative; z-index: 2; margin-right: -8px; border-radius: 12px; }
  .logo { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(96px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  #site-header.open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a, .header-overlay .nav a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--border);
    font-size: 1.35rem; font-weight: 500; color: var(--text); background: none;
  }
  .nav a:not(#nav-account)::after {
    content: ""; width: 9px; height: 9px; border-top: 2px solid #b9b5ab; border-right: 2px solid #b9b5ab; transform: rotate(45deg);
  }
  .nav a:hover, .header-overlay .nav a:hover { background: none; color: var(--mint-deep); }
  .nav a.active, .header-overlay .nav a.active { background: none; color: var(--mint-deep); font-weight: 600; }
  .nav a.active::after { border-color: var(--mint); }
  .nav #nav-account, .header-overlay .nav #nav-account {
    justify-content: center; margin-top: 32px; padding: 15px; border: 0; border-radius: 999px;
    background: var(--mint); color: #fff; font-size: 1.05rem; font-weight: 600;
  }
  .nav #nav-account:hover { background: var(--mint-dark); color: #fff; }
  .header-overlay #site-header.open .menu-btn { color: var(--text); }
  body.menu-open { overflow: hidden; }
  .header-inner { height: 76px; }
}
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .quiz-page { padding-bottom: 90px; }
  .hero, .about-hero, .meaning, .contact-head { padding-left: 20px; padding-right: 20px; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .card-grid, .feature-grid, .value-grid, .cat-grid, .footer-inner, .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .panel { padding: 32px 20px; }
  .panel-title { font-size: 2rem; margin-bottom: 28px; }
  .page-pad { padding-block: 40px 70px; }
  .section-head h2, .meaning h2, .split h2, .values h2, .team h2, .about-hero h1 { font-size: 2rem; }
  .contact-head h1 { font-size: 2.3rem; }
  .quote { font-size: 1.3rem; gap: 12px; }
  .team-card { padding: 30px 20px; }
  .detail-title h1 { font-size: 1.7rem; }
  .chip { font-size: .9rem; }
  .logout-btn { position: static; transform: none; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Google login ---------- */
.or-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .9rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%;
  padding: 14px 24px; border-radius: 999px; background: #fff; border: 1px solid #cfccc4;
  font-size: 1rem; font-weight: 500; color: var(--text); transition: background-color .2s, border-color .2s;
}
.btn-google:hover { background: #f7f6f2; border-color: #bdb9ae; }
.btn-google:disabled { opacity: .6; cursor: default; }
.g-logo { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Quiz share fallback ---------- */
.share-fallback { width: 100%; max-width: 480px; text-align: left; margin-top: 4px; }
.share-fallback label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.share-fallback textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfccc4; border-radius: 12px; background: #fff;
  font: inherit; font-size: .93rem; line-height: 1.45; resize: none; color: var(--text);
}

/* ---------- Privacy Policy & Terms ---------- */
.legal-hero { text-align: center; padding: 88px 24px 8px; }
.legal-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 28px; }
.legal-hero p { max-width: 620px; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.6; color: #333; }
.legal-date {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .88rem;
  background: var(--mint-soft); color: var(--mint-deep);
}
.legal-wrap { padding-block: 40px 110px; }
.legal-sec p, .legal-sec ul { max-width: 860px; }
.legal-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 36px; }
.legal-tabs a { padding: 8px 20px; border-radius: 999px; border: 1px solid #e3e1da; background: #fff; font-weight: 500; transition: border-color .2s, background-color .2s; }
.legal-tabs a:hover { border-color: var(--mint); }
.legal-tabs a.active { background: var(--mint); border-color: var(--mint); color: #fff; }
.legal-card { background: var(--card); border: 1px solid #ecebe6; border-radius: var(--radius); padding: 16px 52px; }
.legal-sec { padding: 36px 0 32px; border-bottom: 1px solid #efede7; }
.legal-sec:last-child { border-bottom: 0; }
.legal-sec h2 { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin-bottom: 18px; }
.legal-num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.legal-sec h3 { font-size: 1.02rem; font-weight: 600; margin: 22px 0 8px; }
.legal-sec p, .legal-sec li { font-size: 1rem; line-height: 1.7; color: #333; }
.legal-sec p + p, .legal-sec ul + p { margin-top: 12px; }
.legal-sec ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.legal-sec li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal-sec li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.legal-sec b { font-weight: 600; color: var(--text); }
.legal-sec a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) {
  .legal-hero { padding: 48px 20px 4px; }
  .legal-hero h1 { font-size: 2rem; }
  .legal-wrap { padding-block: 32px 90px; }
  .legal-card { padding: 4px 22px; }
  .legal-sec { padding: 28px 0 24px; }
  .legal-sec h2 { font-size: 1.15rem; gap: 12px; }
  .legal-num { width: 34px; height: 34px; border-radius: 10px; }
}

/* ---------- Sign-up agreement ---------- */
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 22px; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mint-deep); flex-shrink: 0; cursor: pointer; }
.agree a, .legal-note a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { margin-top: 14px; text-align: center; font-size: .85rem; color: var(--muted); line-height: 1.45; }

/* ---------- Page heading (light) ---------- */
.page-hero { text-align: center; padding: 88px 24px 8px; }
.page-hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 28px; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; line-height: 1.6; color: #333; }

/* ---------- Analysis Reports (cards use the restaurant card style) ---------- */
.reports-page { padding-block: 56px 110px; }
.report-card { cursor: pointer; outline-offset: 3px; }
.report-cover { position: relative; background: #fff; border-bottom: 1px solid #efede7; }
.report-sent {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--mint-deep); color: #fff;
  font-size: .82rem; font-weight: 600; box-shadow: 0 2px 8px rgba(19, 29, 26, .12);
}
.report-sent i { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--mint-deep); display: inline-flex; align-items: center; justify-content: center; }
.report-sent svg { width: 11px; height: 11px; }
.report-card .r-card-body { display: flex; flex-direction: column; flex: 1; }
.report-headline { font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.report-card .r-meta { font-variant-numeric: tabular-nums; }
.report-link { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--mint-deep); font-weight: 600; }
.report-link svg { width: 16px; height: 16px; transition: transform .2s; }
.report-card:hover .report-link svg { transform: translateX(4px); }

/* Report viewer */
body.modal-open { overflow: hidden; }
.rp-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(19, 29, 26, .72); }
.rp-box { width: 100%; max-width: 1000px; height: 90vh; background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.rp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 24px; border-bottom: 1px solid #efede7; }
.rp-bar h2 { font-size: 1.1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rp-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rp-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid #e3e1da; background: #fff; font-size: .93rem; font-weight: 500; transition: border-color .2s, background-color .2s; }
.rp-btn:hover { border-color: var(--mint); }
.rp-btn.rp-fill { background: var(--mint); border-color: var(--mint); color: #fff; }
.rp-btn.rp-fill:hover { background: var(--mint-dark); border-color: var(--mint-dark); }
.rp-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--mint-soft); color: var(--text); display: inline-flex; align-items: center; justify-content: center; }
.rp-close .icon { width: 20px; height: 20px; }
.rp-close:hover { background: #dcebe6; }
.rp-viewer { position: relative; flex: 1; min-height: 0; background: #ecebe6; }
.rp-pages { position: absolute; inset: 0; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.rp-pages canvas { display: block; margin: 0 auto 16px; background: #fff; border-radius: 4px; box-shadow: 0 4px 16px rgba(19, 29, 26, .12); }
.rp-pages canvas:last-child { margin-bottom: 0; }
.rp-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); pointer-events: none; }
.rp-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d6e7e1; border-top-color: var(--mint-deep); animation: rpSpin .8s linear infinite; }
@keyframes rpSpin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .page-hero { padding: 48px 20px 4px; }
  .page-hero h1 { font-size: 2rem; }
  .reports-page { padding-block: 36px 90px; }
  .rp-modal { padding: 0; }
  .rp-box { height: 100%; max-width: none; border-radius: 0; }
  .rp-bar { padding: 12px 12px 12px 18px; }
  .rp-hide-sm { display: none; }
}
