/* curio — marketing site. The app's visual world, verbatim. */

:root {
  --canvas: #f6f1ea;
  --shelf: #eae1d4;
  --shelf-deep: #ddd0bd;
  --hairline: #cdbfae;
  --accent: #7a5c3e;
  --ink: #2b2118;
  --ink-soft: rgba(43, 33, 24, 0.55);
  --ink-faint: rgba(43, 33, 24, 0.34);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: var(--canvas);
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.2s ease-out;
}

a:hover {
  text-decoration-color: var(--accent);
}

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 30px 0 0;
}

.mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  color: var(--ink);
  text-decoration: none;
}

.mark b {
  font-weight: 400;
  color: var(--accent);
}

.top nav {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 84px 0 96px;
}

h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero p.lede {
  margin-top: 26px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
}

.cta-row {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--canvas);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease-out;
  box-shadow: 0 10px 26px rgba(122, 92, 62, 0.28);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(122, 92, 62, 0.34);
}

.cta-note {
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* ---------- the phone ---------- */

.phone {
  width: 300px;
  aspect-ratio: 300 / 620;
  margin: 0 auto;
  background: var(--canvas);
  border: 10px solid var(--ink);
  border-radius: 52px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 34px 70px rgba(43, 33, 24, 0.22),
    0 8px 18px rgba(43, 33, 24, 0.1);
}

.phone::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 5;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 52px 20px 20px;
}

.screen .app-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  text-align: center;
  margin-bottom: 4px;
}

.micro {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.screen .count {
  text-align: left;
  margin: 12px 0 14px;
}

/* object stickers: consistent flat silhouettes + elliptical ground shadow */

.obj {
  position: relative;
  display: grid;
  place-items: center;
}

.obj svg {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 7px rgba(43, 33, 24, 0.14));
}

.obj::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 62%;
  height: 9px;
  background: radial-gradient(closest-side, rgba(43, 33, 24, 0.20), transparent 78%);
  border-radius: 50%;
}

.pile-tile {
  position: relative;
  height: 116px;
  display: grid;
  place-items: center;
}

.pile-tile .obj {
  position: absolute;
}

.pile-tile .obj:nth-child(1):not(:only-child) {
  transform: rotate(-9deg) translate(-19px, 4px);
  opacity: 0.45;
}

.pile-tile .obj:nth-child(2):not(:last-child) {
  transform: rotate(7deg) translate(19px, 2px);
  opacity: 0.65;
}

.tile-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  margin-top: 8px;
}

.tile-meta {
  font-size: 10.5px;
  color: var(--ink-faint);
  text-align: center;
}

.vitrine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-top: 6px;
}

.toolbar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
  align-items: center;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(205, 191, 174, 0.5);
  backdrop-filter: blur(6px);
  padding: 11px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(43, 33, 24, 0.12);
}

.toolbar svg {
  display: block;
}

/* ---------- editorial sections ---------- */

.moments {
  border-top: 1px solid var(--hairline);
  padding: 22px 0 0;
}

.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 74px 0;
}

.moment + .moment {
  border-top: 1px solid rgba(205, 191, 174, 0.45);
}

.moment:nth-child(even) .m-visual {
  order: -1;
}

.moment h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.15;
  text-wrap: balance;
}

.moment p {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 44ch;
}

.m-visual {
  display: grid;
  place-items: center;
}

/* capture card mockup */

.capture-stage {
  width: 265px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0 26px;
}

.capture-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--shelf) 20%, var(--shelf-deep) 90%);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.capture-photo .ghost {
  opacity: 0.22;
  filter: grayscale(1);
  transform: translate(-46px, -14px) rotate(-5deg);
}

.capture-stage .obj {
  transform: translateY(-6px);
}

.capture-stage .obj svg {
  filter: drop-shadow(0 0 0 6px #fff) drop-shadow(0 10px 14px rgba(43, 33, 24, 0.18));
}

.sticker-ring {
  position: relative;
  z-index: 1;
  transform: rotate(-3deg);
  background: #fffdf8;
  padding: 14px;
  border-radius: 26px;
  box-shadow: 0 12px 26px rgba(43, 33, 24, 0.16);
}

.capture-pill {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  background: var(--accent);
  color: var(--canvas);
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
}

/* object page mockup */

.fiche {
  width: 265px;
  padding: 26px 26px 22px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid rgba(205, 191, 174, 0.5);
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(43, 33, 24, 0.1);
}

.fiche .obj {
  margin-bottom: 18px;
}

.fiche h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
}

.fiche .story {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 8px;
}

.fiche .meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(205, 191, 174, 0.5);
  font-size: 11px;
  color: var(--ink-faint);
}

/* globe mockup */

.globe {
  width: 275px;
  height: 275px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 34% 28%, #f2ebe0 0%, var(--shelf) 55%, var(--shelf-deep) 100%);
  box-shadow:
    inset -18px -22px 44px rgba(43, 33, 24, 0.1),
    0 26px 50px rgba(43, 33, 24, 0.16);
  overflow: hidden;
}

.globe .dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(122, 92, 62, 0.5) 1.3px, transparent 1.6px);
  background-size: 11px 11px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M28 18c8-6 20-7 26-2 5 4 3 10 9 12s14 0 18 6-2 13-1 20-6 12-13 13-12-4-19-3-13 6-20 2-8-12-7-19 0-13 2-19 1-7 5-10z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M28 18c8-6 20-7 26-2 5 4 3 10 9 12s14 0 18 6-2 13-1 20-6 12-13 13-12-4-19-3-13 6-20 2-8-12-7-19 0-13 2-19 1-7 5-10z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 118% 118%;
  mask-size: 118% 118%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.globe .meridian {
  position: absolute;
  inset: 8% 24%;
  border: 1px solid rgba(205, 191, 174, 0.7);
  border-radius: 50%;
}

.globe .meridian.two {
  inset: 24% 8%;
}

.globe .pin {
  position: absolute;
  top: 30%;
  left: 58%;
}

.globe .pin .obj svg {
  filter: drop-shadow(0 0 0 4px #fffdf8) drop-shadow(0 6px 10px rgba(43, 33, 24, 0.25));
}

/* pile + widget band */

.band {
  border-top: 1px solid var(--hairline);
  padding: 84px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pile-stage {
  width: 285px;
  height: 195px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
  margin: 0 auto;
}

.pile-stage .obj {
  position: absolute;
  bottom: 2px;
}

.widget {
  width: 156px;
  height: 156px;
  border-radius: 34px;
  background: var(--canvas);
  border: 1px solid rgba(205, 191, 174, 0.6);
  box-shadow: 0 18px 38px rgba(43, 33, 24, 0.14);
  display: grid;
  place-items: center;
  padding: 18px 14px 12px;
}

.widget figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink);
}

.widget-scene {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* privacy strip */

.privacy-strip {
  border-top: 1px solid var(--hairline);
  padding: 92px 0;
  text-align: center;
}

.privacy-strip h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 44px);
}

.privacy-strip p {
  margin: 20px auto 0;
  max-width: 52ch;
  color: var(--ink-soft);
}

.privacy-strip .more {
  display: inline-block;
  margin-top: 26px;
  font-size: 15px;
}

/* footer */

footer {
  border-top: 1px solid var(--hairline);
  padding: 34px 0 46px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-faint);
}

footer nav {
  display: flex;
  gap: 22px;
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ---------- the one authored motion: the hero showcase settles in ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(14px);
    animation: settle 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero .phone {
    opacity: 0;
    transform: translateY(26px) rotate(0.6deg);
    animation: settle 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s forwards;
  }

  .hero .vitrine-grid .obj svg {
    animation: floaty 5.2s ease-in-out infinite alternate;
  }

  .hero .vitrine-grid .pile-tile:nth-child(2) .obj svg {
    animation-delay: 1.4s;
  }

  @keyframes settle {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes floaty {
    from {
      transform: translateY(0);
    }

    to {
      transform: translateY(-4px);
    }
  }
}

/* ---------- privacy / legal page ---------- */

.doc {
  max-width: 660px;
  margin: 0 auto;
  padding: 30px 28px 90px;
}

.doc header {
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 40px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 46px);
}

.doc .updated {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.doc h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  margin: 44px 0 12px;
}

.doc p,
.doc li {
  color: rgba(43, 33, 24, 0.78);
  max-width: 66ch;
}

.doc ul {
  padding-left: 22px;
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.doc .back {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 14.5px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 60px 0 72px;
    text-align: center;
  }

  .hero p.lede {
    margin-inline: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .moment,
  .band {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .moment:nth-child(even) .m-visual {
    order: 0;
  }

  .moment p {
    margin-inline: auto;
  }
}
