/* Ryt Bank brand tokens + checkout styling — test/demo only */
:root {
  --ryt-blue: #0000e6;
  --ryt-dark-blue: #000081;
  --off-white: #f6efec;
  --turquoise: #00ddd7;
  --pink: #fb73ff;
  --ink: #14142b;
  --muted: #6b6b80;
  --line: #e4ddd9;
  --white: #ffffff;
  --success: #00b67a;
  --error: #fc7070;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --maxw: 480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--off-white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

.appbar {
  background: var(--ryt-blue);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.appbar img {
  height: 22px;
  width: auto;
  display: block;
}

.appbar .tag {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px 48px;
}

/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  font-size: 12px;
  color: var(--muted);
}

.steps .step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.steps .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 11px;
}

.steps .step.active .dot {
  background: var(--ryt-blue);
  color: #fff;
}

.steps .step.done .dot {
  background: var(--success);
  color: #fff;
}

.steps .step.active span {
  color: var(--ink);
  font-weight: 600;
}

.steps .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.lede {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

/* Cart product */
.product {
  display: flex;
  gap: 16px;
  align-items: center;
}

.product .thumb {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(150deg, #eef0ff 0%, #dfe2ff 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.product .thumb img {
  width: 52px;
  height: 52px;
}

.product .name {
  font-weight: 600;
  font-size: 16px;
}

.product .desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.product .price {
  margin-left: auto;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.summary {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
  font-size: 14px;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
}

.summary .row.total {
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
}

/* Forms */
.field {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--ryt-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 230, 0.12);
}

input:disabled {
  background: #f4f2f0;
  color: var(--muted);
  cursor: not-allowed;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-number {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.card-number input {
  text-align: center;
  letter-spacing: 0.12em;
}

/* Payment method radios */
.pm {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  margin-bottom: 10px;
}

.pm input {
  accent-color: var(--ryt-blue);
  width: 18px;
  height: 18px;
}

.pm .pm-label {
  font-weight: 600;
  font-size: 14px;
}

.pm .pm-sub {
  color: var(--muted);
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ryt-blue);
  color: #fff;
}

.btn-primary:hover {
  background: #0000c4;
}

.btn-ghost {
  background: transparent;
  color: var(--ryt-blue);
  border: 1px solid var(--ryt-blue);
}

/* App-button hint (mirrors what the in-app button does) */
.app-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(0, 221, 215, 0.14);
  border: 1px solid rgba(0, 221, 215, 0.5);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ryt-dark-blue);
  margin-bottom: 16px;
}

.app-hint b {
  color: var(--ryt-dark-blue);
}

/* Demo simulate bar (?demo=1 only) */
.demo-bar {
  position: sticky;
  bottom: 0;
  margin: 20px -18px -18px;
  padding: 14px 18px;
  background: var(--ryt-dark-blue);
  border-radius: 0 0 var(--radius) var(--radius);
  color: #fff;
}

.demo-bar .demo-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 8px;
}

.demo-bar button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--turquoise);
  color: var(--ryt-dark-blue);
  cursor: pointer;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 24px 18px 8px;
}

/* --- Specs / product page --- */
.hero {
  background: linear-gradient(160deg, #eef0ff 0%, #e5e8ff 60%, #dfe2ff 100%);
  border-radius: var(--radius);
  padding: 26px 18px 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.hero svg {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.18));
  transition: filter 0.2s ease;
}

.price-lead {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}

.price-lead b {
  color: var(--ink);
  font-size: 17px;
}

.section-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}

.section-title .muted {
  color: var(--muted);
  font-weight: 500;
}

/* Storage option cards */
.options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover {
  border-color: #c9c2be;
}

.option.selected {
  border-color: var(--ryt-blue);
  background: rgba(0, 0, 230, 0.04);
}

.option .opt-name {
  font-weight: 600;
  font-size: 15px;
}

.option .opt-price {
  margin-left: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.option.selected .opt-price {
  color: var(--ryt-blue);
}

.option .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.option.selected .radio {
  border-color: var(--ryt-blue);
}

.option.selected .radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ryt-blue);
}

/* Colour swatches */
.swatches {
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
}

.swatch {
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  width: 60px;
}

.swatch .chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.15s ease;
}

.swatch.selected .chip {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ryt-blue);
}

.swatch.selected {
  color: var(--ink);
  font-weight: 600;
}
