/* Shared styles for the free tools (loaded after site.css) */
.tool { max-width: 460px; margin: 0 auto; padding: 32px 20px 64px; min-height: calc(100dvh - 64px); display: flex; flex-direction: column; }

.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.10); transition: background .35s; }
.progress i.on { background: var(--accent); }
.progress.hidden { visibility: hidden; }

.screen { display: none; flex-direction: column; flex: 1; animation: screenIn .28s ease-out; }
.screen.show { display: flex; }
@keyframes screenIn { from { opacity: 0; transform: translateX(18px); } }

.q-head { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.2; letter-spacing: -0.5px; margin: 10px 0 8px; }
.q-sub { color: var(--cream-muted); font-size: 15px; margin-bottom: 26px; }

.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pill {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 18px 8px;
  text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: border-color .15s, background .15s, transform .1s; font: inherit; color: inherit;
}
.pill:active { transform: scale(.97); }
.pill.sel { background: var(--accent-fill); border-color: rgba(99,102,241,.6); }
.pill b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.pill small { display: block; font-size: 11px; color: var(--cream-faint); margin-top: 2px; }
.pill.sel b { color: var(--lav); }

/* Time selects (jet lag) */
.times { display: grid; gap: 14px; }
.time-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; }
.time-block h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--lav); font-weight: 500; margin-bottom: 12px; }
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time-row label { font-size: 13px; color: var(--cream-muted); display: grid; gap: 6px; }
.time-row select {
  appearance: none; -webkit-appearance: none; background: var(--bg); color: var(--cream);
  border: 1px solid var(--accent-border); border-radius: 12px; padding: 13px 14px;
  font: 600 20px var(--serif); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lav) 50%), linear-gradient(135deg, var(--lav) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.time-row select:focus { outline: none; border-color: var(--accent); }

.cta { margin-top: auto; padding-top: 28px; }
.cta .btn { width: 100%; padding: 17px; font-size: 16px; }

/* Loading */
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding-bottom: 80px; text-align: center; }
.loading p:first-child { font-family: var(--serif); font-weight: 300; font-size: 22px; }
.scan { width: 200px; height: 2px; background: rgba(99,102,241,.15); border-radius: 2px; overflow: hidden; }
.scan i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.5s ease-in-out; }

/* Result */
.result-hl { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.3; text-align: center; margin: 8px 0 20px; white-space: pre-line; }
.result-card {
  position: relative; overflow: hidden; text-align: center; border-radius: 26px; padding: 34px 26px 28px;
  background: radial-gradient(420px 260px at 50% 30%, rgba(99,102,241,.28), transparent 70%), var(--bg);
  border: 1px solid rgba(99,102,241,.45); box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: cardIn .55s cubic-bezier(.175,.885,.32,1.275) .1s both;
}
@keyframes cardIn { from { opacity: 0; transform: scale(.88); } }
.rc-app { font-size: 10px; letter-spacing: 4px; color: rgba(245,240,232,.35); margin-bottom: 18px; }
.rc-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--lav); font-weight: 500; }
.rc-big { font-family: var(--serif); font-weight: 600; font-size: 104px; line-height: 1.02; letter-spacing: -5px; margin: 6px 0 2px; }
.rc-label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--lav); font-weight: 500; }
.rc-rule { width: 40px; height: 1px; background: rgba(99,102,241,.5); margin: 18px auto; }
.rc-line { font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.45; }
.rc-sub { font-size: 13px; color: var(--cream-muted); margin-top: 10px; }
.result-context { text-align: center; font-size: 13px; color: var(--cream-faint); margin: 16px 0 20px; }

.actions { display: grid; gap: 10px; }
.actions .btn { width: 100%; }

.convert { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.convert h2 { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.convert p { color: var(--cream-muted); font-size: 15px; margin-bottom: 18px; }
.convert [data-waitlist] { max-width: none; }

.other-tool { display: block; margin-top: 22px; text-align: center; font-size: 14px; color: var(--lav); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--accent-border); padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
