:root {
  color-scheme: light;
  --bg: #f8faf7;
  --text: #162019;
  --ink: #1f2b22;
  --muted: #617168;
  --line: #d6ded4;
  --surface: #ffffff;
  --surface-strong: #edf5f1;
  --paper-note: #fff2a8;
  --gold: #c79221;
  --gold-dark: #7f5714;
  --teal: #126f67;
  --coral: #d86b55;
  --danger: #a33b2f;
  --sketch-shadow: 7px 8px 0 rgba(31, 43, 34, 0.08);
  --shadow: 0 18px 42px rgba(23, 32, 27, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(
      0deg,
      rgba(31, 43, 34, 0.035) 0,
      rgba(31, 43, 34, 0.035) 1px,
      transparent 1px,
      transparent 26px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(18, 111, 103, 0.03) 0,
      rgba(18, 111, 103, 0.03) 1px,
      transparent 1px,
      transparent 31px
    ),
    var(--bg);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 2px solid rgba(31, 43, 34, 0.14);
  background: rgba(248, 250, 247, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 16px;
  font-weight: 760;
}

.brand-context {
  padding: 3px 8px;
  border: 2px solid rgba(31, 43, 34, 0.16);
  border-radius: 10px 7px 9px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  transform: rotate(-3deg);
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
}

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

.nav-primary {
  justify-content: center;
  min-width: 0;
}

.nav-account {
  justify-content: flex-end;
  min-width: max-content;
}

.topnav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.topnav a:hover,
.topnav a:focus-visible,
.topnav a.is-active {
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.topnav a.is-active {
  box-shadow: inset 0 0 0 2px rgba(31, 43, 34, 0.12);
}

.nav-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
}

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.76fr);
  align-items: center;
  gap: 42px;
  min-height: 470px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.hero-copy h1 {
  position: relative;
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 76px;
  font-weight: 860;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy h1::after {
  position: absolute;
  right: 8%;
  bottom: -10px;
  left: 4px;
  height: 14px;
  border-radius: 999px 70% 999px 80%;
  background: rgba(255, 222, 92, 0.72);
  content: "";
  transform: rotate(-1.2deg);
  z-index: -1;
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-subscribe-button {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.trust-dots {
  display: inline-flex;
  align-items: center;
}

.trust-dots span {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border: 2px solid var(--ink);
  border-radius: 50% 45% 52% 48%;
  background: var(--surface);
  box-shadow: 2px 2px 0 rgba(31, 43, 34, 0.08);
}

.trust-dots span:first-child {
  margin-left: 0;
  background: #bfe7df;
}

.trust-dots span:nth-child(2) {
  background: #ffd7c8;
  transform: rotate(7deg);
}

.trust-dots span:nth-child(3) {
  background: #ffe98c;
  transform: rotate(-5deg);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 380px;
  place-items: center;
}

.hero-arrow {
  position: absolute;
  top: 28px;
  left: -58px;
  width: 180px;
  color: var(--coral);
  transform: rotate(-7deg);
  z-index: 2;
}

.hero-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
}

.hero-mockup {
  position: relative;
  width: min(100%, 390px);
  padding: 26px 24px 24px;
  border: 3px solid var(--ink);
  border-radius: 18px 13px 22px 15px;
  background: #fff;
  box-shadow: 12px 14px 0 rgba(18, 111, 103, 0.12);
  transform: rotate(2.2deg);
}

.mockup-tape {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 118px;
  height: 32px;
  border: 1px solid rgba(31, 43, 34, 0.12);
  background: rgba(255, 226, 107, 0.74);
  transform: translateX(-50%) rotate(-3deg);
}

.mockup-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(31, 43, 34, 0.18);
}

.mockup-header strong {
  font-size: 19px;
}

.mockup-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mockup-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px solid rgba(31, 43, 34, 0.78);
  border-radius: 16px 10px 14px 12px;
  background: #fbfdf9;
}

.mockup-row:nth-child(4) {
  border-radius: 10px 17px 12px 16px;
  transform: rotate(-1.6deg);
}

.mockup-row:nth-child(5) {
  border-radius: 15px 11px 18px 10px;
  transform: rotate(1.2deg);
}

.mockup-row span,
.mockup-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.mockup-row strong {
  color: var(--gold-dark);
  font-size: 26px;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 17px;
  border: 2px solid var(--ink);
  border-radius: 13px 9px 14px 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.button:disabled,
.button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button:focus-visible {
  outline: 3px solid rgba(23, 107, 99, 0.24);
  outline-offset: 2px;
}

.button.primary {
  background: var(--teal);
  box-shadow: 5px 6px 0 rgba(31, 43, 34, 0.12);
  color: #fff;
}

.button.primary:hover {
  background: #115a53;
}

.button.secondary {
  border-color: rgba(31, 43, 34, 0.42);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.market-section,
.related-news-section {
  margin-top: 34px;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: minmax(230px, 0.76fr) minmax(0, 1.24fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 2px solid rgba(31, 43, 34, 0.74);
  border-radius: 19px 13px 21px 15px;
  background:
    linear-gradient(135deg, rgba(255, 242, 168, 0.5), rgba(255, 255, 255, 0.82) 42%),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--sketch-shadow);
}

.dashboard-strip[hidden] {
  display: none;
}

.compact-heading {
  min-width: 0;
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 2px solid rgba(31, 43, 34, 0.18);
  border-radius: 10px 7px 12px 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
}

.dashboard-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-summary-card {
  min-width: 0;
  min-height: 124px;
  padding: 16px;
  border: 2px solid rgba(31, 43, 34, 0.18);
  border-radius: 16px 10px 17px 12px;
  background: rgba(255, 255, 255, 0.8);
}

.dashboard-summary-card:nth-child(2) {
  border-radius: 11px 17px 12px 15px;
  transform: rotate(-0.5deg);
}

.dashboard-summary-card:nth-child(3) {
  border-radius: 17px 12px 15px 10px;
  transform: rotate(0.5deg);
}

.dashboard-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.dashboard-summary-card strong {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.dashboard-summary-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.55;
}

.dashboard-strip-actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 10px;
}

.market-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.market-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  padding: 22px;
  border: 2px solid rgba(31, 43, 34, 0.82);
  border-radius: 22px 14px 24px 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sketch-shadow);
}

.market-card:nth-child(1) {
  transform: rotate(-0.8deg);
}

.market-card:nth-child(2) {
  border-radius: 15px 25px 17px 22px;
  transform: rotate(0.9deg);
}

.market-card:nth-child(3) {
  border-radius: 24px 16px 20px 13px;
  transform: rotate(-0.4deg);
}

.market-card.placeholder {
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 239, 0.76));
}

.market-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.market-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.market-card header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.market-card .market-source {
  width: fit-content;
  margin-top: 0;
  padding: 5px 8px;
  border: 2px solid rgba(23, 107, 99, 0.2);
  border-radius: 10px 7px 12px 8px;
  background: rgba(23, 107, 99, 0.08);
  color: var(--teal);
  white-space: nowrap;
}

.market-price {
  margin: 26px 0 12px;
  overflow-wrap: anywhere;
  color: var(--gold-dark);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.market-price.is-placeholder {
  color: rgba(98, 112, 106, 0.76);
}

.market-sparkline {
  display: grid;
  min-height: 86px;
  margin: 16px 0 18px;
  place-items: center;
  border: 2px dashed rgba(31, 43, 34, 0.16);
  border-radius: 17px 11px 15px 10px;
  background: rgba(237, 245, 241, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.market-sparkline svg {
  width: 100%;
  height: 86px;
}

.market-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.market-metrics div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(31, 43, 34, 0.16);
  border-radius: 13px 9px 12px 10px;
  background: #fbfcfa;
}

.market-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-metrics strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.asset-news-groups {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.asset-news-group {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 2px solid rgba(31, 43, 34, 0.18);
  border-radius: 20px 14px 22px 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 5px 6px 0 rgba(31, 43, 34, 0.05);
}

.asset-news-group:nth-child(2) {
  border-radius: 13px 23px 15px 20px;
}

.asset-news-group:nth-child(3) {
  border-radius: 21px 13px 18px 25px;
}

.asset-news-group header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(31, 43, 34, 0.14);
}

.asset-news-group h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.asset-news-group header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.asset-news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-panel,
.surface {
  border: 2px solid rgba(31, 43, 34, 0.72);
  border-radius: 18px 12px 21px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sketch-shadow);
}

.price-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 28px;
  align-self: center;
}

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

.panel-heading strong {
  font-size: 18px;
}

.instrument-picker {
  display: grid;
  gap: 8px;
  min-width: min(100%, 260px);
}

.instrument-picker select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
}

.muted,
.quote-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}

.price-value {
  margin: 34px 0 12px;
  color: var(--gold-dark);
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.price-change {
  width: fit-content;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  font-size: 14px;
  font-weight: 760;
}

.price-change.positive,
.watchlist-item em.positive {
  color: var(--teal);
}

.price-change.negative,
.watchlist-item em.negative {
  color: var(--danger);
}

.price-change.neutral,
.watchlist-item em.neutral {
  color: var(--muted);
}

.sparkline {
  display: grid;
  min-height: 86px;
  margin: 16px 0 22px;
  place-items: center;
  border: 1px solid rgba(219, 224, 214, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(23, 107, 99, 0.06), rgba(183, 129, 27, 0.04));
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sparkline svg {
  width: 100%;
  height: 86px;
}

.sparkline-baseline {
  stroke: rgba(98, 112, 106, 0.22);
  stroke-width: 1;
}

.sparkline-line {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

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

.quote-grid div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.quote-grid strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.quote-meta {
  min-height: 24px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.asset-news-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.asset-news-panel h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.asset-news-list {
  display: grid;
  gap: 8px;
}

.asset-news-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(219, 224, 214, 0.72);
}

.asset-news-item:last-child {
  border-bottom: 0;
}

.asset-news-item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.asset-news-item span,
.asset-news-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  margin-top: 24px;
}

.surface {
  position: relative;
  padding: 26px;
}

.surface::before {
  position: absolute;
  top: -14px;
  left: 38px;
  width: 92px;
  height: 25px;
  border: 1px solid rgba(31, 43, 34, 0.1);
  background: rgba(255, 226, 107, 0.7);
  content: "";
  transform: rotate(-2.5deg);
}

.section-heading h2 {
  position: relative;
  width: fit-content;
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.section-heading h2::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 8px;
  border-radius: 999px 60% 999px 70%;
  background: rgba(255, 226, 107, 0.58);
  content: "";
  transform: rotate(-0.8deg);
  z-index: -1;
}

.related-news-section .section-heading {
  display: grid;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.subscribe-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.subscribe-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.instrument-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.instrument-checks legend {
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 720;
}

.check-grid {
  display: grid;
  gap: 8px;
}

.check-option,
.inline-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid rgba(31, 43, 34, 0.12);
  border-radius: 13px 9px 12px 10px;
  background: #fbfcfa;
}

.check-option input,
.inline-check input {
  width: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  accent-color: var(--teal);
}

.check-option span,
.inline-check span {
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

[hidden] {
  display: none !important;
}

.subscribe-form input,
.subscribe-form select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid rgba(31, 43, 34, 0.14);
  border-radius: 12px 9px 13px 10px;
  background: #fbfcfa;
  color: var(--text);
  font-size: 14px;
}

.subscribe-form input:focus,
.subscribe-form select:focus {
  border-color: rgba(23, 107, 99, 0.65);
  outline: 3px solid rgba(23, 107, 99, 0.14);
}

.submit-button {
  width: fit-content;
  margin-top: 4px;
}

.submit-button.is-loading {
  background: var(--gold);
  color: #1f2b22;
}

.submit-button.is-loading svg {
  animation: submit-nudge 900ms ease-in-out infinite;
}

.subscribe-form.is-submitting {
  opacity: 0.92;
}

.form-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.form-status.pending {
  width: fit-content;
  padding: 9px 12px;
  border: 2px dashed rgba(199, 146, 33, 0.42);
  border-radius: 13px 9px 12px 10px;
  background: rgba(255, 242, 168, 0.5);
  color: var(--gold-dark);
  font-weight: 760;
}

.form-status.success {
  color: var(--teal);
  font-weight: 760;
}

.inline-status-link {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border: 2px solid currentColor;
  border-radius: 10px 7px 9px 8px;
  color: var(--teal);
  text-decoration: none;
}

.inline-status-link:hover {
  transform: rotate(-1deg);
}

.form-status.error {
  color: var(--danger);
  font-weight: 760;
}

.landing-page,
.auth-page,
.account-page {
  padding-top: 28px;
}

.landing-hero,
.auth-shell,
.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  min-height: 460px;
}

.landing-paper,
.auth-card {
  border: 2px solid var(--ink);
  border-radius: 18px 13px 19px 12px;
  background: var(--surface);
  box-shadow: var(--sketch-shadow);
  transform: rotate(1.2deg);
}

.landing-paper {
  position: relative;
  padding: 26px;
}

.landing-brief-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 2px dashed rgba(31, 43, 34, 0.14);
}

.landing-brief-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.landing-brief-row strong {
  color: var(--text);
  font-size: 17px;
}

.landing-band,
.landing-cta {
  margin-top: 38px;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.landing-steps article,
.landing-cta,
.auth-note {
  border: 2px solid rgba(31, 43, 34, 0.2);
  border-radius: 16px 12px 17px 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 4px 5px 0 rgba(31, 43, 34, 0.06);
}

.landing-steps article {
  padding: 20px;
}

.landing-steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50% 44% 52% 48%;
  background: var(--paper-note);
  color: var(--gold-dark);
  font-weight: 860;
}

.landing-steps h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.landing-steps p,
.landing-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.landing-cta {
  padding: 26px;
}

.landing-cta h2 {
  max-width: 760px;
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.auth-copy h1,
.account-hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-copy p,
.account-hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.auth-note {
  display: grid;
  gap: 6px;
  max-width: 500px;
  margin-top: 24px;
  padding: 16px;
  transform: rotate(-1deg);
}

.auth-note span {
  color: var(--muted);
  line-height: 1.6;
}

.auth-card {
  padding: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs button {
  min-height: 42px;
  border: 2px solid rgba(31, 43, 34, 0.18);
  border-radius: 12px 9px 13px 10px;
  background: rgba(237, 245, 241, 0.7);
  cursor: pointer;
  color: var(--muted);
  font-weight: 760;
}

.auth-tabs button.active {
  border-color: var(--ink);
  background: var(--paper-note);
  color: var(--text);
}

.auth-form,
.account-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.auth-form input,
.auth-form select,
.account-form input,
.account-form select,
.account-row-editor input,
.account-row-editor select {
  min-height: 42px;
  width: 100%;
  border: 2px solid rgba(31, 43, 34, 0.18);
  border-radius: 11px 8px 12px 9px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
}

.auth-form input:focus,
.auth-form select:focus,
.account-form input:focus,
.account-form select:focus,
.account-row-editor input:focus,
.account-row-editor select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(18, 111, 103, 0.14);
}

.account-hero {
  min-height: 300px;
}

.account-summary {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 18px 12px 19px 13px;
  background: var(--surface);
  box-shadow: var(--sketch-shadow);
}

.account-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 2px dashed rgba(31, 43, 34, 0.12);
}

.account-summary div:last-child {
  border-bottom: 0;
}

.account-summary span {
  color: var(--muted);
  font-weight: 740;
}

.account-summary strong {
  color: var(--text);
  font-size: 20px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 18px;
  margin-top: 22px;
}

.account-section {
  margin-top: 22px;
}

.account-notes {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.account-table {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.25fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 2px solid rgba(31, 43, 34, 0.14);
  border-radius: 14px 10px 15px 11px;
  background: rgba(255, 255, 255, 0.74);
}

.account-row-title {
  display: grid;
  gap: 6px;
}

.account-row-title strong {
  color: var(--text);
  font-size: 16px;
}

.account-row-title span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.account-row-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.digest-row .account-row-editor {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
}

.compact-check {
  min-height: 42px;
  align-items: center;
  padding: 0 10px;
  border: 2px solid rgba(31, 43, 34, 0.12);
  border-radius: 11px 8px 12px 9px;
  background: #fff;
}

.account-empty {
  padding: 18px;
  border: 2px dashed rgba(31, 43, 34, 0.22);
  border-radius: 14px 10px 15px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.subscription-receipt {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px 0 2px;
  border-top: 2px dashed rgba(18, 111, 103, 0.28);
  color: var(--text);
}

.subscription-receipt strong {
  width: fit-content;
  padding: 8px 11px;
  border: 2px solid rgba(18, 111, 103, 0.22);
  border-radius: 13px 8px 14px 10px;
  background: rgba(191, 231, 223, 0.44);
  color: var(--teal);
  font-size: 16px;
  line-height: 1.35;
}

.subscription-receipt p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.receipt-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.receipt-details div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(31, 43, 34, 0.14);
}

.receipt-details div:last-child {
  border-bottom: 0;
}

.receipt-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.receipt-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 760;
}

@keyframes submit-nudge {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  50% {
    transform: translateX(2px) rotate(-5deg);
  }
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 2px dashed rgba(31, 43, 34, 0.12);
}

.status-list div:last-child {
  border-bottom: 0;
}

.status-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
}

.watchlist {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.watchlist-item {
  display: grid;
  grid-template-columns: minmax(70px, 0.8fr) minmax(70px, 0.8fr) minmax(90px, 1fr) minmax(56px, 0.6fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.watchlist-item:hover,
.watchlist-item.active {
  border-color: rgba(23, 107, 99, 0.42);
  background: rgba(23, 107, 99, 0.08);
}

.watchlist-item span,
.watchlist-item strong,
.watchlist-item em {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.watchlist-item em {
  font-style: normal;
  font-weight: 760;
  text-align: right;
}

.watchlist-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.news-section {
  margin-top: 46px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.news-item {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
  border: 2px solid rgba(31, 43, 34, 0.68);
  border-radius: 17px 11px 19px 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 4px 5px 0 rgba(31, 43, 34, 0.05);
}

.news-item:nth-child(2) {
  border-radius: 11px 20px 13px 17px;
}

.news-item:nth-child(3) {
  border-radius: 20px 12px 16px 22px;
}

.news-placeholder {
  grid-column: 1 / -1;
  border-style: dashed;
  background: rgba(238, 244, 239, 0.64);
}

.news-item.highlight {
  border-color: rgba(199, 146, 33, 0.62);
  background: #fffaf0;
}

.news-item time {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 760;
}

.news-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.news-item h3 a:hover,
.news-item h3 a:focus-visible {
  color: var(--teal);
  outline: none;
}

.news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
}

.news-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(98, 112, 106, 0.2);
  border-radius: 9px 6px 10px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.news-meta .news-highlight {
  border-color: rgba(183, 129, 27, 0.25);
  background: rgba(183, 129, 27, 0.1);
  color: var(--gold-dark);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.tag-row span {
  padding: 5px 8px;
  border: 1px solid rgba(23, 107, 99, 0.18);
  border-radius: 9px 6px 10px 7px;
  background: rgba(23, 107, 99, 0.08);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
}

.news-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 2px solid rgba(31, 43, 34, 0.72);
  border-radius: 12px 8px 13px 9px;
  background: #fff7bd;
  box-shadow: 3px 3px 0 rgba(31, 43, 34, 0.08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
}

.news-source-link:hover,
.news-source-link:focus-visible {
  color: var(--teal);
  outline: none;
  transform: rotate(-1deg) translateY(-1px);
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-primary,
  .nav-account {
    justify-content: flex-start;
    min-width: 0;
  }

  .page {
    width: min(100% - 28px, 720px);
    padding-top: 26px;
  }

  .hero,
  .landing-hero,
  .dashboard-strip,
  .auth-shell,
  .account-hero,
  .landing-steps,
  .account-grid,
  .content-grid,
  .market-card-grid,
  .asset-news-cards,
  .news-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy,
  .price-panel {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 8px;
  }

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

  .auth-copy h1,
  .account-hero h1,
  .landing-cta h2 {
    font-size: 38px;
  }

  .hero-copy h1::after {
    bottom: -6px;
    height: 10px;
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-summary-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-strip-actions {
    grid-column: auto;
  }

  .hero-visual {
    min-height: 300px;
    place-items: stretch;
  }

  .hero-arrow {
    display: none;
  }

  .hero-mockup {
    width: 100%;
    transform: rotate(0.7deg);
  }

  .price-value {
    font-size: 58px;
  }

  .price-panel {
    padding: 22px;
  }

  .market-metrics,
  .quote-grid,
  .receipt-details div,
  .form-row,
  .watchlist-item,
  .account-row,
  .account-row-editor,
  .digest-row .account-row-editor {
    grid-template-columns: 1fr;
  }

  .account-row-actions {
    justify-content: flex-start;
  }

  .landing-paper,
  .auth-card {
    transform: none;
  }

  .market-card {
    min-height: auto;
    padding: 20px;
    transform: none !important;
  }

  .market-price {
    font-size: 46px;
  }

  .asset-news-group header {
    align-items: flex-start;
    flex-direction: column;
  }

  .watchlist-item em {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
