:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5d6b67;
  --line: #d8e2df;
  --paper: #fbfcfb;
  --surface: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #d89b1d;
  --coral: #d9674e;
  --blue: #2f6f9f;
  --shadow: 0 18px 48px rgba(18, 32, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 226, 223, 0.86);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(11, 79, 74, 1));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}

.brand-name {
  color: var(--ink);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--muted);
  font-size: 0.94rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--teal-dark);
}

.nav-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
}

.nav-action,
.primary-button {
  background: var(--teal);
  color: #fff;
}

.nav-action:hover,
.primary-button:hover {
  background: var(--teal-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 9px;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.site-header.menu-open .mobile-menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-menu-button span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .mobile-menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 26, 24, 0.82), rgba(9, 26, 24, 0.52) 42%, rgba(9, 26, 24, 0.12)),
    linear-gradient(0deg, rgba(9, 26, 24, 0.56), rgba(9, 26, 24, 0.04) 32%);
}

.hero-content {
  position: relative;
  display: grid;
  align-content: center;
  width: min(760px, 92vw);
  min-height: calc(100svh - 72px);
  padding: 64px clamp(18px, 4vw, 56px) 118px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.admin-private h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.04;
}

.hero-copy {
  max-width: 570px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin: 34px 0 0;
}

.hero-metrics div {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  padding-top: 12px;
}

.hero-metrics dt {
  font-size: 1.24rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 84px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading .device-range-note {
  color: #476761;
  font-size: 0.95rem;
  font-weight: 720;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.quote-form,
.quote-result,
.enterprise-form,
.admin-panel,
.order-dialog form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border-top: 1px solid #ecf1ef;
  padding-top: 18px;
  color: var(--ink);
}

.form-section-title:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.form-section-title span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
}

.form-section-title strong {
  font-size: 1.05rem;
}

label {
  display: grid;
  gap: 8px;
  color: #30413d;
  font-size: 0.93rem;
  font-weight: 720;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.help-button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.field-help {
  grid-column: 1 / -1;
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  background: #f3faf7;
  color: var(--muted);
  padding: 14px 16px;
}

.field-help strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.field-help p {
  margin: 0;
}

.field-help code {
  border-radius: 5px;
  background: #e0efea;
  color: var(--teal-dark);
  padding: 2px 5px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c8d6d2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

fieldset {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  font-weight: 820;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 620;
}

.check-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.quote-result {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.quote-price {
  margin: 4px 0;
  color: var(--teal-dark);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.quote-summary,
.micro-copy,
.dialog-note {
  color: var(--muted);
}

.price-breakdown {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ecf1ef;
  color: var(--muted);
}

.price-row strong {
  color: var(--ink);
}

.quote-flags {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.quote-flags p {
  margin: 0;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: #fff8e6;
  color: #6d5216;
  padding: 10px 12px;
  font-size: 0.9rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.process-grid,
.wipe-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article,
.wipe-grid article,
.product-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.process-grid span,
.wipe-grid span {
  color: var(--coral);
  font-weight: 900;
}

.process-grid h3,
.wipe-grid h3,
.product-card h3 {
  margin: 14px 0 8px;
}

.process-grid p,
.wipe-grid p,
.product-card p {
  color: var(--muted);
}

.track-section {
  background: #fff;
}

.track-form {
  display: grid;
  grid-template-columns: minmax(260px, 460px) auto;
  gap: 14px;
  align-items: end;
  max-width: 760px;
  margin-bottom: 18px;
}

.track-result {
  max-width: 920px;
}

.tracking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.tracking-card h3 {
  margin: 0 0 8px;
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.tracking-timeline li {
  position: relative;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.tracking-timeline li::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 18px;
  height: 2px;
  background: var(--line);
  content: "";
}

.tracking-timeline li:last-child::before {
  display: none;
}

.tracking-timeline span {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.tracking-timeline strong {
  max-width: 100%;
  padding-right: 8px;
  line-height: 1.25;
}

.tracking-timeline li.active {
  color: var(--teal-dark);
}

.tracking-timeline li.active::before,
.tracking-timeline li.active span {
  border-color: var(--teal);
  background: var(--teal);
}

.tracking-timeline.cancelled {
  grid-template-columns: minmax(0, 1fr);
}

.tracking-timeline.cancelled li.active {
  color: #85412e;
}

.tracking-timeline.cancelled li.active span {
  border-color: var(--coral);
  background: var(--coral);
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tracking-grid div {
  border: 1px solid #ecf1ef;
  border-radius: 8px;
  padding: 12px;
}

.tracking-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.tracking-grid strong {
  display: block;
  margin-top: 4px;
}

.not-found {
  border: 1px solid #f0d5c9;
  border-radius: 8px;
  background: #fff4ef;
  color: #77402f;
  padding: 16px;
}

.wipe-section {
  background: #eef5f2;
}

.wipe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hidden {
  display: none !important;
}

.shop-section,
.admin-section {
  background: #eef5f2;
}

.admin-page {
  background: #eef5f2;
}

.admin-private {
  min-height: calc(100svh - 72px);
}

.product-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.phone-visual {
  position: relative;
  width: 74px;
  height: 124px;
  border: 5px solid #1c2a27;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(199, 221, 216, 0.48)),
    var(--phone-color, #d5e5df);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.phone-visual::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: #1c2a27;
  content: "";
  transform: translateX(-50%);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: #e8f0ed;
  color: #334640;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 760;
}

.product-price {
  color: var(--teal-dark);
  font-size: 1.6rem;
  font-weight: 900;
}

.secondary-product {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--teal-dark);
  padding: 0 14px;
  font-weight: 800;
}

.secondary-product:hover {
  background: #e5f2ef;
}

.faq-section {
  background: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(18, 32, 29, 0.07);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 850;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  float: right;
  color: var(--teal);
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  border-top: 1px solid #ecf1ef;
  padding: 0 22px 20px;
  color: var(--muted);
}

.guide-teaser-section {
  background: #f5faf8;
}

.compact-heading {
  max-width: 720px;
}

.compact-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.75rem);
}

.guide-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.guide-teaser-card {
  display: grid;
  min-height: 178px;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.guide-teaser-card:hover {
  border-color: rgba(15, 118, 110, 0.52);
  box-shadow: 0 14px 32px rgba(18, 32, 29, 0.1);
  transform: translateY(-2px);
}

.guide-teaser-card span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-teaser-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.28;
}

.guide-teaser-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--teal-dark);
  font-weight: 850;
}

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

.article-page {
  background: var(--paper);
}

.article-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(238, 245, 242, 0.96), rgba(251, 252, 251, 0.72)),
    url("assets/hero-phone-recycling.png") center right / min(52vw, 760px) auto no-repeat;
}

.article-hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.article-index-section {
  background: #fff;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.content-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(18, 32, 29, 0.07);
}

.content-toc strong {
  margin-bottom: 2px;
  color: var(--ink);
}

.content-toc a {
  color: var(--muted);
  font-size: 0.94rem;
}

.content-toc a:hover {
  color: var(--teal-dark);
}

.article-list {
  display: grid;
  gap: 18px;
}

.guide-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 12px 32px rgba(18, 32, 29, 0.08);
}

.guide-article h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-meta {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 850;
}

.guide-article p:not(.article-meta),
.guide-article li {
  color: var(--muted);
}

.guide-article ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.guide-article li + li {
  margin-top: 8px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.article-actions .text-link {
  margin-top: 0;
}

.topic-section {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 16px;
  color: #30413d;
  font-weight: 800;
}

.enterprise-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.wide {
  grid-column: 1 / -1;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 760;
}

.tab-button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.admin-panel {
  overflow: auto;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.admin-toolbar strong,
.admin-toolbar span {
  display: block;
}

.admin-toolbar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.compact-button {
  min-height: 38px;
  white-space: nowrap;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #334640;
  font-size: 0.86rem;
}

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

.admin-table select,
.admin-table input,
.admin-table textarea {
  width: 100%;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font-size: 0.9rem;
}

.admin-table textarea {
  min-width: 220px;
  resize: vertical;
}

.admin-price-line {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.admin-inline-field {
  gap: 5px;
  min-width: 132px;
  color: var(--muted);
  font-size: 0.82rem;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: #e4efec;
  color: var(--teal-dark);
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 820;
  white-space: nowrap;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.metric {
  min-height: 130px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.metric span {
  color: var(--muted);
}

.order-dialog {
  width: min(760px, 94vw);
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
}

.order-dialog::backdrop {
  background: rgba(14, 24, 22, 0.58);
}

.order-dialog form {
  padding: 24px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.dialog-header h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.confirm-row {
  margin-bottom: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: #12201d;
  color: #fff;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 40px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #12201d;
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1120px) {
  .site-header {
    align-items: center;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(14px, 4vw, 42px);
    left: clamp(14px, 4vw, 42px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-header.menu-open .main-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid #ecf1ef;
    padding: 0 16px;
    color: var(--ink);
    font-weight: 800;
  }

  .site-header.menu-open .main-nav a:nth-child(odd) {
    border-right: 1px solid #ecf1ef;
  }
}

@media (max-width: 980px) {
  .quote-layout,
  .enterprise-form,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .quote-result {
    position: static;
  }

  .process-grid,
  .wipe-grid,
  .product-grid,
  .guide-teaser-grid,
  .topic-grid,
  .trust-strip,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .content-toc {
    position: static;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .nav-action {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: min(620px, calc(82svh - 64px));
  }

  .hero-content {
    align-content: end;
    padding: 40px 18px 58px;
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.35rem);
    line-height: 1;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .hero-metrics {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-metrics div {
    padding-top: 8px;
  }

  .hero-metrics,
  .quote-form,
  .process-grid,
  .wipe-grid,
  .product-grid,
  .guide-teaser-grid,
  .topic-grid,
  .trust-strip,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    background:
      linear-gradient(180deg, rgba(238, 245, 242, 0.98), rgba(251, 252, 251, 0.9)),
      url("assets/hero-phone-recycling.png") center bottom / 520px auto no-repeat;
  }

  .section {
    padding: 48px 18px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
  }

  .trust-strip div {
    min-height: auto;
    padding: 16px 18px;
  }

  .quote-form,
  .quote-result,
  .enterprise-form,
  .process-grid article,
  .wipe-grid article,
  .product-card {
    min-height: auto;
    padding: 18px;
  }

  .form-section-title {
    padding-top: 14px;
  }

  .quote-price {
    font-size: clamp(2.3rem, 16vw, 4rem);
  }

  .trust-strip div,
  .metric {
    border-right: 0;
  }

  .site-footer {
    display: grid;
  }

  .track-form,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

  .tracking-timeline {
    font-size: 0.76rem;
  }

  .site-header.menu-open .main-nav {
    grid-template-columns: 1fr;
  }

  .site-header.menu-open .main-nav a:nth-child(odd) {
    border-right: 0;
  }
}
