/* R and R -- rr.kartaan.com. R and R's own rules, and nothing else.
 *
 * kartaan.com's look comes first, unchanged: kartaan-look/styles.css is a pinned
 * copy of the stylesheet kartaan.com released (RR-PLAN section 9; its fingerprint
 * is in kartaan-look/PINNED.txt, and tools/check_page.py holds it to the released
 * file). This file adds only what R and R's pages need, from his Claude Design
 * handoffs of 2026-09-16 (set-up page, link and parcel card, the four customer
 * screens), and uses kartaan.com's colour names only: no colour of its own.
 *
 * The widths are kartaan.com's: the hero stacks below 936px, and the phone layout
 * starts at 760px.
 */

/* ------------------------------------------------------------------ type
 *
 * kartaan.com's two typefaces, served from this site (kartaan-look/fonts/, with
 * where each came from in SOURCES.txt), so no page asks Google for anything. The
 * character ranges are Google Fonts' own for each subset. Indian scripts are not in
 * either family and use the phone's own font.
 */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('kartaan-look/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('kartaan-look/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('kartaan-look/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('kartaan-look/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ shared */

.rr-note {
  margin-top: 16px;
  font-size: 15px;
}

.rr-say {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.rr-hint {
  margin-top: 7px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.rr-strong {
  font-weight: 700;
}

.rr-plain {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.rr-gold {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-bg);
  font-size: 14.5px;
  line-height: 1.5;
}

.rr-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.rr-field-label {
  display: block;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 500;
}

/* 16px type in a field, so a phone does not zoom in when it is tapped. */
.rr-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--control-height);
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.rr-input.mono {
  font-family: var(--font-mono);
}

.rr-input:disabled {
  color: var(--text-muted);
}

/* An error is ink with a red edge: kartaan.com's red is an edge only. */
.rr-error {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  background: var(--surface-raised);
  font-size: 14px;
  font-weight: 500;
}

.rr-ok {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.rr-ok .rr-say:first-child {
  margin-top: 0;
}

.rr-done {
  font-size: 14px;
  font-weight: 700;
  color: var(--ok);
}

/* R19-1 (review round 19), his ruling extended 2026-09-23 ~19:10: the word on the
 * screen while a write is out, and a small moving indicator beside it, for the whole
 * wait. The indicator is an indeterminate <progress>, animated by the browser's own
 * UA style -- this file adds no animation of its own. */
.rr-out {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.rr-out-spin {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.rr-link {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
}

.rr-numbered {
  margin: 12px 0 0;
  padding: 0 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
}

.rr-numbered li + li {
  margin-top: 6px;
}

.rr-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.rr-h3 {
  display: block;
  font-size: 17px;
  font-weight: 700;
}

.switch.rr-switch {
  margin-top: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}

.rr-switch button {
  min-height: 29px;
  height: auto;
  white-space: normal;
}

/* ---------------------------------------------------------- customer pages */

.rr-customer {
  max-width: 720px;
  margin: 0 auto;
}

.rr-langs {
  margin-top: 18px;
  flex-wrap: wrap;
  max-width: 100%;
}

.rr-seller {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  font-size: 13.5px;
  line-height: 1.5;
}

.rr-panel {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 3px var(--shadow);
}

.rr-h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.rr-state-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}

.rr-sub {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-muted);
}

.rr-stars {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface-raised);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.rr-label {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.rr-chips {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rr-chips .chip {
  height: auto;
  min-height: 28px;
}

.rr-h2 {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 700;
}

.rr-back {
  margin-bottom: 14px;
}

.rr-tag {
  margin-bottom: 10px;
}

.rr-examples {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rr-example {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rr-example-tag {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.rr-example-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rr-never {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ok);
}

.rr-lock,
.rr-bulb {
  flex: none;
}

.rr-upload {
  gap: 8px;
  white-space: normal;
  height: auto;
  min-height: var(--control-height);
}

.rr-progress {
  margin-top: 14px;
}

.rr-bar {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--brand);
}

.rr-nudge {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-bg);
  font-size: 14px;
  font-weight: 500;
}

.rr-bulb {
  margin-top: 3px;
}

.rr-receipt {
  margin-top: 16px;
  padding: 4px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.rr-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  font-size: 14.5px;
}

.rr-row + .rr-row {
  border-top: 1px solid var(--border);
}

.rr-value {
  min-width: 0;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.rr-handle {
  margin-top: 8px;
  font-size: 15px;
}

.rr-quote {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.rr-another {
  margin-top: 22px;
}

.rr-folds {
  margin-top: 18px;
}

.rr-terms {
  margin: 0;
  padding: 0 16px 16px 36px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.rr-terms li + li {
  margin-top: 6px;
}

.rr-qa {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.rr-q {
  margin-top: 12px;
  font-weight: 700;
}

.rr-a {
  color: var(--text-muted);
}

.rr-foot {
  text-align: center;
}

.rr-foot .foot-say {
  max-width: none;
  margin: 0 auto;
}

/* ---------------------------------------------------------- the set-up page */

.rr-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rr-flow-say {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.rr-how {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rr-how-step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.rr-how-num {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1;
  color: var(--accent-ink);
}

.rr-how-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.rr-step {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.rr-step-title {
  font-size: 21px;
  font-weight: 700;
}

.rr-label-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rr-label-row .rr-field-label {
  margin-top: 0;
}

.rr-field {
  margin-top: 22px;
  min-width: 0;
}

.rr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.rr-half {
  max-width: 520px;
}

.g-btn.rr-g {
  width: auto;
}

.rr-prefixed {
  margin-top: 7px;
  display: flex;
  gap: 8px;
}

.rr-prefixed .rr-input {
  margin-top: 0;
}

.rr-prefix {
  flex: none;
  display: flex;
  align-items: center;
  height: var(--control-height);
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 15px;
}

.rr-fieldset {
  margin-inline: 0;
  padding: 0;
  border: none;
}

.rr-fieldset legend {
  padding: 0;
}

.rr-check {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
}

.rr-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.rr-uploads {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rr-upload-slot {
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.rr-upload-slot .label {
  margin-bottom: 8px;
}

.rr-thumb {
  display: block;
  width: 72px;
  height: 90px;
  margin-bottom: 10px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.rr-divider {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.rr-made {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rr-copy-row {
  margin-top: 7px;
  display: flex;
  gap: 8px;
}

.rr-copy-row .rr-input {
  margin-top: 0;
}

/* The QR code draws its own white margin; it shrinks to fit a phone. */
.rr-qr {
  display: block;
  margin-top: 16px;
  width: 200px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.rr-card-preview {
  margin: 0;
}

.rr-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
}

.rr-brand {
  margin-top: 28px;
}

.rr-prompt {
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rr-six {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rr-six li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}

.rr-six li + li {
  border-top: 1px solid var(--border);
}

.rr-six li span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.rr-links {
  margin-top: 18px;
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
}

.rr-links th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: left;
}

.rr-links td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rr-cell-label {
  display: none;
}

.rr-row-actions .btn + .btn {
  margin-left: 8px;
}

.rr-dialog {
  margin-top: 16px;
  max-width: 520px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.rr-warn {
  margin-top: 16px;
  max-width: 760px;
  padding: 16px 18px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  background: var(--accent-bg);
}

.rr-warn p {
  font-size: 15px;
  line-height: 1.55;
}

.rr-warn p + p {
  margin-top: 10px;
}

.rr-warn-head {
  font-weight: 700;
}

.rr-bullets {
  margin: 16px 0 0;
  max-width: 760px;
  padding: 0 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
}

.rr-bullets li + li {
  margin-top: 8px;
}

/* ------------------------------------------------------------------- widths */

@media (max-width: 1120px) {
  .rr-how {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-links thead {
    display: none;
  }

  .rr-links,
  .rr-links tbody,
  .rr-links tr,
  .rr-links td {
    display: block;
  }

  .rr-links {
    border: none;
    background: transparent;
  }

  .rr-links tr {
    margin-top: 12px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .rr-links td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
  }

  .rr-links td:last-child {
    border-bottom: none;
  }

  .rr-cell-label {
    display: inline;
    color: var(--text-muted);
  }

  .rr-row-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .rr-panel,
  .rr-step {
    padding: 18px;
  }

  .rr-h1 {
    font-size: 26px;
  }

  .rr-how,
  .rr-grid,
  .rr-made,
  .rr-uploads {
    grid-template-columns: minmax(0, 1fr);
  }

  .rr-customer .btn-cta {
    width: 100%;
    height: 48px;
  }

  .rr-input,
  .rr-prefix {
    height: 48px;
  }

  .rr-row {
    flex-direction: column;
    gap: 2px;
  }

  .rr-value {
    text-align: left;
  }

  .rr-row-actions .btn + .btn {
    margin-left: 0;
  }

  .rr-row-actions {
    justify-content: flex-start;
  }
}
