/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-500italic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/xpage/fonts/cormorant-garamond-v21-cyrillic_latin-600italic.woff2') format('woff2');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/xpage/fonts/inter-tight-v9-cyrillic_latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/xpage/fonts/jetbrains-mono-v24-cyrillic_latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* =========================================================
   SCOPE
   ========================================================= */
.or-page {
  /* design tokens */
  --bg: #foebe3;
  --bg-card: #fdfbf7;
  --bg-tint: #faf4ee;
  --ink: #1a1613;
  --ink-2: #3a342e;
  --ink-3: #6b6259;
  --ink-4: #9a9187;
  --rule: #e4ddd1;
  --rule-strong: #d6ccbd;
  --accent: oklch(0.58 0.11 25);
  --accent-2: oklch(0.52 0.12 25);
  --accent-tint: oklch(0.97 0.012 30);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --t: 0.24s cubic-bezier(.2,.7,.2,1);
  --shadow-soft: 0 10px 28px -12px rgba(60, 40, 18, 0.30), 0 4px 10px -6px rgba(60, 40, 18, 0.18);
  --shadow-card: 0 22px 48px -18px rgba(60, 40, 18, 0.40), 0 8px 18px -8px rgba(60, 40, 18, 0.24);

  /* page layout */
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px 80px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;

  & *, & *::before, & *::after { box-sizing: border-box; margin: 0; padding: 0; }
  & a { color: inherit; text-decoration: none; }
  & em { font-style: italic; }
  & svg { display: block; max-width: 100%; }

  /* shared atoms */
  & .r-h-top {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: var(--ink-4);
    text-transform: uppercase;
    flex-wrap: wrap;
    margin-bottom: 18px;

    & .cat:first-child::before {
      content: '';
      display: inline-block;
      width: 18px; height: 1px;
      background: var(--ink-4);
      margin-right: 8px;
      vertical-align: middle;
    }
  }
  & .r-h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(40px, 4.6vw, 64px);
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
    & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
  }
  & .r-lead {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(20px, 2vw, 24px);
    color: var(--ink-2);
    line-height: 1.4;
    letter-spacing: -0.005em;
  }

  /* prose */
  & .prose {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-2);

    & p { margin: 14px 0; text-wrap: pretty; }
    & p strong { font-weight: 600; color: var(--ink); font-style: normal; }
    & p em { color: var(--accent-2); font-style: italic; }
    & h3 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(20px, 1.9vw, 24px);
      line-height: 1.2;
      letter-spacing: -0.005em;
      color: var(--ink);
      margin: 28px 0 12px;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
  }

  /* steps */
  & .steps {
    list-style: none;
    display: flex; flex-direction: column;
    margin: 24px 0;
    border-top: 1px solid var(--rule);

    & > li {
      display: grid;
      grid-template-columns: 64px 1fr;
      gap: 22px;
      padding: 22px 0;
      border-bottom: 1px dashed var(--rule);
      &:last-child { border-bottom: 1px solid var(--rule); }
      & .n {
        font-family: var(--serif);
        font-style: italic;
        font-weight: 500;
        font-size: 36px;
        line-height: 1;
        color: var(--accent-2);
        letter-spacing: -0.02em;
        padding-top: 4px;
      }
      & .copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
      & .lbl {
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.18em;
        color: var(--ink-4);
        text-transform: uppercase;
      }
      & .ttl {
        font-family: var(--serif);
        font-weight: 500;
        font-size: 22px;
        color: var(--ink);
        letter-spacing: -0.005em;
        line-height: 1.2;
        & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
      }
      & .desc {
        font-family: var(--serif);
        font-style: italic;
        font-size: 16px;
        color: var(--ink-3);
        line-height: 1.45;
        & strong { color: var(--ink); font-weight: 600; font-style: normal; }
      }
    }
  }

  /* req list */
  & .req {
    list-style: none;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--rule);
    display: flex; flex-direction: column;
    gap: 6px;

    & li {
      display: flex; align-items: baseline; gap: 10px;
      font-family: var(--serif);
      font-style: italic;
      font-size: 15px;
      color: var(--ink-2);
      padding: 4px 0;
      &::before {
        content: '·';
        font-family: var(--mono);
        font-style: normal;
        color: var(--accent);
        font-size: 18px;
        line-height: 1;
        flex-shrink: 0;
        width: 12px;
      }
    }
  }

  /* warns */
  & .warns {
    background: var(--accent-tint);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 24px 26px;
    margin: 32px 0;
    box-shadow: var(--shadow-soft);

    & h4 {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.2em;
      color: var(--accent-2);
      text-transform: uppercase;
      margin-bottom: 18px;
      display: flex; align-items: center; gap: 10px;
      &::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
    }
    & ul { list-style: none; }
    & ul li {
      position: relative;
      padding: 10px 0 10px 26px;
      border-bottom: 1px dashed var(--rule);
      font-family: var(--serif);
      font-style: italic;
      font-size: 16px;
      color: var(--ink-2);
      line-height: 1.45;
      &:last-child { border-bottom: none; }
      &::before {
        content: '×';
        position: absolute;
        left: 0; top: 10px;
        font-family: var(--mono);
        font-style: normal;
        color: var(--accent);
        font-size: 16px;
        font-weight: 500;
      }
      & strong { color: var(--ink); font-weight: 600; font-style: normal; }
    }
  }

  /* ref block */
  & .ref {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin: 24px 0;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;

    & .ico {
      width: 36px; height: 36px;
      border-radius: 50%;
      border: 1px solid var(--rule-strong);
      background: var(--bg-tint);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-2);
      flex-shrink: 0;
      & svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }
    }
    & .copy { display: flex; flex-direction: column; gap: 4px; }
    & .copy .lbl {
      font-family: var(--mono);
      font-size: 9.5px;
      letter-spacing: 0.18em;
      color: var(--ink-4);
      text-transform: uppercase;
    }
    & .copy .txt {
      font-family: var(--serif);
      font-style: italic;
      font-size: 15.5px;
      color: var(--ink-2);
      line-height: 1.4;
      & strong { color: var(--ink); font-weight: 600; font-style: normal; }
    }
  }

  /* download */
  & .download {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 18px 22px;
    margin: 16px 0;
    transition: box-shadow var(--t), transform var(--t);
    &:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }

    & .doc {
      width: 44px; height: 56px;
      border-radius: var(--r-sm);
      background: var(--bg-tint);
      border: 1px solid var(--rule-strong);
      display: flex; align-items: center; justify-content: center;
      color: var(--accent-2);
      position: relative;
      flex-shrink: 0;
      &::before {
        content: '';
        position: absolute; top: 0; right: 0;
        width: 10px; height: 10px;
        background: var(--bg);
        border-left: 1px solid var(--rule-strong);
        border-bottom: 1px solid var(--rule-strong);
        border-radius: 0 0 0 2px;
      }
      & svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
    }
    & .copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    & .nm {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: 18px;
      color: var(--ink);
      letter-spacing: -0.005em;
      line-height: 1.2;
      & em { color: var(--accent-2); }
    }
    & .meta {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.14em;
      color: var(--ink-4);
      text-transform: uppercase;
      & strong { color: var(--ink); font-weight: 500; }
    }
    & .arr {
      font-family: var(--mono);
      font-size: 11px;
      letter-spacing: 0.18em;
      color: var(--ink);
      text-transform: uppercase;
      border-bottom: 1px solid var(--ink);
      padding-bottom: 2px;
      white-space: nowrap;
    }
    &:hover .arr { color: var(--accent); border-color: var(--accent); }
  }

  /* cta */
  & .cta-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    background: var(--ink); color: #fff;
    padding: 16px 30px; border-radius: 999px;
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase;
    transition: background var(--t), transform var(--t);
    white-space: nowrap;
    &:hover { background: var(--accent-2); transform: translateY(-1px); }
    & .arr { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1; }
  }
  & .cta-link {
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.16em; color: var(--ink);
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color var(--t), border-color var(--t);
    white-space: nowrap;
    &:hover { color: var(--accent); border-color: var(--accent); }
  }
  & .cta-strip {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    &::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }
    & .lead {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 500;
      font-size: clamp(20px, 2vw, 24px);
      color: var(--ink);
      line-height: 1.3;
      letter-spacing: -0.005em;
      text-wrap: balance;
      & em { color: var(--accent-2); }
    }
    & .meta {
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.16em;
      color: var(--ink-4);
      text-transform: uppercase;
      margin-top: 6px;
    }
  }

  /* variant */
  & .vb {
    padding: 48px 32px 56px;
    border-radius: var(--r-md);
  }
  & .vb_top {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 36px;
    & .r-lead { max-width: 760px; margin-top: 14px; }
  }
  & .vb_triage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
  }
  & .vb_card {
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    padding: 26px 24px;
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--t), transform var(--t);
    &:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
    &::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }
    & .n {
      font-family: var(--serif);
      font-style: italic;
      font-weight: 400;
      font-size: 48px;
      line-height: 1;
      color: var(--accent-2);
      letter-spacing: -0.02em;
    }
    & .ttl {
      font-family: var(--serif);
      font-weight: 500;
      font-size: 22px;
      color: var(--ink);
      letter-spacing: -0.008em;
      line-height: 1.15;
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
    & .sub {
      font-family: var(--serif);
      font-style: italic;
      font-size: 15px;
      color: var(--ink-3);
      line-height: 1.4;
    }
    & .meta-row {
      display: flex; justify-content: space-between; align-items: baseline;
      padding-top: 12px;
      border-top: 1px dashed var(--rule);
      margin-top: auto;
      gap: 10px;
      & .term {
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.16em;
        color: var(--ink-4);
        text-transform: uppercase;
        & strong { color: var(--ink); font-weight: 500; }
      }
    }
  }
  & .vb_sec {
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--rule);
  }
  & #sec-prepaid { border-top: none; padding-top: 0; }
  & .vb_sec_head {
    display: flex; align-items: baseline; gap: 18px;
    margin-bottom: 22px;
    & .n {
      font-family: var(--serif);
      font-style: italic;
      font-size: 44px;
      line-height: 1;
      color: var(--accent-2);
      letter-spacing: -0.02em;
    }
    & h2 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(28px, 2.8vw, 38px);
      letter-spacing: -0.012em;
      color: var(--ink);
      & em { font-style: italic; color: var(--accent-2); font-weight: 400; }
    }
  }

  /* responsive */
  @media (max-width: 1100px) {
    & .vb_triage { grid-template-columns: 1fr; gap: 20px; }
  }

  @media (max-width: 820px) {
    padding: 20px 24px 56px;
    & .prose { font-size: 16.5px; }
    & .steps > li { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; }
    & .steps > li .n { font-size: 28px; }
    & .steps > li .ttl { font-size: 19px; }
    & .steps > li .desc { font-size: 15px; }
    & .warns { padding: 20px 22px; }
    & .warns ul li { font-size: 15px; }
    & .download { grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; }
    & .download .arr { grid-column: 1 / -1; justify-self: flex-start; }
    & .vb { padding: 32px 0 40px; }
    & .vb_sec_head { flex-direction: column; gap: 6px; align-items: flex-start; }
    & .vb_sec_head .n { font-size: 36px; }
    & .cta-strip { grid-template-columns: 1fr; padding: 24px 20px; }
    & .cta-strip .cta-btn { justify-self: start; }
  }

  @media (max-width: 480px) {
    & .r-h1 { font-size: 34px; }
  }
}
