/* jhoanfranco.com — Apple-like product pages in rose and peach pastels on white. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --white: #ffffff; --mist: #fbf6f5; --mist-2: #f7eeec;
  --ink: #1d1d1f; --soft: #6e6e73; --faint: #a1a1a6; --line: #ece3e1;
  --rose: #d4627c; --rose-2: #e88a9c; --peach: #f0a07f;
  --rose-pastel: #fde4e8; --peach-pastel: #feeadf; --blush: #fff3f1;
  --grad-text: linear-gradient(90deg, #d4627c 0%, #e98676 50%, #f0a07f 100%);
  --grad-tile: linear-gradient(160deg, #fff1f3 0%, #fde6e5 45%, #feeadf 100%);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, .scroller:focus-visible { outline: 3px solid rgba(212, 98, 124, .55); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; }
.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.wide { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center { text-align: center; }

/* Global nav: thin, translucent, centered like apple.com */
.gnav { position: sticky; top: 0; z-index: 50; height: 48px; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.gnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.gnav .brand { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.gnav .brand i { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--rose-2), var(--peach)); }
.gnav .brand:hover { text-decoration: none; }
.gnav nav { display: flex; gap: 30px; }
.gnav nav a { color: var(--ink); opacity: .82; font-size: 12.5px; letter-spacing: -0.01em; }
.gnav nav a:hover { opacity: 1; text-decoration: none; }
/* Product sub-nav, as on apple.com product pages */
.subnav { position: sticky; top: 48px; z-index: 40; height: 52px; background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.subnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.subnav strong { font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.subnav nav { display: flex; align-items: center; gap: 22px; font-size: 12.5px; }
.subnav nav a { color: var(--ink); opacity: .8; }
.subnav .pill { opacity: 1; color: #fff; background: var(--rose); padding: 5px 13px; border-radius: 980px; }
.subnav .pill:hover { text-decoration: none; background: #c4546f; }

/* Type scale (apple.com) */
.eyebrow { font-size: 21px; font-weight: 600; color: var(--rose); margin: 0 0 6px; letter-spacing: .004em; }
.headline { font-size: clamp(48px, 7vw, 96px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; margin: 0; }
.headline.md { font-size: clamp(40px, 5.5vw, 64px); letter-spacing: -0.035em; line-height: 1.06; }
.sub { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; margin: 14px 0 0; }
.body-lg { font-size: 21px; line-height: 1.38; color: var(--soft); letter-spacing: -0.015em; }
.body-lg strong { color: var(--ink); font-weight: 600; }
.links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 19px; }
.links.left { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 11px 22px; border-radius: 980px; background: var(--rose); color: #fff; font-size: 17px; }
.btn:hover { background: #c4546f; text-decoration: none; }
.chev::after { content: " ›"; }

/* Hero */
.hero { padding: 96px 0 0; text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--white) 0%, var(--blush) 100%); }
.hero .lineup { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 64px; position: relative; }
.hero .lineup::before { content: ""; position: absolute; left: 50%; bottom: -120px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(240, 160, 127, .38), rgba(232, 138, 156, .22) 40%, transparent 70%); filter: blur(20px); z-index: 0; }

/* Device: thin rose-gold frame, flat front view */
.device { position: relative; z-index: 1; width: 280px; aspect-ratio: 590 / 1282; padding: 8px; border-radius: 48px; background: linear-gradient(145deg, #f8e1db, #e4bab1 40%, #f6ddd3 70%, #dcaea4); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(150, 70, 90, .45), 0 18px 30px -24px rgba(150, 70, 90, .35); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 41px; background: #000; }
.device.sm { width: 232px; border-radius: 40px; padding: 7px; }
.device.sm img { border-radius: 34px; }
.hero .lineup .device:nth-child(1), .hero .lineup .device:nth-child(3) { width: 240px; margin-bottom: -40px; opacity: .96; }
.hero .lineup .device:nth-child(2) { width: 300px; margin-bottom: -90px; }

/* Full-bleed product tile (apple.com home) */
.tile-xl { margin: 12px auto 0; width: min(1440px, 100% - 24px); border-radius: 0; text-align: center; padding: 64px 0 0; overflow: hidden; background: var(--grad-tile); }
.tile-xl .device { margin: 48px auto 0; transform: translateY(40px); }
.tile-xl + .tile-xl { margin-top: 12px; }

/* Bento grid */
.section { padding: 120px 0; }
.section.mist { background: var(--mist); }
.section-title { text-align: center; margin-bottom: 56px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { background: var(--mist); border-radius: 28px; padding: 36px; overflow: hidden; position: relative; min-height: 300px; display: flex; flex-direction: column; }
.mist .card { background: var(--white); }
.card.c2 { grid-column: span 2; } .card.c3 { grid-column: span 3; } .card.c4 { grid-column: span 4; } .card.c6 { grid-column: span 6; }
.card.tint { background: var(--grad-tile); }
.card .k { font-size: 14px; font-weight: 600; color: var(--soft); letter-spacing: -0.01em; margin: 0 0 10px; }
.card h3 { font-size: 28px; line-height: 1.14; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.card p { color: var(--soft); font-size: 17px; margin: 12px 0 0; }
.card .grad { color: transparent; }
.card .big { font-size: clamp(72px, 9vw, 120px); line-height: .95; font-weight: 700; letter-spacing: -0.06em; margin: auto 0 0; }
.card .phone-peek { margin: 28px auto -120px; }
.card.split { flex-direction: row; align-items: center; gap: 36px; }
.card.split > div { flex: 1; }

/* Highlights scroller (product page) */
.scroller { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(22px, calc((100vw - 980px) / 2)) 40px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: 360px; scroll-snap-align: center; border-radius: 28px; background: var(--grad-tile); padding: 34px 30px 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.slide p { margin: 0 0 26px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; text-align: center; line-height: 1.25; }
.slide p span { color: var(--soft); font-weight: 500; }
.slide .device { width: 230px; margin-bottom: -70px; }

/* Services list */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 34px; border-radius: 28px; background: var(--mist); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad-tile); color: var(--rose); }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 22px; letter-spacing: -0.025em; margin: 0 0 8px; }
.feature p { color: var(--soft); margin: 0; }

/* Closing statement */
.statement { padding: 140px 0; text-align: center; background: linear-gradient(180deg, var(--white), var(--rose-pastel) 60%, var(--peach-pastel)); }

/* Notes and prose (support, privacy) */
.note { font-size: 13px; color: var(--soft); line-height: 1.5; }
.callout { border-radius: 18px; background: var(--mist); padding: 22px 26px; color: var(--soft); font-size: 15px; }
.page-head { padding: 88px 0 48px; text-align: center; background: linear-gradient(180deg, var(--white), var(--blush)); }
.prose { max-width: 692px; margin: 0 auto; padding: 56px 0 100px; }
.prose h2 { font-size: 32px; letter-spacing: -0.03em; margin: 52px 0 12px; line-height: 1.12; }
.prose p, .prose li { color: #424245; font-size: 17px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 21px; color: var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--rose); font-size: 24px; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--soft); }

/* Footer (apple.com) */
footer.site { background: var(--mist); color: var(--soft); font-size: 12px; padding: 22px 0 40px; }
footer.site .wrap { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: #424245; margin-left: 18px; }
footer.site p { margin: 0 0 14px; }

/* Scroll reveal: elements rise gently into place. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .gnav nav { gap: 18px; }
  .bento { grid-template-columns: 1fr; }
  .card.c2, .card.c3, .card.c4, .card.c6 { grid-column: auto; }
  .card.split { flex-direction: column; }
  .grid3 { grid-template-columns: 1fr; }
  .hero .lineup .device:nth-child(1), .hero .lineup .device:nth-child(3) { display: none; }
  .subnav nav a:not(.pill) { display: none; }
  .section { padding: 84px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
