/* YRent website. The app's own look: warm paper, ink type in Geist, the key's two greens,
   open rows between hairlines, one band of contour pattern. Light only, as the app is. */
:root {
  --paper: #F5F1EA;
  --surface: #FFFFFF;
  --ink: #1A2332;
  --ink2: #4A5568;
  --ink3: #64748B;
  --line: #D6D0C4;
  --green: #246B4B;
  --mark: #4E9A78;
  --mark-deep: #1F7A52;
  --mint: #E6F2EB;
  --wash: rgba(196, 228, 211, 0.62);
  --contour: rgba(36, 107, 75, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, .pill:focus-visible { outline: 2px solid var(--mark-deep); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }

/* ---- the top: the key, the name, the links ---- */
.top { display: flex; align-items: center; gap: 12px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: 36px; flex: none; }
.wordmark { font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
.wordmark b { color: var(--mark-deep); font-weight: 700; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--mint); }
.top nav a[aria-current="page"] { color: var(--mark-deep); }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.pill:hover { background: #0F1622; }
.pill.light { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pill.light:hover { background: var(--mint); }

/* ---- the hero ---- */
.hero { padding-block: 34px 8px; }
.hero h1 { font-weight: 600; font-size: clamp(40px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.hero h1 b { color: var(--mark-deep); font-weight: 600; }
.hero .tag { font-weight: 300; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; color: var(--ink2); margin: 10px 0 0; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); max-width: 34em; margin: 22px 0 0; }
.hero .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero .note { color: var(--ink3); font-size: 15px; margin: 16px 0 0; }

/* ---- the band of pattern, with the app on it ---- */
.band { position: relative; margin-top: 34px; padding-block: 56px; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 241, 234, 0) 0%, var(--wash) 22%, var(--wash) 74%, rgba(245, 241, 234, 0) 100%); }
.band .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.band .contours path { fill: none; stroke: var(--contour); stroke-width: 1.3; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(245, 241, 234, 0) 18%, rgba(245, 241, 234, 0) 82%, var(--paper) 100%); pointer-events: none; }
.phones { position: relative; z-index: 1; display: flex; gap: 22px; justify-content: center; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, env(safe-area-inset-left, 0px)) 14px; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phone { flex: none; width: 224px; scroll-snap-align: center; margin: 0; }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: 34px; border: 6px solid var(--ink); background: var(--paper); box-shadow: 0 18px 40px rgba(26, 35, 50, 0.16); }
.phone figcaption { text-align: center; font-weight: 500; font-size: 15px; margin-top: 12px; color: var(--ink); }
@media (max-width: 1020px) { .phones { justify-content: flex-start; } }

/* ---- sections ---- */
section { padding-block: 44px; }
h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 10px; text-wrap: balance; }
h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 4px; }
.label { font-weight: 500; font-size: 14px; color: var(--mark-deep); margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--ink2); }
.small { font-size: 14.5px; color: var(--ink3); }

/* open rows between hairlines, as the app's lists are */
.rows { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rows li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.rows li:first-child { border-top: 0; }
.badge { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }
.badge svg { width: 22px; height: 22px; stroke: var(--mark-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 44px; margin-top: 8px; }
.block { padding-block: 22px; border-top: 1px solid var(--line); min-width: 0; }
.address { font-weight: 600; font-size: 20px; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

/* ---- the plain pages (privacy, support) ---- */
.page { padding-block: 26px 40px; }
.page h1 { font-weight: 600; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 6px; }
.page h2 { font-size: 22px; margin: 34px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.page ul { margin: 0 0 14px; padding-left: 20px; }
.page li { margin-bottom: 6px; }
.page p, .page li { color: var(--ink2); max-width: 65ch; }
.page strong { color: var(--ink); font-weight: 600; }

/* ---- the foot: the lockup signs the page ---- */
footer { border-top: 1px solid var(--line); margin-top: 20px; padding-block: 30px 44px; text-align: center; }
.lockup { font-size: 17px; color: var(--ink3); font-weight: 500; }
.lockup .wordmark { font-size: 19px; color: var(--ink); }
footer .links { margin-top: 12px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 15px; }
footer .small { margin: 14px auto 0; max-width: 46em; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav a.hide-s { display: none; }
  .phone { width: 200px; }
  .rows li { font-size: 17px; }
}
