.friend-page { background: #f7f1e6; min-height: 100vh; }
.friend-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0 100px; }
.friend-nav { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.friend-nav .wordmark { font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1; text-decoration: none; }
.friend-nav a:last-child { font-size: .88rem; font-weight: 650; }
.friend-main { display: grid; gap: clamp(28px, 6vw, 70px); align-items: center; padding-top: clamp(20px, 4vw, 44px); }
.gift-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: min(112vw, 470px); padding: clamp(25px, 6vw, 40px); overflow: hidden;
  border: 1px solid rgba(0,47,58,.2); border-radius: 27px;
  background: linear-gradient(135deg, #fff0b4 0%, #ffdf75 46%, #f9c848 100%);
  color: #002f3a; box-shadow: 0 24px 55px -27px rgba(0,47,58,.36);
}
.gift-card::before { content: ''; position: absolute; width: 290px; height: 290px; border-radius: 50%; right: -100px; top: -115px; background: rgba(255,255,255,.2); }
.gift-card::after { content: ''; position: absolute; width: 240px; height: 240px; border: 1px solid rgba(0,47,58,.11); border-radius: 50%; left: -140px; bottom: -130px; }
.gift-card > * { position: relative; z-index: 1; }
.gift-top { display: flex; align-items: flex-start; justify-content: space-between; }
.gift-top .wordmark { font-size: clamp(2.1rem, 8vw, 3rem); line-height: 1; }
.gift-note { font-size: 2rem; transform: rotate(12deg); }
.gift-center { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 10px 0; }
.gift-center svg { width: 84px; height: 84px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-7deg); }
.gift-center strong { display: block; font: 700 clamp(2rem, 7vw, 2.8rem)/1.15 var(--heading); letter-spacing: -.035em; }
.gift-center span { font-size: .95rem; }
.gift-bottom { border-top: 1px solid rgba(0,47,58,.25); padding-top: 15px; display: flex; gap: 12px; align-items: end; justify-content: space-between; }
.gift-bottom small { display: block; font-weight: 750; letter-spacing: .12em; font-size: .67rem; }
.gift-bottom code { display: block; margin-top: 3px; font: 700 1.1rem var(--heading); letter-spacing: .04em; }
.gift-bottom .site { font-size: .78rem; white-space: nowrap; }
.friend-copy { max-width: 550px; }
.friend-copy .eyebrow { margin-bottom: 10px; }
.friend-copy h1 { font-size: clamp(2.3rem, 8vw, 4.4rem); }
.friend-copy .lead { margin-bottom: 21px; }
.friend-cta { width: 100%; max-width: 460px; margin: 0 0 10px; }
.friend-open { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; margin-bottom: 10px; }
.friend-code { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 15px; max-width: 470px; padding: 14px 16px; margin: 4px 0 16px; border: 1px solid rgba(0,47,58,.2); border-radius: 16px; background: rgba(255,255,255,.65); }
.friend-code span { flex-basis: 100%; font-size: .75rem; color: var(--muted); }
.friend-code strong { font: 700 1.25rem var(--heading); letter-spacing: .06em; }
.friend-code button { margin-left: auto; padding: 9px 12px; border: 1px solid rgba(0,47,58,.3); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.friend-code button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.friend-copy .fine { max-width: 470px; }
.friend-copy .free-route { display: inline-flex; align-items: center; min-height: 48px; font-weight: 650; margin-top: 5px; }
.friend-terms { max-width: 760px; margin: clamp(42px, 6vw, 70px) auto 0; border-top: 1px solid var(--paper-line); padding-top: 25px; }
.friend-terms h2 { font-size: 1.35rem; margin-bottom: 14px; }
.friend-terms ol { margin: 0 0 16px; padding-left: 1.3em; }
.friend-terms li { padding-left: .2em; margin: 0 0 .5em; }
.friend-terms p { font-size: .86rem; color: var(--muted); }
.friend-footer { margin-top: 60px; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
@media (min-width: 750px) { .friend-main { grid-template-columns: minmax(330px, 470px) 1fr; } .gift-card { min-height: 460px; } }
@media (max-width: 460px) { .gift-bottom { align-items: start; flex-direction: column; } .gift-card { min-height: 420px; } }
