@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #eef4ef;
  --bg-alt: #f8fcf9;
  --surface: rgba(252, 255, 252, 0.86);
  --surface-muted: rgba(238, 246, 239, 0.92);
  --text: #132217;
  --text-muted: #3f5a45;
  --line: rgba(72, 111, 82, 0.25);
  --bg-glow-1: rgba(134, 184, 146, 0.2);
  --bg-glow-2: rgba(214, 197, 150, 0.14);
  --bg-glow-3: rgba(130, 168, 143, 0.13);
  --brand: #be2f2f;
  --brand-strong: #cf9c3c;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ff6b6b;
  --info: #3b82f6;
  --shadow: 0 14px 32px rgba(24, 43, 28, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: min(1200px, 92vw);
}

:root[data-theme="dark"] {
  --bg: #090d10;
  --bg-alt: #111820;
  --surface: rgba(16, 22, 19, 0.78);
  --surface-muted: rgba(21, 34, 26, 0.74);
  --text: #eaf6ec;
  --text-muted: #b6cdbb;
  --line: rgba(140, 178, 149, 0.24);
  --bg-glow-1: rgba(66, 151, 88, 0.18);
  --bg-glow-2: rgba(189, 137, 63, 0.14);
  --bg-glow-3: rgba(112, 145, 183, 0.1);
  --brand: #e24242;
  --brand-strong: #d4a447;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, var(--bg-glow-1), transparent 34%),
    radial-gradient(circle at 82% 7%, var(--bg-glow-2), transparent 40%),
    radial-gradient(circle at 55% 78%, var(--bg-glow-3), transparent 42%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
}

.top-nav-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.tenderly-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 214, 118, 0.45), transparent 45%),
    linear-gradient(145deg, #0f0b11 0%, #000 65%);
  border: 1px solid rgba(255, 196, 93, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 213, 145, 0.22),
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 185, 74, 0.34);
}

.tenderly-logo .logo-letter {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.52rem;
  line-height: 1;
  background: linear-gradient(180deg, #fff0b8 0%, #ffc84d 42%, #d88a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 247, 216, 0.45),
    0 0 18px rgba(255, 191, 74, 0.28);
}

.brand-label {
  letter-spacing: 0.02em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
}

.header-lang-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.header-lang-link:hover {
  color: var(--text);
}

.header-lang-link.active {
  color: var(--text);
  font-weight: 700;
}

.header-lang-sep {
  color: color-mix(in srgb, var(--text-muted) 72%, transparent);
  font-size: 0.72rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.lang-option {
  min-width: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.lang-option.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #cf2020 42%, var(--brand-strong) 100%);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  outline: none;
}

.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.lang-picker:hover {
  border-color: color-mix(in srgb, var(--brand-strong) 45%, var(--line));
}

.lang-caret {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
  pointer-events: none;
}

.lang-far-right {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
}

.nav-link {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0f7d66 0%, #1f9a7f 45%, #42b89c 100%);
  color: #fff;
  border-color: rgba(18, 118, 97, 0.45);
  box-shadow:
    0 12px 28px rgba(23, 119, 98, 0.3),
    0 0 18px rgba(82, 180, 156, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px rgba(23, 119, 98, 0.34),
    0 0 24px rgba(82, 180, 156, 0.24);
}

.btn-secondary {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  border-color: color-mix(in srgb, var(--line) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.hero {
  padding: 84px 0 70px;
}

.hero-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.hero-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 18px;
  max-width: 64ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.58;
}

.hero-pill-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  color: color-mix(in srgb, var(--text) 84%, var(--text-muted));
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-card {
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.55;
}

.feature-list li + li {
  margin-top: 8px;
}

.section {
  padding: 70px 0;
}

.section-title {
  margin: 0 0 14px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.value-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: var(--radius);
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.value-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.value-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.funnel {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.funnel-step {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.funnel-step .step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  margin-bottom: 8px;
}

.funnel-step h4 {
  margin: 0 0 6px;
}

.funnel-step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  padding: 30px 0 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-grid h4 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-legal {
  margin: 18px 0 0;
  font-size: 0.86rem;
}

.glass-panel {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 420px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle, rgba(188, 61, 61, 0.35) 0%, rgba(255, 67, 67, 0) 64%),
    radial-gradient(circle at 70% 40%, rgba(221, 177, 97, 0.2) 0%, rgba(255, 186, 76, 0) 60%);
  pointer-events: none;
}

.phone-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: end center;
  margin-top: 8px;
}

.phone {
  width: 180px;
  aspect-ratio: 0.54;
  border-radius: 30px;
  background:
    linear-gradient(180deg, #ff2424 0%, #df0f0f 56%, #b30909 100%);
  border: 2px solid rgba(0, 0, 0, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 126, 126, 0.26),
    0 24px 36px rgba(0, 0, 0, 0.56),
    0 0 28px rgba(255, 42, 42, 0.32);
  position: absolute;
  bottom: 46px;
}

.phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 16px;
  border-radius: 12px;
  background: #0b090b;
}

.phone::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 4px;
  border-radius: 10px;
  background: rgba(255, 230, 180, 0.8);
}

.phone-center {
  z-index: 4;
  width: 196px;
}

.phone-left {
  z-index: 2;
  transform: translateX(-118px) scale(0.9);
}

.phone-right {
  z-index: 2;
  transform: translateX(118px) scale(0.9);
}

.logo-dock {
  z-index: 5;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 68px;
  display: grid;
  place-items: center;
}

.dock-logo {
  width: 44px;
  height: 44px;
}

/* App */

.app-shell {
  min-height: 100vh;
  padding-bottom: 30px;
}

.app-main {
  width: var(--container);
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.app-column,
.side-column {
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-column {
  overflow: hidden;
}

.app-header {
  padding: 18px 18px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tab-btn.active {
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--brand) 28%, var(--surface)) 0%,
    color-mix(in srgb, var(--brand-strong) 20%, var(--surface)) 100%
  );
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand-strong) 52%, var(--line));
}

.tab-panel {
  padding: 16px 18px 22px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.row.wrap {
  flex-wrap: wrap;
}

.row.between {
  justify-content: space-between;
}

.row + .row {
  margin-top: 10px;
}

.input,
.select,
.textarea {
  width: 100%;
  background: color-mix(in srgb, var(--surface-muted) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.textarea {
  min-height: 86px;
  resize: vertical;
}

.search-box {
  position: relative;
}

.search-box .input {
  padding-right: 42px;
}

.icon-btn {
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-muted);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.helper {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.87rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge.status-active {
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}

.badge.status-awarded {
  color: var(--info);
  background: color-mix(in srgb, var(--info) 14%, transparent);
}

.badge.status-cancelled {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 15%, transparent);
}

.badge.status-expired,
.badge.status-closed,
.badge.status-default {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--line) 24%, transparent);
}

.badge.ted {
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.badge.read-badge.unread {
  color: #9f6d1f;
  background: rgba(207, 156, 60, 0.14);
}

.badge.read-badge.read {
  color: #2e7d5a;
  background: rgba(45, 149, 117, 0.14);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  font-size: 0.82rem;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.action-row .btn {
  width: 100%;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.pro-teaser {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-strong) 40%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(188, 61, 61, 0.18), rgba(216, 171, 86, 0.08) 72%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pro-teaser p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.results-meta {
  margin-top: 12px;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.result-list,
.favorite-list,
.category-list,
.saved-list,
.manual-list {
  display: grid;
  gap: 10px;
}

.card {
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-title {
  margin: 0;
  font-size: 1.01rem;
  line-height: 1.35;
}

.card-sub {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.card-foot {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.card-head {
  display: flex;
  gap: 10px;
  align-items: start;
}

.card-head .spacer {
  margin-left: auto;
}

.load-more {
  margin-top: 10px;
  width: 100%;
}

.empty {
  border: 1px dashed color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
}

.side-column {
  padding: 16px;
  position: sticky;
  top: 86px;
}

.side-column h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
}

.side-column .block + .block {
  margin-top: 16px;
}

.saved-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.saved-chip {
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.8rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  cursor: pointer;
}

.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

.toggle-line + .toggle-line {
  border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.muted {
  background: var(--text-muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 16px;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(700px, 95vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.16rem;
}

.modal-section {
  margin-top: 12px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chip-btn {
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.77rem;
  cursor: pointer;
}

.inline-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-head {
  margin-bottom: 10px;
}

.detail-head h2 {
  margin: 8px 0 0;
  line-height: 1.32;
}

.detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.detail-line {
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
}

.detail-line .label {
  font-size: 0.77rem;
  color: var(--text-muted);
}

.detail-line .value {
  margin-top: 3px;
  font-weight: 500;
}

.detail-block {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.detail-block h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.notice {
  border: 1px dashed color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.notice p {
  margin: 0;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 340px;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: var(--shadow);
  display: none;
}

.toast.show {
  display: block;
  animation: slide-in 0.2s ease;
}

.inline-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.inline-list li + li {
  margin-top: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.45s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.08s; }
.reveal.delay-2 { animation-delay: 0.16s; }
.reveal.delay-3 { animation-delay: 0.24s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .app-main {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
  }

  .side-column {
    position: static;
  }

  .value-grid,
  .funnel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .top-nav-inner {
    min-height: 62px;
  }

  .header-actions {
    gap: 8px;
    justify-content: end;
  }

  .nav-links {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lang-far-right {
    right: 2px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-visual {
    min-height: 320px;
    padding: 16px 12px;
  }

  .phone-stage {
    min-height: 240px;
  }

  .phone {
    width: 132px;
    border-radius: 24px;
    bottom: 38px;
  }

  .phone-center {
    width: 146px;
  }

  .phone-left {
    transform: translateX(-80px) scale(0.9);
  }

  .phone-right {
    transform: translateX(80px) scale(0.9);
  }

  .logo-dock {
    height: 58px;
  }

  .value-grid,
  .funnel,
  .action-row,
  .modal-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .tab-nav {
    overflow: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .tab-btn {
    flex: 0 0 auto;
  }
}
