:root {
  color-scheme: light;
  --paper: #f7f7f0;
  --surface: #fffefa;
  --ink: #1c2e23;
  --muted: #546458;
  --green: #28523a;
  --green-dark: #1d422e;
  --tint: #e7eee2;
  --line: #dce3d7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); word-break: keep-all; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a:focus-visible { outline: 3px solid #437b54; outline-offset: 5px; }
.shell { width: min(calc(100% - 64px), 1120px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px;
  transform: translateY(-150%);
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.site-header { min-height: 88px; border-bottom: 1px solid var(--line); }
.brand, .header-actions, .preview-brand { display: flex; align-items: center; }
.brand { gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.header-actions { gap: 25px; }
.nav-link { font-size: 14px; font-weight: 650; color: var(--muted); }
.nav-link:hover, .site-footer a:hover { color: var(--green-dark); text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 7px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.button-quiet { border: 1px solid #b9c7b6; }
.button-quiet:hover { background: var(--tint); }
.button-google {
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #747775;
  background: #fff;
  color: #1f1f1f;
  font: 600 14px/20px "Google Sans", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.button-google:hover { box-shadow: 0 0 0 2px #28523a1c; }
.button-google img { flex: none; object-fit: contain; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  padding-block: 75px 74px;
}
.hero-copy { padding-bottom: 6px; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 750; }
.kicker-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #73a17c; }
h1 { margin-top: 19px; font-size: clamp(42px, 5.1vw, 70px); line-height: 1.15; letter-spacing: -.052em; font-weight: 800; }
.hero-description { max-width: 385px; margin-block: 24px 29px; color: var(--muted); font-size: 17px; line-height: 1.78; }
.login-note { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.preview {
  min-width: 0;
  padding: clamp(16px, 2.8vw, 34px);
  border: 1px solid #dce7d8;
  border-radius: 15px;
  background: radial-gradient(ellipse at right top, #dce9d8, #ecf0e6 75%);
}
.preview-window { overflow: hidden; border: 1px solid #dce4d8; border-radius: 11px; background: var(--surface); box-shadow: 0 18px 30px #2a493515; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.preview-brand { gap: 7px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.preview-brand img { border-radius: 5px; }
.preview-label { color: #495b4e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.preview-body { padding: 19px 20px 20px; }
.preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 19px; color: var(--muted); font-weight: 650; font-size: 11px; }
.preview-tabs span { padding: 6px 9px; border-radius: 5px; }
.preview-tabs .active { background: var(--tint); color: var(--green-dark); }
.preview-title { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.05em; }
.preview-subtitle { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-table tr { border-bottom: 1px solid var(--line); }
.preview-table th, .preview-table td { padding: 8px 0 8px 6px; text-align: right; white-space: nowrap; }
.preview-table th:first-child { padding-left: 0; text-align: left; }
.preview-table thead { color: var(--muted); }
.preview-table tbody th { font-weight: 650; }
.preview-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-top: 15px; padding: 11px 13px; border-radius: 6px; background: #e8efe5; color: var(--green-dark); }
.preview-total > span { font-size: 12px; font-weight: 750; }
.preview-total strong { font-size: 21px; letter-spacing: -.05em; line-height: 1.08; font-variant-numeric: tabular-nums; }
.preview-total strong span { margin-left: 2px; font-size: 13px; }
.preview figcaption { margin-top: 12px; color: #485b4b; font-size: 11px; text-align: center; line-height: 1.5; }

.features { padding-block: 46px 55px; border-top: 1px solid var(--line); }
.section-intro h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; letter-spacing: -.065em; }
.section-intro p { margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.feature-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.feature-grid h3 { margin-top: 13px; font-size: 17px; letter-spacing: -.035em; }
.feature-grid p { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feature-icon { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 7px; background: var(--tint); color: var(--green); }
.feature-weight { font-size: 19px; font-weight: 750; line-height: 1; }
.feature-menu { flex-direction: column; gap: 3px; }
.feature-menu i { width: 14px; height: 2px; border-radius: 1px; background: currentColor; }
.feature-menu i:last-child { width: 9px; align-self: flex-start; margin-left: 9px; }
.feature-ledger { align-items: flex-end; gap: 2px; padding-bottom: 8px; }
.feature-ledger i { width: 3px; height: 6px; border-radius: 1px 1px 0 0; background: currentColor; }
.feature-ledger i:nth-child(2) { height: 10px; }
.feature-ledger i:last-child { height: 15px; }

.analytics-settings:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px 25px; padding-block: 18px 21px; border-top: 1px solid var(--line); }
.analytics-settings h2 { font-size: 15px; }
.analytics-settings p { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.analytics-settings a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-settings .analytics-status:empty { margin-top: 0; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-actions button { background: transparent; color: inherit; cursor: pointer; font-family: inherit; }
.analytics-actions button:hover { background: var(--tint); }
.analytics-actions button:focus-visible { outline: 3px solid #437b54; outline-offset: 3px; }

.site-footer { min-height: 83px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { font-weight: 750; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.notice { max-width: 730px; margin: 0 auto; padding-block: 53px 65px; overflow-wrap: anywhere; }
.notice h1 { margin: 0; font-size: clamp(32px, 5vw, 51px); }
.notice-date { margin-top: 12px; color: var(--muted); font-size: 14px; }
.notice section { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.notice h2 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.035em; }
.notice p, .notice li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.notice ul { margin: 8px 0 0; padding-left: 21px; }
.notice a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.notice .button { margin-top: 22px; }

@media (max-width: 780px) {
  .hero { gap: 28px; padding-block: 55px; }
  .hero-description { font-size: 16px; }
  .feature-grid article { padding: 16px; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 36px), 460px); }
  .site-header { min-height: 72px; }
  .header-actions { gap: 12px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 42px 42px; gap: 25px; }
  .hero-copy { padding-bottom: 0; }
  .hero-description { margin-block: 17px 22px; }
  .features { padding-block: 33px 42px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
  .feature-grid article { padding: 16px 18px; }
  .notice { padding-block: 36px 48px; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 28px); }
  h1 { font-size: 38px; }
  .preview { padding: 13px; }
  .preview-toolbar, .preview-body { padding-inline: 13px; }
  .preview-table { font-size: 11px; }
}
