:root {
  --bg: #fff;
  --paper: #fffdfa;
  --soft: #fbfaf6;
  --ink: #2a241f;
  --muted: #6f685f;
  --subtle: #8a8a8a;
  --line: #e8e0d4;
  --line-strong: #d7ccb9;
  --moss: #5c7a58;
  --accent: #5c7a58;
  --radius: 14px;
  --radius-lg: 24px;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(42, 36, 31, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-style="anthropic"] {
  --bg: #fff;
  --paper: #fffdfa;
  --soft: #fbfaf6;
  --ink: #2a241f;
  --muted: #6f685f;
  --line: #e8e0d4;
  --line-strong: #d7ccb9;
  --accent: #5c7a58;
  --radius: 14px;
  --radius-lg: 24px;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.nav-actions,
.action-row,
.portfolio-actions,
.tabs,
.shot-tabs,
.plan-list,
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  color: var(--ink);
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #fff;
}

.mark img,
.app-icon img,
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--soft);
}

.button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-weight: 620;
  font-size: 14px;
}

.button.primary,
.button.moss {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.menu-button {
  display: none;
}

.page {
  min-height: 100vh;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero {
  padding: 96px 0 82px;
}

.hero-company {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: center;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 500;
}

.hero .lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 34px;
}

.small-note {
  margin-top: 14px;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.company-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--paper);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtle);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.company-panel h2,
.section-head h2,
.page-title h1,
.detail-panel h3,
.legal-block h2 {
  font-family: var(--serif);
  letter-spacing: 0;
  font-weight: 500;
}

.company-panel h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  margin-bottom: 20px;
}

.company-panel p,
.company-list p,
.card p,
.product-card p,
.support-card p,
.detail-panel p,
.legal-block p,
.legal-block li,
.faq-answer {
  color: var(--muted);
  line-height: 1.58;
}

.company-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.company-list div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.company-list span {
  color: var(--moss);
  font-weight: 720;
}

.company-list p,
.card p,
.support-card p {
  margin-bottom: 0;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-head h2,
.page-title h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.02;
  margin-bottom: 0;
}

.section-head p {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.label {
  display: block;
  margin-bottom: 12px;
  color: var(--moss);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 760;
}

.grid-3,
.metric-row,
.portfolio-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.product-card,
.support-card,
.detail-panel,
.legal-block,
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

body[data-style="anthropic"] .card,
body[data-style="anthropic"] .product-card,
body[data-style="anthropic"] .support-card,
body[data-style="anthropic"] .detail-panel,
body[data-style="anthropic"] .legal-block,
body[data-style="anthropic"] .faq,
body[data-style="anthropic"] .company-panel {
  box-shadow: none;
}

.card {
  padding: 26px;
  min-height: 220px;
}

.card span {
  color: var(--subtle);
  font-size: 13px;
}

.card h3 {
  margin: 34px 0 12px;
  font-size: 24px;
  line-height: 1.16;
}

.portfolio {
  display: block;
}

.product-card.featured {
  padding: 30px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  min-height: 260px;
}

.app-icon {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.product-card h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.06;
}

.portfolio-highlights {
  gap: 12px;
  margin-top: 24px;
}

.portfolio-highlights div,
.metric {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.portfolio-highlights strong,
.portfolio-highlights span,
.metric strong,
.metric span {
  display: block;
}

.portfolio-highlights strong {
  margin-bottom: 7px;
}

.portfolio-highlights span,
.metric span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.portfolio-actions,
.tabs,
.shot-tabs,
.plan-list,
.filters {
  flex-wrap: wrap;
}

.portfolio-actions {
  margin-top: 26px;
}

.phone-stage {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.phone {
  width: min(320px, 78vw);
  aspect-ratio: 1320 / 2868;
  border: 11px solid #111;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.tab,
.filter,
.shot-tab,
.plan-option {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: 999px;
  padding: 11px 15px;
}

.tab.active,
.filter.active,
.shot-tab.active,
.plan-option.active {
  border-color: var(--moss);
  background: #f1f5ed;
  color: var(--ink);
}

.detail-panel {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  padding: 26px;
}

.detail-panel h3 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.metric-row {
  gap: 14px;
  margin-top: 24px;
}

.metric strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.plan-list {
  margin-top: 26px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
}

.support-card {
  padding: 26px;
}

.support-card h3 {
  font-size: 26px;
  line-height: 1.12;
}

.support-email {
  margin: 12px 0 0;
  color: var(--muted);
}

.support-email a {
  color: var(--moss);
}

.form {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.form input,
.form textarea,
.search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
}

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

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.status {
  display: none;
  color: var(--moss);
  margin: 0;
  font-weight: 650;
}

.status.visible {
  display: block;
}

.status.error {
  color: #9f3a28;
}

.filters {
  margin: 16px 0 18px;
}

.faq {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  text-align: left;
  color: var(--ink);
}

.faq-answer {
  display: none;
  padding: 0 22px 22px;
}

.faq-item.open .faq-answer {
  display: block;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}

.legal-nav button {
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--muted);
}

.legal-nav button.active {
  color: var(--ink);
  border-color: var(--moss);
}

.legal-block {
  border-radius: var(--radius-lg);
  padding: 30px;
}

.legal-block h2 {
  font-size: clamp(28px, 3vw, 44px);
}

.admin-hero {
  padding-bottom: 44px;
}

.admin-auth,
.admin-shell,
.admin-ticket,
.admin-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.admin-auth {
  max-width: 620px;
  padding: 30px;
}

.admin-auth h2 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
}

.admin-auth p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-token-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 20px;
}

.admin-token-form input,
.admin-note {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
}

.admin-shell {
  padding: 22px;
}

.admin-toolbar,
.admin-actions,
.admin-ticket-head,
.admin-ticket-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-toolbar,
.admin-ticket-head {
  justify-content: space-between;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-ticket,
.admin-empty {
  padding: 22px;
}

.admin-ticket h3 {
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.ticket-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 720;
}

.status-open {
  border-color: #bed0b7;
  color: var(--moss);
  background: #f1f5ed;
}

.status-closed {
  border-color: #d9d3ca;
  color: #6f685f;
  background: #f5f3ee;
}

.status-spam {
  border-color: #e6c2b7;
  color: #9f3a28;
  background: #fff4ef;
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.ticket-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.ticket-meta dt {
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 5px;
}

.ticket-meta dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ticket-meta a {
  color: var(--moss);
}

.ticket-message {
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.58;
}

.admin-note {
  min-height: 96px;
  resize: vertical;
  margin: 12px 0;
}

.admin-empty {
  color: var(--muted);
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 16px;
}

@media (max-width: 920px) {
  .nav,
  .shell,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-company,
  .phone-stage,
  .support-layout,
  .legal-grid,
  .ticket-meta {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-ticket-head,
  .admin-ticket-actions,
  .admin-token-form {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .grid-3,
  .metric-row,
  .portfolio-highlights {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 16px;
  }

  .legal-nav {
    position: static;
  }

  .footer {
    display: block;
  }

  .footer-links {
    margin-top: 18px;
  }

  .footer a {
    margin-left: 0;
    margin-right: 16px;
  }
}

@media (max-width: 560px) {
  .brand > span:not(.mark) {
    display: none;
  }

  .nav-actions .button.primary {
    display: none;
  }

  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section {
    padding: 54px 0;
  }

  .product-card.featured {
    grid-template-columns: 1fr;
  }
}
