/* Roryah — palette taken from the logo files in "New Logo" */
:root {
  --paper: #F4ECE4;      /* logo background */
  --paper-soft: #FBF6F1;
  --blush: #F7DAD6;
  --blush-deep: #EDC2BE;
  --rose: #C98B93;       /* the doors */
  --wine: #8C2F3A;       /* arch line + tagline rules */
  --plum: #2B1E2F;       /* wordmark ink */
  --taupe: #6B5A52;      /* "Event Planner" tagline */
  --line: rgba(140, 47, 58, 0.18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
}

html[lang="ar"] {
  --serif: "Amiri", "Cormorant Garamond", serif;
  --sans: "IBM Plex Sans Arabic", "Jost", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 50% -10%, var(--paper-soft) 0%, transparent 60%),
    radial-gradient(40rem 30rem at 100% 100%, rgba(247, 218, 214, 0.55) 0%, transparent 70%),
    radial-gradient(36rem 28rem at 0% 70%, rgba(247, 218, 214, 0.35) 0%, transparent 70%),
    var(--paper);
  color: var(--plum);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}

/* Name lockup at the top: small doors mark + name + tagline, like the logo */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--plum);
  text-decoration: none;
}
.wordmark-mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  transition: transform .5s cubic-bezier(.22,.8,.24,1);
}
@media (hover: hover) {
  .wordmark:hover .wordmark-mark { transform: translateY(-2px); }
}
.wordmark-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.wordmark-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  margin-inline-end: -0.34em; /* balance the trailing letter-space */
  text-transform: uppercase;
}
.wordmark-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
  font-family: "Jost", sans-serif;
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  margin-inline-end: -0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
}
.wordmark-tag::before, .wordmark-tag::after {
  content: "";
  width: 0.9rem;
  height: 1px;
  background: var(--wine);
  opacity: .7;
}
html[lang="ar"] .wordmark-name {
  font-family: "Amiri", serif;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-inline-end: 0;
}
html[lang="ar"] .wordmark-name span {
  display: inline-block;
  margin: 0 0.22em;
}
html[lang="ar"] .wordmark-tag {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0;
  margin: 0.3rem 0 0;
}

.lang-toggle {
  font-family: "IBM Plex Sans Arabic", "Jost", sans-serif;
  font-size: 0.9rem;
  color: var(--taupe);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
@media (hover: hover) {
  .lang-toggle:hover { color: var(--wine); border-color: var(--rose); background: rgba(255,255,255,.4); }
}
html[lang="ar"] .lang-toggle { font-family: "Jost", sans-serif; letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.symbol { width: clamp(170px, 30vw, 250px); margin-bottom: 2rem; }
.symbol svg { display: block; width: 100%; height: auto; overflow: visible; }

/* The doors start closed and open to exactly the logo's position,
   so the gap always matches the light strip between them */
.door { transition: transform 2.4s cubic-bezier(.22,.8,.24,1) .5s; }
.door-left  { transform: translateX(6px); }
.door-right { transform: translateX(-6px); }
.glow { opacity: .55; transition: opacity 2.4s ease .5s; }
.arch { stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 2.2s ease .2s; }
.is-ready .door-left,
.is-ready .door-right { transform: none; }
.is-ready .glow { opacity: 1; animation: breathe 6s ease-in-out 3s infinite; }
.is-ready .arch { stroke-dashoffset: 0; }

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .78; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.25rem;
  font-family: "Jost", var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--wine);
  opacity: .75;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--sans); font-size: 0.95rem; }

/* "Coming soon" in the hero — the main message, so it reads larger */
.hero .eyebrow {
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--wine);
}
.hero .eyebrow::before, .hero .eyebrow::after { width: 4rem; }
html[lang="ar"] .hero .eyebrow { font-size: clamp(1.3rem, 2.8vw, 1.6rem); letter-spacing: 0; }

.headline {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
html[lang="ar"] .headline { line-height: 1.45; font-size: clamp(2.2rem, 6vw, 3.6rem); }

.lede {
  max-width: 32rem;
  margin: 0 0 2.5rem;
  font-size: 1.08rem;
  color: var(--taupe);
}

/* ---------- Notify form ---------- */
.notify {
  display: flex;
  width: 100%;
  max-width: 28rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s;
}
.notify:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(201, 139, 147, 0.15);
}
.notify input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1.1rem;
  font: inherit;
  font-size: 16px; /* 16px+ stops iPhone zooming in on focus */
  font-weight: 400;
  color: var(--plum);
  background: transparent;
  border: 0;
  outline: none;
}
.notify input::placeholder { color: rgba(107, 90, 82, 0.6); }
.notify button {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--paper-soft);
  background: var(--plum);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s, transform .2s;
}
@media (hover: hover) {
  .notify button:hover { background: var(--wine); }
}
.notify button:active { transform: scale(.98); }
.notify button:disabled { opacity: .6; cursor: default; }

.form-note {
  min-height: 1.6em;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--taupe);
}
.form-note.is-error { color: var(--wine); }
.form-note.is-success { color: var(--wine); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
html[lang="ar"] .form-note.is-success { font-style: normal; }

/* ---------- Features ---------- */
.features {
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.eyebrow.small { font-size: 0.72rem; }
.features h2 {
  max-width: 30rem;
  margin: 0 auto 3.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.2;
  text-wrap: balance;
}
html[lang="ar"] .features h2 { line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid rgba(201, 139, 147, 0.2);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 2px rgba(43, 30, 47, 0.04),
    0 14px 34px -14px rgba(140, 47, 58, 0.22);
  transition: transform .45s cubic-bezier(.22,.8,.24,1), box-shadow .45s;
}
@media (hover: hover) {
  .feature-grid li:hover {
    transform: translateY(-4px);
    box-shadow:
      0 2px 4px rgba(43, 30, 47, 0.05),
      0 22px 44px -16px rgba(140, 47, 58, 0.3);
  }
}

/* Illustrated header showing each service */
.card-art {
  height: 164px;
  padding-top: 14px;
  background: linear-gradient(165deg, #F9E1DD 0%, #F6E6E0 55%, var(--paper-soft) 100%);
  border-bottom: 1px solid rgba(201, 139, 147, 0.15);
}
.feature-grid li:nth-child(3n+2) .card-art { background: linear-gradient(165deg, #F3E3EA 0%, #F5E9EA 55%, var(--paper-soft) 100%); }
.feature-grid li:nth-child(3n+3) .card-art { background: linear-gradient(165deg, #F7E6DA 0%, #F6ECE3 55%, var(--paper-soft) 100%); }
.card-art svg { display: block; width: 100%; height: 100%; }

.art-arch  { fill: rgba(255, 255, 255, 0.55); }
.art-line  { fill: none; stroke: var(--rose); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-paper { fill: #FFFDFB; }
.art-fill, .art-env, .art-band { fill: #F2CFCB; }
.art-leaf  { fill: #EBC3BF; }
.art-wine  { stroke: var(--wine); }
.art-white { stroke: #fff; }
.art-wine-fill, .art-seal { fill: var(--wine); stroke: var(--wine); }
.art-qr    { fill: var(--rose); stroke: none; }
.art-qr path { fill: none; stroke: var(--rose); stroke-width: 2.4; }
.art-scan  { stroke: var(--wine); stroke-width: 1.4; opacity: .7; }
.art-dots  { fill: var(--rose); stroke: none; }
.art-ring  { stroke: var(--wine); }
.art-gem   { fill: #FBE7E4; stroke: var(--wine); }
.art-star  { fill: #FBE7E4; }

.card-body { padding: 1.6rem 1.75rem 2rem; }

.feature-grid h3 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.25;
}
.feature-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--taupe);
}

/* ---------- Story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 4rem;
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}
.story-art {
  position: relative;
  justify-self: center;
  width: min(100%, 20rem);
  margin: 0;
}
/* the portrait sits in an arch, like the doorway in the logo */
.story-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 1.25rem 1.25rem;
  background: linear-gradient(170deg, #FBEAE6 0%, #F7DAD6 60%, #F1CFCB 100%);
  box-shadow:
    0 1px 2px rgba(43, 30, 47, 0.05),
    0 24px 50px -24px rgba(140, 47, 58, 0.35);
}
.story-frame img {
  position: absolute;
  inset: 8% -6% -4% -6%;
  width: 112%;
  height: auto;
}
.story-arch {
  position: absolute;
  inset: -0.9rem -0.9rem 1.5rem;
  border: 1px solid rgba(140, 47, 58, 0.4);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.story-text { text-align: start; }
.story-text .eyebrow { margin-bottom: 1rem; }
.story-text .eyebrow::before { display: none; }
.story-text h2 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  text-wrap: balance;
}
html[lang="ar"] .story-text h2 { line-height: 1.6; }
.story-text p:not(.eyebrow) {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--taupe);
}

/* ---------- Ribbon ---------- */
.ribbon {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.ribbon p {
  max-width: 52rem;
  margin: 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--rose);
  line-height: 1.8;
}
html[lang="ar"] .ribbon p { font-style: normal; }

/* ---------- Closing ---------- */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.closing-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.closing .rule { width: 3.5rem; height: 1px; background: var(--wine); opacity: .6; }
.closing-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.footer p { margin: 0; }
.footer .dot { margin: 0 0.6rem; color: var(--rose); }
html[lang="ar"] .footer { letter-spacing: 0; }

.footer a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.footer a:hover { color: var(--wine); border-color: var(--rose); }

/* ---------- Privacy page ---------- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}
/* show only the article in the chosen language */
html[lang="en"] .legal-doc[lang="ar"],
html[lang="ar"] .legal-doc[lang="en"] { display: none; }

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--taupe);
  text-decoration: none;
  transition: color .3s;
}
.back-link:hover { color: var(--wine); }

.legal-doc {
  padding: 3rem 3rem 3.5rem;
  background: var(--paper-soft);
  border: 1px solid rgba(201, 139, 147, 0.2);
  border-radius: 1.5rem;
  box-shadow:
    0 1px 2px rgba(43, 30, 47, 0.04),
    0 18px 40px -18px rgba(140, 47, 58, 0.22);
}
.legal-doc .eyebrow { margin-bottom: 0.75rem; }
.legal-doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.2rem);
  line-height: 1.15;
}
.legal-date {
  margin: 0.5rem 0 2rem;
  font-size: 0.88rem;
  color: var(--taupe);
}
.legal-intro {
  margin: 0 0 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  background: linear-gradient(165deg, #F9E1DD, #F6E6E0);
  border-radius: 1rem;
}
html[lang="ar"] .legal-intro { font-size: 1.15rem; line-height: 1.9; }
.legal-doc h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.3;
  color: var(--plum);
}
.legal-doc h3 {
  margin: 1.5rem 0 0.4rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
}
html[lang="ar"] .legal-doc h3 { letter-spacing: 0; font-size: 1rem; }
.legal-doc p, .legal-doc li { color: #4E4048; }
.legal-doc p { margin: 0 0 1rem; }
.legal-doc ul { margin: 0 0 1rem; padding-inline-start: 1.25rem; }
.legal-doc li { margin-bottom: 0.55rem; }
.legal-doc li::marker { color: var(--rose); }
.legal-doc strong { font-weight: 500; color: var(--plum); }
html[lang="ar"] .legal-doc { line-height: 1.9; }
.contact-email {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 47, 58, 0.35);
  word-break: break-word;
}
.contact-email:hover { border-color: var(--wine); }

@media (max-width: 560px) {
  .legal { padding: 0.5rem 1rem 3rem; }
  .back-link { margin-bottom: 1.25rem; }
  .legal-doc { padding: 2rem 1.25rem 2.25rem; border-radius: 1.1rem; }
  .legal-intro { padding: 1rem 1.1rem; font-size: 1.1rem; }
  .legal-doc h2 { font-size: 1.35rem; margin-top: 2rem; padding-top: 1.4rem; }
}

/* ---------- Entrance ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22,.8,.24,1);
}
.is-ready .reveal { opacity: 1; transform: none; }
.is-ready .reveal:nth-child(2) { transition-delay: .25s; }
.is-ready .reveal:nth-child(3) { transition-delay: .4s; }
.is-ready .reveal:nth-child(4) { transition-delay: .55s; }
.is-ready .reveal:nth-child(5) { transition-delay: .7s; }
.is-ready .reveal:nth-child(6) { transition-delay: .8s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .story { gap: 2.5rem; }
}
@media (max-width: 560px) {
  /* keep clear of the notch and the home indicator */
  .topbar {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
  }
  .wordmark { gap: 0.65rem; }
  .wordmark-mark { width: 1.8rem; height: 1.8rem; }
  .wordmark-name { font-size: 1.2rem; }
  html[lang="ar"] .wordmark-name { font-size: 1.6rem; }

  /* tighter first screen so the email box is visible without scrolling */
  .hero { padding: 1.25rem 1.25rem 3.5rem; }
  .symbol { width: 160px; margin-bottom: 1.5rem; }
  .eyebrow { margin-bottom: 0.9rem; font-size: 0.72rem; letter-spacing: 0.34em; }
  .eyebrow::before, .eyebrow::after { width: 1.75rem; }
  .hero .eyebrow { gap: 1rem; margin-bottom: 1.1rem; font-size: 1rem; letter-spacing: 0.34em; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 2.25rem; }
  html[lang="ar"] .hero .eyebrow { font-size: 1.25rem; letter-spacing: 0; }
  .headline { font-size: 2.5rem; margin-bottom: 1rem; }
  html[lang="ar"] .headline { font-size: 2.15rem; }
  .lede { font-size: 1rem; margin-bottom: 1.75rem; }

  .notify { flex-direction: column; border-radius: 1.25rem; gap: .35rem; }
  .notify input { text-align: center; }
  .notify button { width: 100%; }

  .features { padding: 3.5rem 1rem 2.5rem; }
  .features h2 { margin-bottom: 2.25rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .card-art { height: 150px; padding-top: 12px; }
  .card-body { padding: 1.4rem 1.25rem 1.75rem; }
  .feature-grid h3 { font-size: 1.3rem; }

  .story { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.25rem 1.5rem; }
  .story-art { width: min(78%, 16rem); }
  .story-text { text-align: center; }
  .story-text .eyebrow::before { display: block; }
  .ribbon { padding: 2rem 1.25rem; }
  .closing { padding: 3rem 1.25rem 2rem; }
  .closing-head { gap: 1rem; margin-bottom: 1.5rem; }
  .closing .rule { width: 2rem; }
  .footer {
    padding: 1.5rem 1rem max(2rem, env(safe-area-inset-bottom));
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
}

/* very small phones (iPhone SE / 320px) */
@media (max-width: 360px) {
  .wordmark-name { letter-spacing: 0.26em; margin-inline-end: -0.26em; }
  .headline { font-size: 2.2rem; }
  html[lang="ar"] .headline { font-size: 1.9rem; }
  .symbol { width: 140px; }
  .topbar { padding-bottom: 0.25rem; }
  .hero { padding-top: 0.75rem; }
  .lede { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .arch { stroke-dashoffset: 0; }
  .door-left, .door-right { transform: none; }
  .glow { opacity: 1; }
}
