/* Itani Solutions — solutions.omaritani.dev
   Drafting-paper sheet. Tokens are the brand's; everything else is set from them. */

:root {
  --paper: #F7F6F2;
  --paper-recess: #EFEDE5;
  --paper-grid: #E4E1D7;
  --ink: #141619;
  --graphite: #4E5257;
  --mute: #6B6F73;
  --rule: #CFCCC2;
  --rule-strong: #A9A69C;
  --signal: #E85D04;
  --signal-deep: #A33F04;
  --signal-tint: #FBE9DC;
  --verified: #1B6B46;
  --verified-tint: #E3EFE8;
  --alert: #8C2B12;
  --alert-tint: #F8E6E0;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --measure: 68ch;
  --shell: 1180px;
  --rail: 46px;
  --gap: clamp(1rem, 2.4vw, 1.75rem);
  --pad-x: clamp(1rem, 4vw, 2.75rem);
}

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

/* Several elements toggled with the [hidden] attribute also declare a
   display value (.readout__result is a grid, .btn is inline-flex), which
   outranks the UA sheet's [hidden] rule. This keeps hidden meaning hidden. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---- Sheet frame ------------------------------------------------------ */

.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(to right, var(--paper-grid) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to bottom, var(--paper-grid) 0 1px, transparent 1px 120px);
  background-position: calc(var(--rail) + 20px) 44px;
}

.sheet-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0 2rem;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail-mark {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}
.rail-mark:first-child { color: var(--ink); }

.sheet-body { min-width: 0; background: transparent; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---- Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: 0.65rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: auto;
}
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}
.wordmark__sub {
  font-size: 0.74rem;
  color: var(--mute);
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--graphite);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }

/* ---- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 700;
}
.btn--signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: #fff; }

.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; border-color: #000; }

.btn--small { min-height: 38px; padding: 0.45rem 0.85rem; font-size: 0.84rem; }
.btn--block { width: 100%; }
.btn--header { flex: none; }

/* ---- Hero ------------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.hero-copy { padding-top: 0.5rem; }

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  font-weight: 600;
  max-width: 18ch;
}

.hero-lede {
  margin-top: 1.4rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  color: var(--graphite);
}

.hero-price {
  margin-top: 1.6rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--signal);
}

/* ---- Domain checker plate -------------------------------------------- */

.plate {
  background: var(--paper);
  border: 1px solid var(--ink);
  margin-top: 0.35rem;
}

.plate__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--ink);
  background:
    repeating-linear-gradient(135deg, var(--paper-recess) 0 6px, var(--paper) 6px 12px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.plate__bar-right { color: var(--signal-deep); font-weight: 500; }

.plate__body { padding: clamp(1.1rem, 2.4vw, 1.6rem); }

.plate__submit { width: 100%; margin-top: 0.9rem; }

/* fields */

.field { display: flex; flex-direction: column; gap: 0.3rem; }

.field__label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.field__hint {
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.45;
  max-width: 58ch;
}
.field__hint a { color: var(--signal-deep); }

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.4;
}
input::placeholder { color: #8B8F93; font-family: var(--font-mono); }
input:focus { border-color: var(--ink); }
input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--alert); background: var(--alert-tint); }

.field__error {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--alert);
}

.field__state {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--mute);
  min-height: 0;
}
.field__state:empty { display: none; }
.field__state.is-ok { color: var(--verified); }
.field__state.is-bad { color: var(--alert); }

/* readout */

.readout {
  margin-top: 1rem;
  border-top: 1px dashed var(--rule-strong);
  padding-top: 0.9rem;
}

.readout__idle {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--mute);
  line-height: 1.5;
}

.readout__result { display: grid; gap: 0.8rem; }

.badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
}
.badge--available { color: var(--verified); background: var(--verified-tint); }
.badge--registered { color: var(--alert); background: var(--alert-tint); }
.badge--unknown,
.badge--invalid,
.badge--pending { color: var(--graphite); background: var(--paper-recess); }

.readout__domain {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.readout__note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--graphite);
  background: var(--paper-recess);
  border-left: 3px solid var(--signal);
  padding: 0.6rem 0.75rem;
  max-width: 60ch;
}

/* ---- Sections --------------------------------------------------------- */

.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); border-top: 1px solid var(--rule); }

.section--band {
  background: var(--paper-recess);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.section-head { max-width: var(--measure); }
.section-head h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
.section-lede {
  margin-top: 0.8rem;
  color: var(--graphite);
  font-size: 1.02rem;
  max-width: 54ch;
}

/* ---- Package ledger --------------------------------------------------- */

.ledger {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: 2.25rem;
  align-items: start;
}

.ledger__list { border-top: 1px solid var(--ink); }

.ledger__item {
  display: grid;
  grid-template-columns: minmax(8rem, 15rem) minmax(0, 1fr);
  gap: 0.35rem 1.75rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
}

.ledger__item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ledger__item p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 52ch;
}

.quote {
  position: sticky;
  top: 92px;
  border: 1px solid var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fff;
}

.quote__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

.quote__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-top: 0.5rem;
}

.quote__unit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mute);
  margin-top: 0.35rem;
}

.quote .btn { margin-top: 1.4rem; }

.quote__secondary {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--signal-deep);
  text-align: center;
}

.quote__fine {
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--mute);
}
.quote__fine p + p { margin-top: 0.55rem; }

/* ---- Process steps ---------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.25rem;
  border-top: 1px solid var(--ink);
}

.step {
  padding: 1.4rem clamp(1rem, 2vw, 1.75rem) 1.4rem 0;
  border-right: 1px solid var(--rule-strong);
}
.step:last-child { border-right: 0; }
.step + .step { padding-left: clamp(1rem, 2vw, 1.75rem); }

.step__n {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-deep);
}

.step h3 {
  margin-top: 0.6rem;
  font-size: 1.15rem;
}

.step p:not(.step__n) {
  margin-top: 0.55rem;
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--graphite);
  max-width: 40ch;
}

/* ---- Onboarding form -------------------------------------------------- */

.form {
  margin-top: 2.25rem;
  max-width: 940px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  align-items: start;
}

.field--wide { grid-column: 1 / -1; }

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-recess);
  max-width: 76ch;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--signal-deep);
}
.consent label {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--graphite);
}
.consent:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 3px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.form__note { font-size: 0.82rem; color: var(--mute); }

/* ---- Brief output ----------------------------------------------------- */

.brief {
  margin-top: 2rem;
  border: 1px solid var(--ink);
  background: #fff;
}

.brief__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--ink);
  background: var(--verified-tint);
}
.brief__head h3 { font-size: 1.05rem; color: var(--verified); }
.brief__head p { font-size: 0.85rem; color: var(--graphite); }
.brief__head a { color: var(--verified); font-weight: 600; }

.brief__text,
.brief__json pre {
  display: block;
  margin: 0;
  padding: 1.2rem;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 26rem;
}
.brief__text { border-bottom: 1px solid var(--rule); }

.brief__json summary {
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
}
.brief__json summary:hover { color: var(--ink); }
.brief__json pre { background: var(--paper-recess); }

.brief__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
}

.brief__status { font-size: 0.8rem; color: var(--verified); font-weight: 600; }

/* ---- Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 2rem 2.5rem;
  margin-top: 1rem;
}

.titleblock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  grid-auto-flow: column;
}
.titleblock > div {
  padding: 0.7rem 0.9rem;
  border-right: 1px solid var(--rule-strong);
}
.titleblock > div:last-child { border-right: 0; }
.titleblock dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.titleblock dd { margin-top: 0.25rem; font-size: 0.84rem; font-weight: 500; }
.titleblock a { font-weight: 500; }
.titleblock__abn {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mute);
}

.footer-policy {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  max-width: 82ch;
}
.footer-policy__title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.footer-policy p + p,
.footer-policy__title + p {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--mute);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--mute);
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 22ch; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .quote { position: static; max-width: 460px; }
  .site-nav { display: none; }
}

@media (max-width: 46rem) {
  .sheet { grid-template-columns: minmax(0, 1fr); background-position: 20px 44px; }
  .sheet-rail {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0.6rem var(--pad-x);
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
  }
  .rail-mark { writing-mode: horizontal-tb; font-size: 0.62rem; }
  .rail-mark:nth-child(2) { display: none; }

  .header-inner { flex-wrap: nowrap; gap: 0.75rem; min-height: 60px; }
  .wordmark { min-width: 0; }
  .wordmark__name { font-size: 1.02rem; }
  .wordmark__sub { display: none; }
  .btn--header {
    flex: none;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-size: 0.79rem;
    white-space: nowrap;
  }

  .quote__fine { font-size: 0.84rem; }

  .ledger__item { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }

  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step,
  .step + .step {
    padding: 1.1rem 0;
    border-right: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .form__grid { grid-template-columns: minmax(0, 1fr); }

  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; }
  .titleblock > div:nth-child(2) { border-right: 0; }
  .titleblock > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule-strong); }
}

@media (max-width: 24rem) {
  .brief__actions .btn { width: 100%; }
}

@media print {
  .sheet-rail, .site-header, .plate, .quote, .form, .skip-link { display: none; }
  body { background: #fff; }
}
