@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --accent: #c9940a;
  --accent-hover: #e5a912;
  --accent-muted: #8a7a3a;
  --accent-subtle: rgba(201, 148, 10, 0.12);
  --danger: #e64c4c;
  --danger-subtle: rgba(230, 76, 76, 0.1);
  --info: #4f8cff;
  --info-subtle: rgba(79, 140, 255, 0.1);
  --success: #38a169;
  --success-subtle: rgba(56, 161, 105, 0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.18s ease;
}

[data-theme="dark"] {
  --bg-base: #0a0a0a;
  --bg-card: #141414;
  --bg-el: #1a1a1a;
  --bg-hover: #1f1f1f;
  --border: #262626;
  --border-sub: #333333;
  --text: #e5e5e5;
  --text-sec: #999999;
  --text-muted: #666666;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-lg: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
  --bg-base: #f5f4f1;
  --bg-card: #ffffff;
  --bg-el: #fafafa;
  --bg-hover: #f0efe9;
  --border: #e0ddd6;
  --border-sub: #ece9e0;
  --text: #1a1a1a;
  --text-sec: #4a4a4a;
  --text-muted: #888888;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

html {
  min-height: 100%;
  background: var(--bg-base);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
}

[data-theme="light"] body {
  background: #ffffff;
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.app-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
}

.app-page-top {
  align-items: flex-start;
}

.app-container {
  width: min(100%, 520px);
}

.app-container-wide {
  width: min(100%, 980px);
}

.app-card {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: background var(--transition), border-color var(--transition);
}

.app-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.app-subtitle {
  margin: 0 0 14px;
  color: var(--text-sec);
}

.app-form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label,
.field-label {
  color: var(--text-muted);
  font-size: 12px;
}

.form-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-el);
  color: var(--text);
  font-size: 13px;
  transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus {
  border-color: var(--accent-muted);
}

.helper-text {
  color: var(--text-muted);
  font-size: 11px;
}

.check-row {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--text-sec);
  font-size: 12px;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.app-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #090909;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.app-button:hover {
  background: var(--accent-hover);
  color: #090909;
  text-decoration: none;
}

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

.app-button-secondary {
  border: 1px solid var(--border);
  background: var(--bg-el);
  color: var(--text-sec);
}

.app-button-secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.app-button-google {
  width: 100%;
  background: #4285f4;
  color: #ffffff;
}

.app-button-google:hover {
  background: #3367d6;
  color: #ffffff;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  font-size: 12px;
}

.app-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: var(--text-muted);
  font-size: 11px;
}

.app-divider::before,
.app-divider::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sec);
}

.notice-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.notice-info,
.card.blue {
  border-color: rgba(79, 140, 255, 0.35);
  background: var(--info-subtle);
}

.notice-success,
.card.green {
  border-color: rgba(56, 161, 105, 0.35);
  background: var(--success-subtle);
}

.notice-error,
.card.red {
  border-color: rgba(230, 76, 76, 0.35);
  background: var(--danger-subtle);
}

.card.blue,
.card.green,
.card.red {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-style: solid;
  border-width: 1px;
  border-radius: var(--radius-sm);
  color: var(--text-sec);
}

.card .card-content {
  padding: 0;
}

.card .card-title {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.card p {
  margin: 0;
}

.status-card {
  text-align: center;
}

.status-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.status-card .app-subtitle {
  margin-bottom: 0;
}

.status-card .app-button {
  margin-top: 20px;
}

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

.price-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-subtle);
}

.price-card h2,
.price-card h3,
.price-card p {
  margin: 0;
}

.price-name {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.price-term {
  min-height: 42px;
  margin-top: 5px !important;
  color: var(--text-sec);
  font-size: 12px;
}

.price {
  margin: 18px 0 2px !important;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.price-tax {
  color: var(--text-muted);
  font-size: 10px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  color: var(--text-sec);
  font-size: 12px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "✓";
}

.price-card .app-button {
  width: 100%;
  margin-top: auto;
}

.muted {
  color: var(--text-muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-term {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .app-page {
    padding: 8px;
  }

  .app-card,
  .price-card {
    padding: 12px;
  }
}
