@font-face { font-family: "DM Serif Display"; src: url("DMSerifDisplay-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  color-scheme: light;
  --navy: #0E1A3C;
  --night: #070C1E;
  --gold: #E2B53E;
  --gold-deep: #A3801F;
  --gold-soft: #FBF3DC;
  --ink-soft: #9A9EAB;
  --slate: #5F6168;
  --line: #E7E7EA;
  --mist: #F5F6F8;
  --page: #E4E6EC;
  --display: "DM Serif Display", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 40px rgba(14, 26, 60, .10), 0 2px 6px rgba(14, 26, 60, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--navy); font: 17px/1.6 var(--body); padding: 28px 20px; }
a { color: var(--gold-deep); }
img { max-width: 100%; }

/* The page sits in one big rounded frame */
.wrap { max-width: 1120px; margin: 0 auto; background: #fff; border-radius: 34px; padding: 18px 40px 0;
        box-shadow: 0 0 0 7px var(--navy), 0 30px 80px rgba(14, 26, 60, .25); overflow: hidden; }

/* Pill navigation */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
             background: var(--mist); border-radius: 999px; padding: 8px 10px 8px 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 22px var(--display); white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.links { display: flex; gap: 26px; }
.links a { color: var(--navy); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--gold-deep); }
.actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid #D5D7DE; border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: none; padding: 7px 13px; font: 600 13px var(--body); color: var(--slate); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.pill { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px;
        font-weight: 600; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pill:hover { transform: translateY(-1px); }
.pill.gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(226, 181, 62, .35); }
.pill.light { background: #fff; color: var(--navy); }
.pill.small { padding: 9px 18px; font-size: 14px; box-shadow: none; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: 64px; line-height: 1.05; margin: 0 0 28px; }
h2 { font-size: 48px; line-height: 1.1; margin: 0 0 14px; }
h3 { font: 600 19px/1.3 var(--body); margin: 0 0 6px; }
.soft { color: var(--ink-soft); }
h1 .soft { display: block; font-size: .78em; }

/* Hero */
.hero { text-align: center; padding: 64px 0 0; position: relative;
        background: radial-gradient(60% 50% at 50% 70%, rgba(226, 181, 62, .10), transparent 70%); }
.stage { position: relative; height: 560px; margin-top: 48px; }
.phone { background: #14151A; border-radius: 52px; padding: 10px; box-shadow: inset 0 0 0 2px #3A3B42, 0 30px 60px rgba(14, 26, 60, .25); }
.phone img { display: block; border-radius: 42px; }
.hero-phone { position: absolute; left: 50%; top: 0; width: 330px; transform: translateX(-50%); }

.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow); text-align: left;
         animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.photo.left { left: 4%; top: 70px; width: 230px; padding: 6px; transform: rotate(-3deg); animation-name: bob-tilt; }
@keyframes bob-tilt { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.photo img { display: block; border-radius: 13px; height: 140px; width: 100%; object-fit: cover; }
.badge { position: absolute; right: -14px; top: -14px; width: 46px; height: 46px; border-radius: 14px; background: var(--gold);
         color: var(--navy); display: grid; place-items: center; font-size: 20px; box-shadow: 0 8px 18px rgba(226, 181, 62, .45); }
.card.prayer { right: 3%; top: 150px; width: 260px; padding: 16px 18px; animation-delay: -2s; font-size: 14px; }
.card .row { display: flex; justify-content: space-between; align-items: center; }
.card .big { font: 20px/1.25 var(--display); margin: 8px 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.muted { color: var(--slate); }
.tag { background: #E8F6EA; color: #2E7D3A; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.card.stack { left: 10%; bottom: 60px; width: 290px; padding: 10px; animation-delay: -4s; }
.mini { display: flex; gap: 12px; align-items: center; padding: 8px; font-size: 14px; }
.mini.faded { opacity: .55; border-top: 1px solid var(--line); }
.mini small { display: block; color: var(--slate); }
.dot { width: 34px; height: 34px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; flex: none; }
.dot.gold { background: var(--gold-soft); color: var(--gold-deep); font-weight: 700; }
.langs-box { right: 8%; bottom: 70px; background: none; box-shadow: none; text-align: right; animation: none; }
.langs-box p { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 260px; }
.chips span { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; box-shadow: 0 2px 6px rgba(14, 26, 60, .05); }

/* Dark: how it works */
.dark { background: var(--night); color: #fff; margin: 0 -40px; padding: 80px 40px 90px; border-radius: 0 0 34px 34px; text-align: center; position: relative; }
.dark h2 { margin-bottom: 50px; }
.dark .soft { color: #8E93A6; }
.steps { position: relative; display: grid; grid-template-columns: 1fr 300px 1fr; grid-template-rows: auto auto; gap: 30px 60px; align-items: center; max-width: 980px; margin: 0 auto; }
.mid-phone { grid-column: 2; grid-row: 1 / 3; width: 300px; }
.step { text-align: left; background: #11172C; border: 1px solid #1F2742; border-radius: 16px; padding: 18px 20px; position: relative; }
.step small { letter-spacing: .08em; font-size: 12px; color: #A9AEC0; }
.step p { margin: 6px 0 0; color: #C8CCDA; font-size: 15px; }
.step strong { display: block; margin-top: 6px; font-weight: 600; }
.step.active { border-color: var(--gold); background: #141A30; }
.step::after { content: ""; position: absolute; top: 50%; width: 60px; height: 1px; background: #2A3352; }
.s1 { grid-column: 3; grid-row: 1; } .s1::after, .s3::after { right: 100%; }
.s2 { grid-column: 1; grid-row: 1 / 3; } .s2::after { left: 100%; background: var(--gold); }
.s3 { grid-column: 3; grid-row: 2; }

/* Features bento */
.features { padding: 90px 0 40px; text-align: center; }
.features h2 { margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; text-align: left; }
.tile { grid-column: span 2; background: var(--mist); border: 1px solid #ECEDF1; border-radius: 22px; padding: 26px; overflow: hidden; position: relative; min-height: 340px; }
.tile.center { text-align: center; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 3; }
.tile p { margin: 0; color: var(--slate); font-size: 15px; }
.tile.night { background: var(--night); color: #fff; border-color: var(--night); }
.tile.night p { color: #B4B9CB; }
.art { flex: 1; position: relative; min-height: 170px; margin: 16px 0; }

.feelings .fcard { position: absolute; top: 18px; width: 118px; height: 140px; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
                   display: flex; flex-direction: column; justify-content: space-between; padding: 14px; font-weight: 600; font-size: 14px; text-align: left; }
.feelings b { font-size: 26px; }
.feelings .a { left: calc(50% - 118px); transform: rotate(-9deg); }
.feelings .b { left: calc(50% - 4px); transform: rotate(7deg); background: var(--navy); color: #fff; }

.journal { margin-bottom: 0; }
.jcard { position: absolute; left: 50%; bottom: -30px; width: 230px; height: 150px; transform: translateX(-50%) rotate(-6deg); border-radius: 18px;
         background: linear-gradient(135deg, #1B2A5C, var(--navy)); color: #fff; padding: 18px; text-align: left; box-shadow: var(--shadow); }
.jcard.back { background: var(--gold); transform: translateX(-62%) rotate(-14deg); }
.jcard small { color: var(--gold); font-weight: 600; font-size: 12px; }
.jcard b { display: block; font: 22px var(--display); margin: 6px 0; }
.wave { letter-spacing: 2px; color: rgba(255, 255, 255, .55); }

.crop { margin-bottom: -26px; }
.phone.tiny { position: absolute; left: 50%; top: 10px; width: 190px; transform: translateX(-50%); border-radius: 34px; padding: 7px; }
.phone.tiny img { border-radius: 28px; }
.check { position: absolute; left: 50%; top: 70px; transform: translateX(60px); width: 52px; height: 52px; border-radius: 50%; background: var(--gold);
         display: grid; place-items: center; font-weight: 700; font-size: 22px; box-shadow: 0 8px 18px rgba(226, 181, 62, .45); }

.invite { min-height: 200px; }
.inv { position: absolute; left: 0; top: 10px; width: 210px; background: #fff; border: 1.5px solid var(--gold); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.inv small { text-transform: uppercase; letter-spacing: .16em; font-size: 10px; color: var(--slate); }
.inv b { display: block; font: 24px/1.1 var(--display); margin: 6px 0; }
.inv i { font-size: 13px; color: var(--gold-deep); }
.rsvp { position: absolute; right: 0; top: 40px; width: 230px; list-style: none; margin: 0; padding: 8px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; }
.rsvp li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rsvp li:last-child { border: 0; }
.rsvp em { margin-left: auto; font-style: normal; font-size: 12px; color: #2E7D3A; }
.rsvp em.maybe { color: var(--gold-deep); }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.invite .badge { right: 200px; top: 150px; }

.circle { display: flex; align-items: center; justify-content: center; gap: 40px; }
.ring { position: relative; width: 190px; height: 190px; border-radius: 50%; border: 1px dashed #3A4466; }
.ring span { position: absolute; width: 46px; height: 46px; border-radius: 50%; background: #1A2244; display: grid; place-items: center; font-size: 22px; border: 2px solid var(--night); }
.ring span:nth-child(1) { left: 72px; top: -23px; } .ring span:nth-child(2) { right: -18px; top: 46px; }
.ring span:nth-child(3) { right: 12px; bottom: -14px; } .ring span:nth-child(4) { left: 12px; bottom: -14px; }
.ring span:nth-child(5) { left: -18px; top: 46px; }
.ring b { position: absolute; inset: 55px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 32px; box-shadow: 0 0 40px rgba(226, 181, 62, .5); }
.code { background: #11172C; border: 1px solid #262F4E; border-radius: 14px; padding: 14px 18px; }
.code small { display: block; color: #A9AEC0; font-size: 12px; }
.code b { font-size: 26px; letter-spacing: .18em; color: var(--gold); }

/* Verse carousel */
.verses { background: var(--mist); margin: 50px -40px 0; padding: 70px 40px 80px; border-radius: 34px; }
.verses .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sub { margin: 0; color: var(--slate); }
.arrows { display: flex; gap: 10px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(14, 26, 60, .08); }
.arrow.on { background: var(--gold); }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 6px 20px; margin: 0 -6px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.vcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
         display: flex; flex-direction: column; }
.vcard:nth-child(even) { margin-top: 36px; }
.vcard .q { font: 64px/0.6 var(--display); color: var(--gold); height: 30px; }
.vcard blockquote { margin: 0 0 22px; font: 21px/1.4 var(--display); flex: 1; }
.vcard figcaption { display: flex; gap: 12px; align-items: center; }
.vcard .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-size: 20px; }
.vcard figcaption b { display: block; font-size: 15px; }
.vcard figcaption small { color: var(--slate); font-size: 13px; }
.progress { height: 3px; background: #DDE0E6; border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: margin .2s, width .2s; }

/* Private */
.private { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 100px 40px 200px; }
.photo-card { position: relative; margin: 0; padding: 6px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.photo-card img { display: block; width: 100%; height: 300px; object-fit: cover; border-radius: 17px; }
.sticker { position: absolute; right: -26px; top: -20px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); transform: rotate(8deg); font-size: 14px; }
.sticker b { display: block; color: #2E7D3A; }
.sticker small { color: var(--slate); }
.private p { color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li { background: var(--gold-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.ticks li::before { content: "✓ "; color: var(--gold-deep); }

/* Gold call to action */
.band { position: relative; margin: 0 -40px; background: var(--gold); border-radius: 34px; padding: 70px 80px; min-height: 340px;
        display: flex; align-items: center; overflow: visible; }
.watermark { position: absolute; left: 30px; bottom: -30px; font: 220px/1 var(--display); color: rgba(255, 255, 255, .16); pointer-events: none; white-space: nowrap; overflow: hidden; max-width: 100%; }
.band .copy { position: relative; max-width: 520px; }
.kicker { margin: 0 0 6px; font-weight: 600; color: rgba(14, 26, 60, .75); }
.band h2 { font-size: 56px; color: var(--navy); margin-bottom: 24px; }
.band-phone { position: absolute; right: 90px; bottom: 40px; width: 250px; transform: rotate(10deg); }

/* Footer */
footer.big { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: 60px 40px 0; }
footer.big p { color: var(--slate); margin: 8px 0 0; font-size: 15px; }
footer.big nav { display: grid; grid-template-columns: auto auto; gap: 12px 40px; align-content: start; }
footer.big nav a { color: var(--navy); text-decoration: none; font-size: 15px; }
footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--slate); font-size: 14px; }

/* Privacy and support pages */
.doc { max-width: 720px; margin: 0 auto; padding: 50px 0 60px; }
.doc h1 { font-size: 52px; }
.doc h3 { margin-top: 30px; }
.doc p { color: var(--slate); }
footer:not(.big) { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--slate); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer:not(.big) nav { display: flex; gap: 18px; }

[data-lang="es"] .en, [data-lang="en"] .es { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .float { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .links { display: none; }
  .photo.left { left: 0; width: 190px; }
  .card.prayer { right: 0; }
  .card.stack { left: 0; }
  .langs-box { right: 0; }
  .band-phone { right: 40px; width: 210px; }
}

@media (max-width: 760px) {
  body { padding: 0; }
  .wrap { border-radius: 0; box-shadow: none; padding: 12px 18px 0; }
  .brand { font-size: 18px; } .brand img { width: 30px; height: 30px; }
  header.top .store-link { display: none; }
  h1 { font-size: 42px; }
  h2 { font-size: 36px; }
  .hero { padding-top: 40px; }
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .hero-phone { position: relative; left: auto; transform: none; width: 270px; }
  .photo.left, .langs-box { display: none; }
  .stage .float { position: relative; inset: auto; animation: none; transform: none; }
  .card.prayer, .card.stack { width: 100%; max-width: 330px; }
  .dark, .verses, .band { margin-left: -18px; margin-right: -18px; padding-left: 22px; padding-right: 22px; }
  .steps { grid-template-columns: 1fr; }
  .mid-phone { grid-column: 1; grid-row: auto; width: 240px; margin: 0 auto; order: -1; }
  .s1, .s2, .s3 { grid-column: 1; grid-row: auto; }
  .step::after { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; }
  .inv { width: 180px; } .rsvp { width: 200px; top: 175px; } .invite { min-height: 330px; } .invite .badge { display: none; }
  .circle { flex-direction: column; gap: 30px; }
  .vcard { flex-basis: 85%; } .vcard:nth-child(even) { margin-top: 0; }
  .private { grid-template-columns: 1fr; padding: 70px 0; gap: 50px; }
  .sticker { right: 10px; }
  .band { flex-direction: column; align-items: flex-start; padding-top: 50px; padding-bottom: 0; }
  .band h2 { font-size: 40px; }
  .band-phone { position: relative; right: auto; bottom: auto; width: 220px; margin: 40px auto -60px; }
  .watermark { font-size: 120px; }
  footer.big { grid-template-columns: 1fr; padding: 90px 0 0; }
  .doc h1 { font-size: 40px; }
}
