/* Tutorial page — reuses the app's sky theme (styles.css) with its own content styles. */

.tutorial-body {
  display: block;
  padding: 40px 20px;
}

.tutorial {
  margin: 0 auto;
  max-width: 760px;
}

/* Hero */
.tut-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(210, 232, 252, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 18px 40px rgba(90, 130, 170, 0.25);
}

.tut-hero__badge {
  display: inline-block;
  background: rgba(74, 134, 216, 0.16);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tut-hero__title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #16324f 0%, #2f74bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #16324f;
}

.tut-hero__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #3a5a7d;
}

/* Jump-to nav */
.tut-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tut-nav a {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  transition: background 0.14s ease, transform 0.14s ease;
}

.tut-nav a:hover {
  background: rgba(74, 134, 216, 0.14);
  transform: translateY(-1px);
}

/* Steps */
.tut-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tut-step {
  display: flex;
  gap: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 10px 24px rgba(90, 130, 170, 0.16);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.tut-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(90, 130, 170, 0.24);
}

.tut-step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(43, 92, 150, 0.3);
}

.tut-step__body {
  min-width: 0;
}

.tut-step__body h3 {
  margin: 4px 0 8px;
  font-size: 19px;
  color: #1c3a5e;
}

.tut-step__body p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #3a5a7d;
}

.tut-step__body p:last-child {
  margin-bottom: 0;
}

.tut-note {
  background: rgba(74, 134, 216, 0.09);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 14px !important;
}

/* Account-type chips */
.tut-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tut-chip {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2f5378;
}

/* Payoff explorer teaser mockup */
.tut-payoff-demo {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 4px 0 10px;
}

.tut-payoff-demo__bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(70, 110, 150, 0.16);
  overflow: hidden;
}

.tut-payoff-demo__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #57c99a);
}

.tut-payoff-demo__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: #3a5a7d;
}

.tut-payoff-demo__row strong {
  color: #1c3a5e;
}

.tut-payoff-demo__cta {
  color: var(--accent-2);
  font-weight: 600;
  white-space: nowrap;
}

/* Calendar color legend */
.tut-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.tut-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3a5a7d;
}

.tut-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.tut-swatch--due {
  background: rgba(226, 96, 127, 0.22);
  color: var(--danger);
}

.tut-swatch--payday {
  background: rgba(58, 168, 107, 0.22);
  color: #2e7d4f;
}

.tut-swatch--today {
  background: var(--accent-2);
  color: #fff;
}

.tut-swatch--reminder {
  background: rgba(74, 134, 216, 0.16);
  color: var(--accent-2);
  font-size: 16px;
}

/* Privacy callout */
.tut-callout {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(74, 134, 216, 0.5);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.tut-callout h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #1c3a5e;
}

.tut-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #3a5a7d;
}

/* Outro */
.tut-outro {
  text-align: center;
  padding: 20px 0 10px;
}

.tut-outro h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: #16324f;
  letter-spacing: -0.02em;
}

.tut-outro p {
  margin: 0 0 18px;
  color: #3a5a7d;
  font-size: 15px;
}

.tut-outro__btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
}

/* Dark mode */
html.dark .tut-hero,
html.dark .tut-step,
html.dark .tut-chip,
html.dark .tut-payoff-demo,
html.dark .tut-callout {
  background: rgba(22, 30, 52, 0.6);
  border-color: rgba(150, 185, 225, 0.18);
}

html.dark .tut-hero__title,
html.dark .tut-outro h2 {
  background: linear-gradient(135deg, #a9c8ef 0%, #6fa8f0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: #a9c8ef;
}

html.dark .tut-hero__text,
html.dark .tut-step__body p,
html.dark .tut-callout p,
html.dark .tut-outro p,
html.dark .tut-legend__item,
html.dark .tut-payoff-demo__row {
  color: #93aecb;
}

html.dark .tut-step__body h3,
html.dark .tut-callout h3,
html.dark .tut-chip,
html.dark .tut-payoff-demo__row strong {
  color: #e4edf9;
}

