/* ----------------------------------------------------------------------------
   Ripe splash site — on-brand with the app (Satoshi + Geist, brand palette)
---------------------------------------------------------------------------- */

@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/Satoshi-Variable.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/Geist_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --green-dark: #2B3118;
  --green-darker: #18311F;
  --green: #526535;
  --cream: #F5F4ED;
  --tomato: #D94A2E;
  --tomato-deep: #C0392B;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--green-darker);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint paper grain for warmth + depth (matches the privacy page) */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43, 49, 24, 0.025) 1px, transparent 0);
  background-size: 22px 22px;
}

/* --- Hero shell ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* soft organic bloom behind the phone — warmth without muddying the cream */
.glow {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 760px;
  height: 760px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 58% 44%, rgba(82, 101, 53, 0.12) 0%, rgba(82, 101, 53, 0) 62%),
    radial-gradient(circle at 42% 60%, rgba(217, 74, 46, 0.06) 0%, rgba(217, 74, 46, 0) 52%);
  filter: blur(14px);
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

/* --- Left content --------------------------------------------------------- */
.content { max-width: 540px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 56px;
}
.brand__mark { width: 34px; height: auto; display: block; }
.brand__name {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--green-darker);
}

.headline {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  color: var(--green-darker);
}

.subcopy {
  margin-top: 22px;
  max-width: 420px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: #3a4226;
  opacity: 0.92;
}

/* --- CTA ------------------------------------------------------------------ */
.cta { margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* deep green pill that "ripens" to tomato on hover — a nod to the brand */
  background: var(--green-dark);
  color: var(--cream);
  text-decoration: none;
  padding: 17px 32px;
  border-radius: 50px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.1px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.4s ease;
  box-shadow: 0 12px 28px rgba(43, 49, 24, 0.22);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--tomato-deep);
  color: #fff;
  box-shadow: 0 18px 38px rgba(192, 57, 43, 0.32);
}
.btn:active { transform: translateY(0); }
.btn__apple { width: 20px; height: 20px; }

.cta__caption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--green);
  opacity: 0.85;
}

/* --- Device --------------------------------------------------------------- */
.device-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1600px;
}

.phone {
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.device-wrap:hover .phone { transform: rotate(-2deg) translateY(-6px); }

.phone__frame {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 52px;
  padding: 11px;
  /* brushed titanium frame */
  background:
    linear-gradient(145deg, #3a3a3c 0%, #1c1c1e 18%, #48484a 50%, #1c1c1e 82%, #3a3a3c 100%);
  box-shadow:
    0 2px 4px rgba(255, 255, 255, 0.18) inset,
    0 -1px 3px rgba(0, 0, 0, 0.6) inset,
    0 38px 70px rgba(43, 49, 24, 0.18),
    0 14px 30px rgba(43, 49, 24, 0.12);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* dynamic island */
.phone__island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 27px;
  background: #000;
  border-radius: 16px;
  z-index: 3;
}

/* glass reflection sheen sweeping across the screen */
.phone__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.06) 18%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* side buttons */
.phone__btn {
  position: absolute;
  background: linear-gradient(180deg, #2a2a2c, #404042);
  border-radius: 2px;
  z-index: 0;
}
.phone__btn--silent { left: -2px; top: 124px; width: 3px; height: 26px; }
.phone__btn--vup    { left: -2px; top: 168px; width: 3px; height: 46px; }
.phone__btn--vdown  { left: -2px; top: 226px; width: 3px; height: 46px; }
.phone__btn--power  { right: -2px; top: 188px; width: 3px; height: 66px; }

/* --- Quiet footer --------------------------------------------------------- */
/* Rests just below the fold, nearly dissolving into the dark green until the
   eye (or cursor) finds it. */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 56px 30px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(43, 49, 24, 0.1);
}
.footer__copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--green-darker);
  opacity: 0.42;
  transition: opacity 0.3s ease;
}
.footer:hover .footer__copy { opacity: 0.6; }
.footer__mark { width: 15px; height: auto; opacity: 0.9; }
.footer__sep { opacity: 0.5; }
.footer__year { font-weight: 400; }

.footer__nav { display: inline-flex; gap: 26px; }
.footer__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--green);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.footer__link:hover { opacity: 1; color: var(--tomato-deep); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { align-items: flex-start; }
  .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
    padding: 56px 28px 72px;
  }
  .content { max-width: 100%; margin: 0 auto; }
  .brand { margin-bottom: 36px; }
  .subcopy { margin-left: auto; margin-right: auto; }
  .glow { right: 50%; transform: translate(50%, -50%); top: 70%; }
  .device-wrap { order: 2; }
  .content { order: 1; }
  .footer { padding: 8px 28px 36px; }
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .phone__frame { width: 260px; height: 538px; }
}

/* ==========================================================================
   Legal / Privacy page — editorial reading layout on warm cream
   ========================================================================== */
.legal {
  background: var(--cream);
  color: var(--green-darker);
  /* faint paper grain via layered radial dots */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43, 49, 24, 0.025) 1px, transparent 0);
  background-size: 22px 22px;
}

.legal__top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(24px, 5vw, 56px);
  background: rgba(245, 244, 237, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(43, 49, 24, 0.08);
}
.legal__home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.legal__mark { width: 26px; height: auto; }
.legal__brand {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.5px;
  color: var(--green-darker);
}
.legal__back {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
}
.legal__back:hover { background: rgba(82, 101, 53, 0.1); color: var(--green-darker); }

.legal__main {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 40px) 120px;
}

.doc__kicker {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tomato-deep);
  margin-bottom: 14px;
}
.doc__title {
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--green-darker);
}
.doc__date {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
}
.doc__lead {
  margin-top: 36px;
  font-size: 19px;
  line-height: 1.65;
  color: #3a4226;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(43, 49, 24, 0.1);
}

.doc__section { margin-top: 48px; }
.doc__h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: 'Satoshi', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.4px;
  color: var(--green-darker);
  margin-bottom: 18px;
}
.doc__num {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--tomato-deep);
  letter-spacing: 0.5px;
  flex: none;
  transform: translateY(-2px);
}
.doc p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #434b30;
  margin-bottom: 14px;
}
.doc strong { color: var(--green-darker); font-weight: 600; }
.doc__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.doc__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #434b30;
  margin-bottom: 10px;
}
.doc__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.doc a {
  color: var(--tomato-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(192, 57, 43, 0.35);
  transition: border-color 0.2s ease;
}
.doc a:hover { border-color: var(--tomato-deep); }

.doc__contact {
  margin-top: 56px;
  padding: 28px 32px;
  background: rgba(82, 101, 53, 0.07);
  border-radius: 18px;
  border: 1px solid rgba(82, 101, 53, 0.14);
}
.doc__contact .doc__h2 { margin-bottom: 14px; }
.doc__contact-block {
  font-size: 16.5px;
  line-height: 1.8;
  color: #434b30;
  margin-bottom: 0;
}
.doc__rights {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(43, 49, 24, 0.1);
  font-size: 13px;
  color: var(--green);
  opacity: 0.7;
}
