:root {
  --forest: #123f34;
  --forest-deep: #0d3028;
  --leaf: #4aa544;
  --leaf-dark: #2f7d35;
  --sprout: #dff2dc;
  --mint: #edf7ea;
  --paper: #ffffff;
  --cloud: #f4f7f3;
  --line: #d9e2da;
  --line-dark: #b8c9bc;
  --ink: #14221d;
  --ink-soft: #607069;
  --sun: #f3c653;
  --sky: #dfeef2;
  --blue: #337586;
  --rose: #f3ded9;
  --shadow: 0 24px 68px rgba(24, 61, 48, 0.15);
  --font: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  color-scheme: light;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--cloud);
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(74, 165, 68, 0.35);
  outline-offset: 3px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 78px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand { display: inline-flex; width: 150px; }
.brand img { width: 100%; height: auto; display: block; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 27px;
  height: 78px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a.active { color: var(--forest); border-bottom-color: var(--leaf); }

.account-button {
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 36px auto 16px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.account-button:hover { background: var(--cloud); }
.account-button svg { width: 15px; }
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.account-copy strong, .account-copy small { display: block; }
.account-copy strong { font-size: 12px; }
.account-copy small { color: var(--ink-soft); font-size: 9px; margin-top: 1px; }
.mobile-menu { display: none; }

main {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.welcome-row {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 22px;
}

.context-line {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.welcome-row h1 {
  margin: 0;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 650;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--forest);
  padding-top: 27px;
}

.service-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 5px var(--sprout);
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 24px;
  align-items: start;
}

.main-column { display: grid; gap: 24px; }

.care-hero {
  min-height: 428px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.62fr);
  grid-template-rows: 1fr auto;
  color: white;
  background:
    radial-gradient(circle at 75% -25%, rgba(109, 205, 105, 0.28), transparent 42%),
    var(--forest);
  box-shadow: 0 2px 0 rgba(11, 42, 34, 0.12);
}

.care-copy { padding: 43px 42px 35px; }

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c9e5d3;
  font-size: 11px;
  font-weight: 700;
}

.status-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #76dc72;
  box-shadow: 0 0 0 5px rgba(118, 220, 114, 0.13);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe { 50% { box-shadow: 0 0 0 9px rgba(118, 220, 114, 0.02); } }

.care-copy h2 {
  max-width: 620px;
  margin: 23px 0 16px;
  font-size: clamp(34px, 4.1vw, 57px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 630;
}

.care-copy > p {
  max-width: 590px;
  margin: 0;
  color: #c6dacf;
  font-size: 14px;
  line-height: 1.62;
}

.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }

.light-button {
  min-height: 43px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  background: white;
  color: var(--forest);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.light-button:hover { background: var(--sprout); }

.text-button-on-dark {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: #d9eadf;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.bill-state {
  margin: 24px 24px 24px 0;
  padding: 27px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  background: rgba(4, 28, 21, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bill-state > p { margin: 0; color: #b9d2c6; font-size: 11px; }
.price-shift { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 4px; }
.price-shift s { color: #86a89a; font-size: 18px; }
.price-shift strong { font-size: 44px; letter-spacing: -0.06em; font-weight: 600; }
.bill-state > span { color: #a7c2b6; font-size: 10px; }

.bill-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  gap: 8px;
  color: #d9e8df;
  font-size: 10px;
  line-height: 1.45;
}

.bill-note i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  margin-top: 3px;
  background: var(--sun);
}

.resolution-track {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0 24px 24px;
  padding: 17px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.track-item { display: flex; align-items: center; gap: 9px; }
.track-item strong, .track-item small { display: block; white-space: nowrap; }
.track-item strong { color: #a8c1b5; font-size: 9px; }
.track-item small { color: #78988a; font-size: 8px; margin-top: 2px; }
.track-item.done strong, .track-item.active strong { color: white; }
.track-item.done small, .track-item.active small { color: #b7d0c4; }

.track-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid #587a6c;
  border-radius: 50%;
}

.track-item.done .track-dot { border-color: #75da72; background: #75da72; box-shadow: inset 0 0 0 2px var(--forest); }
.track-item.active .track-dot { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(243, 198, 83, 0.12); }
.track-line { height: 1px; background: #466b5b; }
.track-line.done { background: #69bd69; }
.track-line.active { background: linear-gradient(90deg, #69bd69, var(--sun)); }

.support-ledger,
.usage-section {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  overflow: hidden;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.62fr);
  align-items: end;
  gap: 30px;
  padding: 27px 29px 23px;
  border-bottom: 1px solid var(--line);
}

.section-heading p { margin: 0; color: var(--leaf-dark); font-size: 10px; font-weight: 750; }
.section-heading h2 { margin: 7px 0 0; font-size: 24px; line-height: 1.12; letter-spacing: -0.035em; }
.section-heading .section-intro { color: var(--ink-soft); font-weight: 500; font-size: 11px; line-height: 1.5; }

.support-rows { padding: 0 29px; }
.support-row {
  width: 100%;
  min-height: 95px;
  display: grid;
  grid-template-columns: 43px 1fr auto 22px;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
}

.support-row:hover .support-copy strong { color: var(--leaf-dark); }
.support-symbol {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.support-symbol svg { width: 18px; }
.watch-symbol { background: var(--sprout); color: var(--leaf-dark); }
.act-symbol { background: var(--sky); color: var(--blue); }
.human-symbol { background: var(--rose); color: #9a5448; }
.support-copy strong, .support-copy small { display: block; }
.support-copy strong { font-size: 13px; line-height: 1.3; }
.support-copy small { margin-top: 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.4; }
.support-tag { color: var(--ink-soft); font-size: 9px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 20px; white-space: nowrap; }
.row-toggle { color: var(--leaf-dark); font-size: 19px; font-weight: 300; text-align: right; }
.support-row[aria-expanded="true"] .row-toggle { transform: rotate(45deg); }
.support-detail { margin: -1px 0 0 58px; padding: 3px 24px 19px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.support-rows > :last-child { border-bottom: 0; }

.usage-heading { grid-template-columns: 1fr auto; }
.period-toggle { display: flex; padding: 3px; border-radius: 9px; background: var(--cloud); }
.period-toggle button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 9px; font-weight: 700; cursor: pointer; }
.period-toggle button.active { background: white; color: var(--forest); box-shadow: 0 1px 3px rgba(21, 53, 42, 0.11); }
.usage-layout { display: grid; grid-template-columns: 1fr 245px; gap: 28px; padding: 24px 29px 29px; }
.usage-total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 19px; }
.usage-total strong { font-size: 29px; letter-spacing: -0.045em; }
.usage-total span { color: var(--leaf-dark); font-size: 10px; }
.usage-chart { height: 104px; display: flex; align-items: flex-end; gap: 12px; padding-top: 10px; border-bottom: 1px solid var(--line-dark); }
.chart-bar { flex: 1; min-width: 8px; height: var(--height); border-radius: 4px 4px 0 0; background: var(--sprout); position: relative; transition: height 0.35s ease; }
.chart-bar.weekend { background: var(--leaf); }
.chart-bar:hover::after { content: attr(data-value); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 6px; border-radius: 5px; background: var(--forest); color: white; font-size: 8px; white-space: nowrap; }
.chart-labels { display: flex; gap: 12px; margin-top: 8px; }
.chart-labels span { flex: 1; text-align: center; color: #829089; font-size: 8px; }
.usage-insight { border-left: 1px solid var(--line); padding-left: 25px; }
.sun-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff4cf; color: #a47000; font-size: 21px; }
.usage-insight p { color: var(--ink-soft); font-size: 11px; line-height: 1.55; margin: 13px 0; }
.usage-insight strong { color: var(--ink); }
.usage-insight button { border: 0; background: transparent; color: var(--leaf-dark); font-size: 10px; font-weight: 750; padding: 0; cursor: pointer; }

.assistant-column { display: grid; gap: 18px; position: sticky; top: 102px; }
.assistant-panel {
  border-radius: 18px;
  padding: 20px;
  background: var(--mint);
  border: 1px solid #cde4ca;
}

.assistant-heading { display: flex; align-items: center; gap: 10px; }
.fern-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50% 50% 50% 12px; background: var(--leaf); color: white; font-size: 17px; font-weight: 800; }
.assistant-heading div { flex: 1; }
.assistant-heading strong, .assistant-heading small { display: block; }
.assistant-heading strong { font-size: 13px; }
.assistant-heading small { margin-top: 2px; color: var(--ink-soft); font-size: 9px; }
.online-dot { color: var(--leaf-dark); font-size: 8px; font-weight: 750; }

.assistant-thread { min-height: 133px; max-height: 250px; overflow-y: auto; padding: 20px 0 13px; display: grid; align-content: start; gap: 9px; }
.fern-message, .user-message { max-width: 92%; padding: 11px 12px; border-radius: 12px; font-size: 10px; line-height: 1.5; }
.fern-message { justify-self: start; border-bottom-left-radius: 3px; background: white; }
.user-message { justify-self: end; border-bottom-right-radius: 3px; background: var(--forest); color: white; }
.suggestion-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.suggestion-list button { min-height: 29px; padding: 0 9px; border: 1px solid #bfdbbd; border-radius: 15px; background: rgba(255, 255, 255, 0.58); color: var(--leaf-dark); font-size: 8px; font-weight: 700; cursor: pointer; }
.suggestion-list button:hover { background: white; }
.assistant-form { height: 45px; display: grid; grid-template-columns: 1fr 37px; align-items: center; gap: 5px; padding: 4px; border: 1px solid #b9d4b8; border-radius: 11px; background: white; }
.assistant-form input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0 9px; background: transparent; font-size: 10px; }
.assistant-form button { width: 35px; height: 35px; border: 0; border-radius: 8px; display: grid; place-items: center; background: var(--forest); color: white; cursor: pointer; }
.assistant-form button:hover { background: var(--leaf-dark); }
.assistant-form svg { width: 16px; }
.human-button { width: 100%; min-height: 61px; display: grid; grid-template-columns: 55px 1fr 15px; align-items: center; gap: 9px; margin-top: 15px; padding: 10px 0 0; border: 0; border-top: 1px solid #c9dfc7; background: transparent; text-align: left; cursor: pointer; }
.human-avatars { display: flex; }
.human-avatars i { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid var(--mint); border-radius: 50%; background: #d6a6dd; color: #59325d; font-style: normal; font-size: 8px; font-weight: 800; }
.human-avatars i + i { margin-left: -8px; background: #e7bd86; color: #633e19; }
.human-button > span:nth-child(2) { min-width: 0; }
.human-button strong, .human-button small { display: block; }
.human-button strong { font-size: 10px; }
.human-button small { margin-top: 3px; color: var(--ink-soft); font-size: 8px; }
.human-button > svg { width: 14px; }

.next-up { border: 1px solid var(--line); border-radius: 15px; background: white; overflow: hidden; }
.next-up > p { margin: 0; padding: 15px 18px 10px; color: var(--ink-soft); font-size: 9px; font-weight: 750; }
.service-line { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 13px 17px; border-top: 1px solid var(--line); }
.service-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--sprout); color: var(--leaf-dark); font-size: 17px; }
.service-line strong, .service-line small { display: block; }
.service-line strong { font-size: 10px; }
.service-line small { margin-top: 3px; color: var(--ink-soft); font-size: 8px; }
.service-line button { border: 0; background: transparent; padding: 6px 0; color: var(--leaf-dark); font-size: 8px; font-weight: 750; cursor: pointer; }

footer {
  width: min(1280px, calc(100% - 56px));
  min-height: 84px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 9px;
}

footer nav { display: flex; gap: 21px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--leaf-dark); }

.detail-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 17px;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.detail-dialog::backdrop { background: rgba(9, 33, 26, 0.56); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 20px; }
.dialog-body { padding: 31px; }
.dialog-body > span { color: var(--leaf-dark); font-size: 9px; font-weight: 800; }
.dialog-body h2 { max-width: 420px; margin: 9px 0 10px; font-size: 27px; line-height: 1.1; letter-spacing: -0.04em; }
.dialog-body > p { color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.evidence-list { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.evidence-list li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.evidence-list i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--sprout); color: var(--leaf-dark); font-style: normal; font-size: 9px; }
.evidence-list small { color: var(--ink-soft); font-size: 8px; }
.dialog-primary { width: 100%; min-height: 43px; margin-top: 20px; border: 0; border-radius: 9px; background: var(--forest); color: white; font-size: 11px; font-weight: 750; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: 11px 15px; border-radius: 9px; background: var(--forest-deep); color: white; box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transition: 0.2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 145px 1fr auto; gap: 18px; }
  .brand { width: 132px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 11px; }
  .experience-grid { grid-template-columns: minmax(0, 1fr) 315px; }
  .care-hero { grid-template-columns: 1fr 220px; }
  .care-copy { padding: 36px 30px 30px; }
  .care-copy h2 { font-size: 42px; }
  .resolution-track { overflow-x: auto; }
  .usage-layout { grid-template-columns: 1fr; }
  .usage-insight { border-left: 0; border-top: 1px solid var(--line); padding: 19px 0 0; }
}

@media (max-width: 820px) {
  .site-header { min-height: 68px; grid-template-columns: 1fr auto auto; padding: 0 20px; }
  .brand { width: 125px; }
  .mobile-menu { width: 38px; height: 38px; border: 0; background: transparent; display: grid; align-content: center; gap: 4px; padding: 8px; cursor: pointer; }
  .mobile-menu > span:not(.sr-only) { height: 2px; background: var(--forest); border-radius: 2px; }
  .main-nav { display: none; position: absolute; inset: 68px 0 auto; height: auto; padding: 12px 20px 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(22, 51, 41, 0.1); }
  .main-nav.open { display: grid; gap: 0; }
  .main-nav a { min-height: 43px; border-bottom: 1px solid var(--line); }
  .account-copy { display: none; }
  .account-button { grid-template-columns: 34px 14px; }
  main { width: min(100% - 36px, 720px); padding-top: 25px; }
  .experience-grid { grid-template-columns: 1fr; }
  .main-column { display: contents; }
  .care-hero { order: 1; }
  .assistant-column { position: static; order: 2; }
  .support-ledger { order: 3; }
  .usage-section { order: 4; }
  .assistant-panel { display: grid; grid-template-columns: 1fr; }
  .assistant-thread { min-height: 90px; }
  .care-hero { grid-template-columns: 1fr 215px; }
}

@media (max-width: 610px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .account-button svg { display: none; }
  .account-button { grid-template-columns: 34px; padding-right: 0; }
  main { width: min(100% - 28px, 560px); padding-bottom: 54px; }
  .welcome-row { min-height: auto; align-items: flex-end; margin-bottom: 17px; }
  .context-line { max-width: 210px; line-height: 1.4; }
  .service-state { padding: 0 0 4px; font-size: 0; }
  .care-hero { min-height: 0; display: block; border-radius: 16px; }
  .care-copy { padding: 28px 23px 23px; }
  .care-copy h2 { font-size: 36px; margin-top: 18px; }
  .care-copy > p { font-size: 12px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 22px; }
  .bill-state { margin: 0 14px 14px; padding: 22px; }
  .resolution-track { display: none; }
  .assistant-panel { border-radius: 15px; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; padding: 23px 21px 19px; }
  .section-heading h2 { font-size: 22px; }
  .support-rows { padding: 0 21px; }
  .support-row { grid-template-columns: 39px 1fr 20px; gap: 12px; }
  .support-tag { display: none; }
  .support-detail { margin-left: 51px; padding-right: 5px; }
  .usage-layout { padding: 21px; }
  .usage-chart, .chart-labels { gap: 6px; }
  footer { width: calc(100% - 28px); padding: 20px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
