/* Rosewick's website: the app's own colours (src/styles/names.css) and its IM Fell type.
   One quiet night background; the phones and their screens do the talking. */
:root {
  --night: #0f0709;
  --night2: #170b0f;
  --wine: #5a1c2c;
  --gold: #c9a35b;
  --gold2: #e2c07e;
  --gold3: #f0d595;
  --cream-bright: #fbf1dd;
  --cream: #efe4d2;
  --cream-soft: #cdbf9f;
  --muted: #a8977f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: 'IM Fell DW Pica', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: var(--gold2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sc { font-family: 'IM Fell DW Pica SC', Georgia, serif; letter-spacing: .12em; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream-bright); text-decoration: none; font-style: italic; font-size: 26px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--cream-soft); text-decoration: none; font-size: 17px; }
.top nav a:hover { color: var(--gold3); }

/* a phone: a dark rounded frame round a real screen */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 780 / 1688;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2326, #0b0809);
  box-shadow: 0 0 0 1px rgba(201, 163, 91, .25), 0 30px 60px rgba(0, 0, 0, .6);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  width: 76px; height: 22px;
  margin-left: -38px;
  border-radius: 12px;
  background: #000;
}

/* the hero: words on one side, three phones floating on the other */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 40px 0 90px; }
.hero h1 { margin: 0; font-style: italic; font-weight: 400; font-size: 68px; line-height: 1; color: var(--cream-bright); }
.hero .tag { margin: 12px 0 0; font-style: italic; font-size: 27px; color: var(--gold2); }
.hero .lead { margin: 18px 0 0; max-width: 460px; font-size: 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 12px 22px;
  border: 1.5px solid var(--gold); border-radius: 14px;
  color: var(--gold3); font-size: 18px; font-style: italic;
}

.stage { position: relative; height: 600px; }
.stage .phone { position: absolute; top: 50%; left: 50%; }
.stage .p1 { width: 220px; transform: translate(-125%, -46%) rotate(-8deg); opacity: .9; }
.stage .p3 { width: 220px; transform: translate(25%, -46%) rotate(8deg); opacity: .9; }
.stage .p2 { width: 270px; transform: translate(-50%, -50%); z-index: 2; }
/* each one floats a little, out of step with the others */
.float { animation: float 7s ease-in-out infinite; }
.p1.float, .p3.float { animation-duration: 8s; }
.p3.float { animation-delay: -3s; }
.feature .float { animation-duration: 9s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* the front phone changes screen now and then, a soft cross-fade */
.slides img { opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }

/* a soft moon glow behind the phones, the one bit of light on the page */
.stage::before {
  content: '';
  position: absolute; left: 50%; top: 46%;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 199, 122, .16) 0%, rgba(243, 199, 122, 0) 65%);
}

/* sections: a phone beside a few words, each one rising in as you scroll */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; }
.feature .phone { justify-self: center; width: 270px; }
.feature.flip .phone { order: 2; }
.feature h2 { margin: 0; font-style: italic; font-weight: 400; font-size: 44px; line-height: 1.08; color: var(--cream-bright); }
.feature p { margin: 14px 0 0; max-width: 440px; }
.kicker { display: block; margin-bottom: 10px; font-size: 14px; color: var(--gold2); }
.rise { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.rise.in { opacity: 1; transform: none; }

.calm { text-align: center; padding: 90px 0 100px; }
.calm h2 { margin: 0; font-style: italic; font-weight: 400; font-size: 44px; color: var(--cream-bright); }
.calm p { margin: 12px auto 0; max-width: 520px; color: var(--cream-soft); font-style: italic; }

footer { border-top: 1px solid rgba(201, 163, 91, .18); padding: 30px 0 44px; color: var(--muted); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--cream-soft); text-decoration: none; }
footer a:hover { color: var(--gold3); }

/* the plain pages: privacy, terms, support */
.doc { max-width: 720px; padding: 30px 20px 80px; margin: 0 auto; }
.doc h1 { margin: 10px 0 4px; font-style: italic; font-weight: 400; font-size: 48px; color: var(--cream-bright); }
.doc .updated { margin: 0 0 30px; color: var(--muted); font-style: italic; }
.doc h2 { margin: 36px 0 8px; font-style: italic; font-weight: 400; font-size: 28px; color: var(--cream-bright); }
.doc p, .doc li { color: var(--cream); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .draft { padding: 14px 18px; border: 1px dashed var(--gold); border-radius: 12px; color: var(--gold3); font-size: 16px; }

@media (max-width: 820px) {
  body { font-size: 18px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding: 10px 0 40px; gap: 10px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 54px; }
  .hero .tag { font-size: 23px; }
  .stage { height: 470px; order: -1; }
  .stage .phone.p2 { width: 210px; }
  .stage .phone.p1, .stage .phone.p3 { width: 170px; }
  .stage::before { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; text-align: center; }
  .feature.flip .phone { order: 0; }
  .feature p { margin-left: auto; margin-right: auto; }
  .feature h2, .calm h2 { font-size: 36px; }
  .feature .phone { width: 230px; }
  footer .wrap { flex-direction: column; align-items: center; text-align: center; }
  .doc h1 { font-size: 40px; }
}

/* Reduce Motion: everything stays still */
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .slides img { transition: none; }
}

/* the policy's table of purposes */
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.95em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(201, 163, 91, 0.25); }
.doc th { color: #c9a35b; font-weight: normal; }
