/* Marketing landing + public legal pages — loaded only by the `landing`
   layout, so selectors are page-global on purpose.

   Visual design: the CEO's static marketing mock
   (Gifted_Static_Marketing_Landing.html). Deviations from the mock are
   deliberate and limited to:
     - Fonts are self-hosted (app/assets/fonts) instead of the Google Fonts
       <link>: the CSP (style-src/font-src 'self') blocks Google Fonts in
       production, which would silently fall back to system faces.
     - The three hero gift photos are separate, right-sized WebP files shown
       with object-fit: cover, instead of one 2.5 MB base64 PNG sprite
       stretched with background-size (which also distorted the photos).
     - Three colours are nudged to meet WCAG AA (4.5:1 for small text):
       CTA #8b5cf6 -> #8253f2 (white text 4.23 -> 4.70:1; hover darkens
       instead of lightening, 3.63 -> 4.96:1), and the illustrative-example
       note + footer #64748b -> #7c8aa0 (3.67-4.24 -> 4.99-6.0:1).
     - The floating reminder card no longer covers the illustrative-example
       note on narrower screens (see .reminder).
     - The footer adds a Contact link (support mailbox) beside Privacy and
       Terms, and wraps instead of squeezing on small phones. */

/* ---------------------------------------------------------------------
   Fonts — same self-hosted woff2 files and @font-face set as dashboard.css.
   Propshaft rewrites the bare url()s to digested asset paths.
   --------------------------------------------------------------------- */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-latin-ext-85d7696f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/dm-sans-latin-3c2f9c90.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-latin-ext-aaac083c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-latin-09178d01.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-italic-latin-ext-2503afef.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/dm-serif-display-italic-latin-5463c909.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------
   Tokens + base
   --------------------------------------------------------------------- */

:root {
  --grad: linear-gradient(135deg, #fbbf24, #fb923c 30%, #ec4899 65%, #a855f7);
  --purple: #8253f2;
  --purple-hover: #7c4ff0;
  --orange: #fb923c;
  --text: #f9fafb;
  --muted: #94a3b8;
  --quiet: #7c8aa0;
  --border: #94a3b81f;
  --serif: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 15% 0, #111827, #020617 60%, #000);
  color: var(--text);
  font: 15px/1.5 "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 4px;
}

/* Flash messages (Devise sign-out notices, OAuth failure alerts). The shared
   partial is inline-styled; this only reserves comfortable spacing. The
   layout renders the wrapper only when a flash is present, so no empty
   spacer ever shifts the header. */
.flash-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px 0;
}

/* ---------------------------------------------------------------------
   Shared chrome: header (shared/_landing_header) + footer
   (shared/_landing_footer), used by the landing and legal pages.
   --------------------------------------------------------------------- */

.nav {
  max-width: 1280px;
  margin: auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 4px 20px #ec48994d;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.login {
  font-size: 13px;
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 17px;
}

.site-footer {
  max-width: 1176px;
  margin: 18px auto 0;
  padding: 20px 0;
  color: var(--quiet);
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer a:hover { color: #cbd5e1; }

/* ---------------------------------------------------------------------
   Landing hero (landing/index)
   --------------------------------------------------------------------- */

.hero {
  max-width: 1240px;
  padding: 50px 32px 55px;
  margin: auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 65px;
  align-items: center;
}

.eyebrow {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  font: 400 clamp(40px, 4.2vw, 57px)/1.08 var(--serif);
  letter-spacing: -.035em;
  margin: 18px 0 22px;
}

h1 em,
.gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.copy p {
  font-size: 17px;
  color: #b5bfd0;
  max-width: 390px;
  margin: 0 0 30px;
  line-height: 1.65;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  border-radius: 12px;
  padding: 15px 23px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 30px #8b5cf629;
}

.cta:hover { background: var(--purple-hover); }

.cta-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 13px;
}

/* Illustrative concierge window. Decorative sample content: the visible
   "Illustrative conversation…" note labels it for every visitor. */
.scene { position: relative; }

.app-window {
  border: 1px solid #f9731638;
  background: linear-gradient(135deg, #21180e, #11101a 55%);
  border-radius: 22px;
  box-shadow: 0 20px 70px #0004;
  overflow: hidden;
}

.app-head {
  padding: 17px 21px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--border);
}

.avatar {
  position: relative;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

/* "Online" status dot. */
.avatar::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #111827;
  background: #4ade80;
  border-radius: 50%;
}

.app-head strong { font-size: 18px; }

.sample-label {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.conversation { padding: 22px; }

.user-message {
  margin-left: 45px;
  padding: 13px 16px;
  background: #f973161c;
  border: 1px solid #f9731633;
  border-radius: 13px;
  font-size: 13px;
  line-height: 1.6;
}

.user-message small {
  display: block;
  color: var(--orange);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.reply {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.reply p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.65;
}

.reply strong { color: var(--text); }

.gifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 17px;
}

.gift {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

/* Square source photos, cover-cropped into a short landscape tile. The
   per-photo focal points keep the subject in frame at every breakpoint
   (e.g. the oil bottles' corks rather than their bases). */
.photo {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  object-position: center 60%;
}

.photo.oil { object-position: center 8%; }

.photo.journal { object-position: center 45%; }

.gift-info { padding: 11px; }

.gift h3 {
  font-size: 11px;
  line-height: 1.4;
  margin: 0 0 6px;
  font-weight: 600;
}

.gift p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.gift b {
  display: block;
  color: var(--orange);
  font-size: 12px;
  margin-top: 9px;
}

.example-note {
  color: var(--quiet);
  font-size: 9px;
  padding: 12px 0 0;
}

/* The "reminder set" card floats over the window's bottom edge. The mock
   absolutely positioned it, which hid the illustrative-example note
   beneath it below ~1200px (and on every phone). It now sits in flow and
   overlaps only the conversation's bottom padding (22px; 17px on mobile),
   so the note stays visible at any width and any card height. */
.reminder {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: -20px -15px 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 15px;
  border: 1px solid #a78bfa4d;
  background: #111a30;
  box-shadow: 0 10px 40px #0004;
}

.calendar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #8b5cf622;
  color: #a78bfa;
  display: grid;
  place-items: center;
}

.reminder strong {
  display: block;
  font-size: 12px;
}

.reminder small {
  color: var(--muted);
  font-size: 10px;
}

.set {
  font-size: 10px;
  background: #4ade8015;
  color: #4ade80;
  border-radius: 20px;
  padding: 5px 8px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Benefits strip
   --------------------------------------------------------------------- */

.benefits {
  max-width: 1176px;
  margin: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
}

.benefit > span {
  color: var(--orange);
  font: 400 25px var(--serif);
}

.benefit strong {
  display: block;
  font-size: 13px;
}

.benefit small {
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------
   Static legal pages (pages/privacy, pages/terms)
   --------------------------------------------------------------------- */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 26px 32px 10px;
}

.legal-page h1 { margin-top: 0; }

.legal-page h2 {
  font: 400 27px/1.2 var(--serif);
  letter-spacing: -.02em;
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  color: #b5bfd0;
  font-size: 16px;
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 14px;
}

.legal-page .legal-review-note {
  border: 1px solid #f9731638;
  background: #f973161c;
  border-radius: 14px;
  padding: 14px 18px;
  color: #e2e8f0;
  font-size: 15px;
  margin: 22px 0 34px;
}

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { gap: 30px; padding-top: 25px; }
  .photo { height: 100px; }
  .benefits,
  .site-footer { margin-left: 32px; margin-right: 32px; }
  .reminder { margin-right: 0; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 600px;
    padding: 25px 22px 30px;
  }

  .copy { text-align: center; }

  .copy p {
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    max-width: 430px;
  }

  h1 { font-size: 43px; }
  .nav { padding: 20px 22px; }
  .flash-wrap { padding: 16px 22px 0; }
  .photo { height: 130px; }

  .benefits {
    flex-direction: column;
    margin: 0 22px;
    gap: 20px;
    padding: 25px 0;
  }

  .site-footer { margin: 0 22px; padding: 20px 0; }
  .reminder { padding: 13px; gap: 9px; margin-top: -16px; }
  .conversation { padding: 17px; }
  .sample-label { font-size: 9px; }
  .legal-page { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 400px) {
  .photo { height: 95px; }
  .gift-info { padding: 8px; }
  .gift h3 { font-size: 10px; }
  .gift p { font-size: 9px; }
  .reminder { width: auto; margin-left: 15px; }
  .user-message { margin-left: 15px; }
  .reply { gap: 8px; }
  .set { margin-left: auto; padding: 4px 6px; font-size: 9px; }
  .reminder strong { font-size: 11px; }
}
