/* ════════════════════════════════════════════════════════════
   tools/eat/style.css — Clean minimal · big typography · single CTA
   Inspired by Google product pages — generous whitespace, focus
   ════════════════════════════════════════════════════════════ */

body.tool-eat {
  /* ─── Tokens ─────────────────────────────────────── */
  --ink:        #0A0A0A;
  --text:       #1F2937;
  --muted:      #6B7280;
  --faint:      #9CA3AF;
  --hairline:   #E5E7EB;
  --hairline-2: #D1D5DB;
  --bg:         #FFFFFF;
  --bg-soft:    #F8F9FA;
  --bg-tag:     #F3F4F6;

  /* single accent — warm coral, used sparingly */
  --accent:      #FF6B5C;
  --accent-deep: #D9472F;
  --accent-bg:   #FFF1EE;

  --r-pill:  999px;
  --r-card:  20px;
  --r-tile:  14px;

  background: var(--bg);
  color: var(--text);
}

body.tool-eat .container {
  max-width: 1280px;
  padding: 0 24px 80px;
}

/* ─── Back link (top) ─────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s;
}
.back-link:hover { color: var(--ink); }
.back-link::before { content: "←"; }

/* ─── HERO ───────────────────────────────────────── */
.et-hero {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px);
}
.et-eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 24px;
}
.et-h1 {
  font-size: clamp(40px, 7.5vw, 80px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 0 22px;
}
.et-h1-accent {
  color: var(--muted);
  font-weight: 600;
}
.et-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.55;
}
.et-sub strong { color: var(--text); font-weight: 600; }

/* ─── RESULT STAGE ─────────────────────────────────── */
.et-result {
  text-align: center;
  margin: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 36px);
  padding: clamp(32px, 4vw, 48px) 16px;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.et-result-eyebrow {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 18px;
}
.et-result-name {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 20px;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 560px;
}
.et-result-name.is-fresh {
  animation: resultPop .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes resultPop {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.et-result-empty {
  font-size: 17px;
  color: var(--muted);
  font-weight: 500;
}
.et-result-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.et-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text);
  border: 1px solid var(--hairline);
}
.et-tag-cuisine { background: #fff; }
.et-tag-spicy   { color: var(--accent-deep); border-color: var(--accent-bg); }
.et-tag-price   { color: var(--text); }

/* ─── MODE TOGGLE (1 vs 3 results) ──────────────────── */
.et-mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  margin: 0 auto 18px;
}
.et-mode input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.et-mode label {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--muted);
  transition: all .15s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.et-mode label:hover { color: var(--ink); }
.et-mode input:checked + label {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
  font-weight: 600;
}

/* ─── SLOT-LIKE SPINNING STATE ──────────────────────── */
.et-result.is-spinning .et-result-name,
.et-result.is-spinning .et-result-3-name {
  filter: blur(0.6px);
  opacity: 0.78;
  transition: none !important;
  animation: none !important;
}
.et-result.is-spinning .et-tag {
  opacity: 0.4;
  transition: opacity .1s;
}
.et-result-name.is-final {
  animation: resultLand .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes resultLand {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── 3-RESULT DISPLAY ──────────────────────────────── */
.et-result-3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 560px;
}
.et-result-3-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  text-align: left;
}
.et-result-3-item.is-final {
  animation: resultLand .45s cubic-bezier(.2,.7,.2,1) backwards;
}
.et-result-3-item.is-final:nth-child(1) { animation-delay: 0s; }
.et-result-3-item.is-final:nth-child(2) { animation-delay: .08s; }
.et-result-3-item.is-final:nth-child(3) { animation-delay: .16s; }
.et-result-3-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.et-result-3-text { flex: 1; min-width: 0; }
.et-result-3-name {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 0 0 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.et-result-3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 480px) {
  .et-result-3-item { padding: 14px 16px; gap: 12px; }
  .et-result-3-name { font-size: 16px; }
}

/* ─── CTA ─────────────────────────────────────────── */
.et-cta {
  text-align: center;
  margin: clamp(24px, 3vw, 32px) 0 clamp(32px, 4vw, 48px);
}
.et-cta-primary {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  min-width: 240px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 16px -2px rgba(10,10,10,.18);
}
.et-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -4px rgba(10,10,10,.28);
}
.et-cta-primary:active { transform: translateY(0); }
.et-cta-primary:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.et-cta-primary.is-rolling {
  animation: rolling .5s ease;
}
@keyframes rolling {
  0%, 100% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(-2deg) translateY(-1px); }
  50% { transform: rotate(2deg) translateY(-1px); }
  75% { transform: rotate(-1deg); }
}
.et-cta-icon { font-size: 20px; line-height: 1; }
.et-cta-secondary {
  display: inline-block;
  margin-top: 16px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px 12px;
}
.et-cta-secondary:hover { color: var(--ink); }

/* ─── FILTERS (collapsed) ──────────────────────────── */
.et-filters {
  margin: 0 0 clamp(32px, 4vw, 48px);
  text-align: center;
}
.et-filters-toggle {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
}
.et-filters-toggle:hover {
  color: var(--ink);
  border-color: var(--hairline-2);
}
.et-filters-toggle[aria-expanded="true"] {
  background: var(--bg-soft);
  color: var(--ink);
}
.et-filters-body {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  text-align: left;
}
.et-filters-body[hidden] { display: none; }
.et-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 0;
}
.et-filter-row + .et-filter-row {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-top: 8px;
}
.et-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  min-width: 56px;
}
.et-pill {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.et-pill:hover {
  color: var(--ink);
  border-color: var(--hairline-2);
}
.et-pill.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.et-pill-count {
  font-size: 11px;
  font-weight: 600;
  opacity: .7;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
}
.et-pill.is-on .et-pill-count {
  background: rgba(255,255,255,.15);
  opacity: 1;
}

/* ─── HISTORY chip row ─────────────────────────────── */
.et-history {
  text-align: center;
  margin: 0 0 32px;
  padding: 0 16px;
}
.et-history-label {
  font-size: 12px;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.et-history-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 560px;
}
.et-history-chip {
  font-size: 12.5px;
  padding: 5px 12px;
  background: var(--bg-tag);
  color: var(--muted);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ─── DIVIDER ──────────────────────────────────────── */
.et-divider {
  height: 1px;
  background: var(--hairline);
  margin: clamp(56px, 7vw, 96px) 0;
  max-width: 100px;
  margin-inline: auto;
}

/* ─── CATEGORIES (sub-page nav) ─────────────────────── */
.et-cats {
  margin: 0;
}
.et-cats-head {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.et-cats-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.15;
}
.et-cats-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.et-cats-grid {
  border-top: 1px solid var(--hairline);
}
.et-cat {
  display: grid;
  grid-template-columns: 56px 1fr 20px;
  gap: 20px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
}
.et-cat:hover {
  background: var(--bg-soft);
}
.et-cat-emoji {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: var(--bg-soft);
  border-radius: var(--r-tile);
}
.et-cat:hover .et-cat-emoji {
  background: #fff;
}
.et-cat-body {
  min-width: 0;
}
.et-cat-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
  letter-spacing: -.01em;
}
.et-cat-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.et-cat-arrow {
  color: var(--faint);
  font-size: 18px;
  font-weight: 500;
  transition: transform .15s, color .15s;
}
.et-cat:hover .et-cat-arrow {
  color: var(--ink);
  transform: translateX(3px);
}

/* ─── SEO / FAQ section ────────────────────────────── */
.et-section {
  margin: 0;
}
.et-section-head {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.et-section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.15;
}
.et-section-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.et-acc {
  border-bottom: 1px solid var(--hairline);
}
.et-acc:first-child { border-top: 1px solid var(--hairline); }
.et-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .15s;
}
.et-acc summary::-webkit-details-marker { display: none; }
.et-acc summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s, color .2s;
  line-height: 1;
}
.et-acc[open] summary {
  font-weight: 600;
}
.et-acc[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--accent-deep);
}
.et-acc-body {
  padding: 0 0 22px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}
.et-acc-body p { margin: 0 0 12px; }
.et-acc-body p:last-child { margin: 0; }
.et-acc-body strong { color: var(--ink); font-weight: 600; }
.et-acc-body ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.et-acc-body li { margin: 4px 0; }
.et-acc-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── SEO Q&A — visible cards ──────────────────────── */
.et-qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .et-qa-grid { grid-template-columns: 1fr; }
}
.et-qa {
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.et-qa:hover {
  border-color: var(--hairline-2);
  transform: translateY(-1px);
}
a.et-qa:hover .et-qa-cta { color: var(--accent-deep); }
.et-qa-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -.005em;
  line-height: 1.35;
}
.et-qa-a {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.et-qa-a strong { color: var(--text); font-weight: 600; }
.et-qa-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color .15s;
}
.et-qa-cta::after { content: " →"; }

/* ─── Related sub-pages (footer block) ─────────────── */
.et-related {
  margin: 0 0 clamp(40px, 5vw, 64px);
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  text-align: center;
}
.et-related-label {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.et-related-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.et-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all .15s;
}
.et-related-link:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ─── Footer brand line ────────────────────────────── */
.et-foot {
  text-align: center;
  padding: 40px 0 20px;
  color: var(--faint);
  font-size: 13px;
}
.et-foot a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.et-foot a:hover { color: var(--ink); }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
  body.tool-eat .container { padding: 0 20px 60px; }
  .et-cta-primary { width: 100%; padding: 18px 24px; }
  .et-cat { grid-template-columns: 48px 1fr 16px; gap: 14px; padding: 18px 4px; }
  .et-cat-emoji { width: 48px; height: 48px; font-size: 24px; }
  .et-cat-name { font-size: 16.5px; }
  .et-cat-desc { font-size: 13px; }
}
