/* Affreso website. Self-hosted fonts only: no requests leave affreso.com. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-700-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-vietnamese-800-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-800-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-800-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-vietnamese-400-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-400-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-vietnamese-600-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-600-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-600-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-vietnamese-700-normal.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-700-normal.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: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.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: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-vietnamese-400-italic.woff2) format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-ext-400-italic.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: "Plus Jakarta Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-400-italic.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: "Vazirmatn"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

/* Colours come from the Affreso petal logo: a cross of four petals, warm on one side, cool on the other. */
:root {
  --bg: #ffffff;
  --sand: #fff6ef;         /* warm tint for alternating sections */
  --blush: #fde9e4;
  --ink: #172238;          /* deep navy from the logo's darkest blue */
  --ink-2: #4a5468;
  --line: #efe4da;
  --coral: #e5484d;        /* petal colours: decoration */
  --orange: #f7861e;
  --amber: #fbb424;
  --sky: #1aa0d8;
  --blue: #1f5fb0;         /* links (AA on white and sand) */
  --red: #c2303d;          /* coral that passes AA: buttons and accents in text */
  --head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 66ch;
  --r-lg: 28px; --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 34, 56, 0.06), 0 18px 40px -22px rgba(23, 34, 56, 0.35);
  --step--1: 0.9rem; --step-0: 1.0625rem; --step-1: 1.3rem; --step-2: 1.75rem; --step-3: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); --step-4: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);
}
:lang(zh), :lang(ko) { --head: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --sans: var(--head); }
:lang(zh-TW) { --head: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif; --sans: var(--head); }
:lang(ar), :lang(fa) { --head: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif; --sans: "Vazirmatn", "Noto Sans Arabic", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(ar) body, :lang(fa) body { font-size: 1.08rem; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.025em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(fa) h1, :lang(fa) h2, :lang(fa) h3 { letter-spacing: 0; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.015em; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38ch; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: 0; transform: translateY(-140%); background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; border-radius: 0 0 10px 10px; }
.skip:focus { transform: none; color: #fff; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
main { overflow-x: clip; }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.paper { background: var(--sand); }
.teal-band { background: var(--ink); color: #d5dceb; }
.teal-band h2, .teal-band h3 { color: #fff; }
.teal-band a { color: #ffc768; }

/* Petal: the logo's leaf shape, used as list markers and small icons */
.petal { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 0 100% 0 100%; background: var(--coral); flex: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(23, 34, 56, 0.07); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ink); font-family: "Bricolage Grotesque", var(--head); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 0.15rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0.8rem; border-radius: 999px; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { background: var(--sand); color: var(--red); }
.nav a[aria-current="page"] { background: var(--blush); color: var(--red); }
.nav .btn { margin-inline-start: 0.5rem; }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { color: #fff; background: var(--red); }
.nav a.btn-primary:hover { background: #a82633; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; padding: 0.5rem 0.8rem; border-radius: 999px; display: inline-flex; gap: 0.35rem; align-items: center; font-weight: 600; font-size: 0.98rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: var(--sand); }
.lang-switch ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0.45rem; margin: 0; list-style: none; min-width: 12rem; box-shadow: var(--shadow); }
.lang-switch li a { display: block; padding: 0.45rem 0.8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.lang-switch li a:hover, .lang-switch li a[aria-current="true"] { background: var(--sand); color: var(--red); }
.menu-btn { display: none; margin-inline-start: auto; background: var(--sand); border: 0; border-radius: 999px; padding: 0.55rem 1rem; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.45rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); color: var(--ink); background: #fff; line-height: 1.2; font-family: var(--sans); font-size: 1.02rem; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 48, 61, 0.8); }
.btn-primary:hover { background: #a82633; border-color: #a82633; color: #fff; }
.btn-gold { background: var(--amber); border-color: var(--amber); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(247, 134, 30, 0.9); }
.btn-gold:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.teal-band .btn { border-color: #fff; }

/* Hero: the product blooming out of the logo's four petals */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 7rem); overflow: hidden; background: radial-gradient(60rem 30rem at 85% 10%, #fff1e6 0%, rgba(255, 241, 230, 0) 70%), #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 36ch; }
.hero-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.55rem; color: var(--ink-2); font-size: 1rem; }
.hero-facts li { display: flex; gap: 0.7rem; align-items: center; }
.hero-facts li::before, .rows ul li::before, .note li::before { content: ""; flex: none; width: 0.75rem; height: 0.75rem; border-radius: 0 100% 0 100%; background: var(--coral); }
.hero-facts li:nth-child(2)::before { background: var(--amber); }
.hero-facts li:nth-child(3)::before { background: var(--sky); }
.window { position: relative; justify-self: end; width: min(100%, 620px); padding: 12% 4% 14% 12%; }
.bloom { position: absolute; inset: -4% -6%; width: 112%; height: 108%; z-index: 0; overflow: visible; }
.arch { position: relative; z-index: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(23, 34, 56, 0.08), 0 40px 80px -36px rgba(23, 34, 56, 0.55); }
.arch::before { content: ""; display: block; height: 30px; background: radial-gradient(circle at 18px 15px, #f2726f 5px, transparent 6px), radial-gradient(circle at 36px 15px, #fbb424 5px, transparent 6px), radial-gradient(circle at 54px 15px, #4cc38a 5px, transparent 6px) #f4f1ee; border-bottom: 1px solid rgba(23, 34, 56, 0.07); }
[dir="rtl"] .arch::before { transform: scaleX(-1); }
.arch img { width: 100%; }
.phone { position: absolute; z-index: 2; inset-inline-start: -6%; bottom: 2%; width: 34%; border-radius: 28px; border: 7px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px -24px rgba(23, 34, 56, 0.65); overflow: hidden; aspect-ratio: 9 / 18.5; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* The week of a church */
.week { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 1rem; }
.week li:first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; min-height: 100%; }
.week li:first-child .day { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); }
.week li:first-child p { font-size: 1.1rem; }
.week li:first-child::before { content: ""; position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; width: 5rem; height: 5rem; background: url(img/logo-336.webp) center / contain no-repeat; }
.week li { --c: var(--coral); position: relative; padding: 1.35rem 1.35rem 1.4rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.week li:nth-child(2) { --c: var(--orange); }
.week li:nth-child(3) { --c: var(--amber); }
.week li:nth-child(4) { --c: #8fcf9c; }
.week li:nth-child(5) { --c: var(--sky); }
.week li:nth-child(6) { --c: var(--blue); }
.week li:nth-child(7) { --c: #7b6fd0; }
.week li:first-child { background: var(--ink); border-top-color: var(--coral); }
.week li:first-child .day { color: #fff; }
.week li:first-child p { color: #d5dceb; }
.week .day { font-family: var(--head); font-weight: 800; color: var(--ink); font-size: 1.2rem; display: block; margin-bottom: 0.45rem; letter-spacing: -0.02em; }
.week p { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* Ministry rows */
.rows { display: grid; gap: clamp(4rem, 8vw, 7rem); margin-top: 3.5rem; }
.row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.row:nth-child(even) .row-media { order: 2; }
.row h3 { font-size: var(--step-2); }
.row .lead { font-size: 1.2rem; }
.rows ul { list-style: none; padding: 0; color: var(--ink-2); }
.rows ul li { display: flex; gap: 0.75rem; align-items: baseline; }
.rows ul li::before { transform: translateY(0.1rem); }
.rows ul li + li { margin-top: 0.55rem; }
.row-media { position: relative; }
.shot { border-radius: var(--r); border: 1px solid rgba(23, 34, 56, 0.08); box-shadow: var(--shadow); background: #fff; overflow: hidden; }
/* a big soft petal behind each screenshot, in the logo colours */
.shot-arch { overflow: visible; border: 0; background: none; box-shadow: none; isolation: isolate; }
.shot-arch::before { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; inset-inline-end: -7%; top: -12%; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, var(--amber), var(--orange)); opacity: 0.9; }
.row:nth-child(even) .shot-arch::before { inset-inline-end: auto; inset-inline-start: -7%; border-radius: 100% 0 100% 0; background: linear-gradient(225deg, #7cc8ee, var(--blue)); }
.row:nth-child(3n) .shot-arch::before { background: linear-gradient(135deg, #f7a1a3, var(--coral)); }
.shot-arch img { border-radius: var(--r); box-shadow: 0 0 0 1px rgba(23, 34, 56, 0.08), 0 30px 60px -30px rgba(23, 34, 56, 0.5); background: #fff; }
.row-media .phone { box-shadow: 0 30px 60px -24px rgba(23, 34, 56, 0.55), 0 0 0 14px var(--blush); }
figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.6rem; }

/* Principles band */
.teal-band { position: relative; overflow: hidden; }
.teal-band::after { content: ""; position: absolute; width: 34rem; aspect-ratio: 1; inset-inline-end: -12rem; top: -14rem; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, rgba(31, 95, 176, 0.55), rgba(26, 160, 216, 0.25)); pointer-events: none; }
.teal-band .wrap { position: relative; z-index: 1; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.principles > div { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--r); padding: 1.5rem 1.5rem 1.6rem; }
.principles h3 { font-size: 1.25rem; margin-bottom: 0.45rem; display: flex; gap: 0.6rem; align-items: center; }
.principles h3::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 0 100% 0 100%; background: var(--amber); flex: none; }
.principles > div:nth-child(2) h3::before { background: var(--coral); }
.principles > div:nth-child(3) h3::before { background: var(--sky); }
.principles > div:nth-child(4) h3::before { background: var(--orange); }
.principles > div:nth-child(5) h3::before { background: #7cc8ee; }
.principles > div:nth-child(6) h3::before { background: #f7a1a3; }
.principles p { margin: 0; color: #c9d1e2; font-size: 1rem; }

/* Languages */
.greetings { display: flex; flex-wrap: wrap; gap: 0.6rem; font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); margin: 1.75rem 0; }
.greetings span { padding: 0.35rem 1rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--red); }
.greetings span:nth-child(2) { color: #a8470a; }
.greetings span:nth-child(3) { color: #8a5a00; }
.greetings span:nth-child(4) { color: var(--blue); }
.greetings span:nth-child(5) { color: #0f6f99; }
.greetings span:nth-child(6) { color: var(--ink); }
.greetings span:nth-child(7) { color: #5b4fb8; }

/* Features page */
.feature-groups { display: grid; gap: 1.25rem; }
.fgroup { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid rgba(23, 34, 56, 0.05); }
.fgroup h2 { font-size: var(--step-2); display: flex; flex-direction: column; gap: 0.8rem; }
.fgroup h2::before { content: ""; width: 2.4rem; height: 2.4rem; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, var(--amber), var(--orange)); }
.fgroup:nth-child(4n+2) h2::before { background: linear-gradient(135deg, #f7a1a3, var(--coral)); }
.fgroup:nth-child(4n+3) h2::before { background: linear-gradient(135deg, #7cc8ee, var(--blue)); }
.fgroup:nth-child(4n+4) h2::before { background: linear-gradient(135deg, #9fe3f5, var(--sky)); }
.fgroup dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.fgroup dt { font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.fgroup dd { margin: 0; color: var(--ink-2); font-size: 1rem; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 600; font-size: 0.95rem; box-shadow: 0 0 0 1px var(--line); }
.toc a:hover { background: var(--ink); color: #fff; }

/* Page heads */
.page-head { position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 5rem) clamp(1.75rem, 3vw, 2.75rem); background: radial-gradient(50rem 22rem at 100% 0%, #fff1e6 0%, rgba(255, 241, 230, 0) 70%); }
.page-head::after { content: ""; position: absolute; width: 11rem; aspect-ratio: 1; inset-inline-end: 6%; top: 2.5rem; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, var(--amber), var(--orange)); opacity: 0.85; box-shadow: -7rem 4rem 0 -2.5rem rgba(229, 72, 77, 0.75); pointer-events: none; }
[dir="rtl"] .page-head::after { box-shadow: 7rem 4rem 0 -2.5rem rgba(229, 72, 77, 0.75); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.8rem); max-width: 18ch; }
.breadcrumb { font-size: var(--step--1); margin-bottom: 0.9rem; color: var(--ink-2); font-weight: 600; }
.breadcrumb a { color: var(--ink-2); }
.page-head + .wrap, .page-head + .section-tight, .page-head + .section { position: relative; }

/* Demo roles */
.roles { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.roles li { padding: 1.25rem 1.3rem; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); font-size: 0.98rem; color: var(--ink-2); }
.roles strong { display: block; color: var(--ink); font-family: var(--head); font-size: 1.15rem; margin-bottom: 0.3rem; letter-spacing: -0.015em; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.note { background: var(--sand); padding: 1.25rem 1.5rem; border-radius: var(--r); }
.note h3 { font-size: 1.15rem; }
.note ul { list-style: none; padding: 0; margin: 0; }
.note li { display: flex; gap: 0.7rem; align-items: baseline; }
.note li + li { margin-top: 0.5rem; }
.note li::before { background: var(--orange); transform: translateY(0.05rem); }
.note p:last-child { margin: 0; }

/* Download */
.release { position: relative; overflow: hidden; background: var(--ink); color: #d5dceb; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; }
.release::after { content: ""; position: absolute; width: 16rem; aspect-ratio: 1; inset-inline-end: -5rem; bottom: -9rem; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, rgba(251, 180, 36, 0.5), rgba(247, 134, 30, 0.2)); pointer-events: none; }
.release > * { position: relative; z-index: 1; }
.release h2 { margin: 0 0 0.25rem; font-size: var(--step-3); color: #fff; }
.release .muted { color: #c9d1e2; }
.release .actions { margin: 0; justify-content: flex-end; }
.release .btn:not(.btn-gold) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.release .btn:not(.btn-gold):hover { background: #fff; color: var(--ink); }
.checksum { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8rem; word-break: break-all; color: #c9d1e2; grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: start; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 700; color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(23, 34, 56, 0.05); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.5rem 0; }
.steps > li { counter-increment: s; position: relative; padding-inline-start: 3.4rem; margin-bottom: 1.4rem; min-height: 2.4rem; }
.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -0.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50% 50% 50% 8px; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem; }
.steps > li:nth-child(4n+2)::before { background: #a8470a; }
.steps > li:nth-child(4n+3)::before { background: var(--blue); }
.steps > li:nth-child(4n+4)::before { background: #0f6f99; }
.steps > li strong:first-child { display: block; color: var(--ink); }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86em; background: var(--sand); padding: 0.12em 0.4em; border-radius: 6px; }
pre { background: var(--ink); color: #eef2fa; padding: 1rem 1.2rem; border-radius: var(--r-sm); overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; }

/* Tutorials */
.tut-layout { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tut-nav { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; font-size: 0.95rem; padding: 0.25rem 0.5rem 1rem; background: var(--sand); border-radius: var(--r); }
.tut-nav h2 { font-size: 0.95rem; font-family: var(--sans); font-weight: 700; color: var(--ink-2); margin: 1rem 0.6rem 0.35rem; letter-spacing: 0; }
.tut-nav ul { list-style: none; margin: 0; padding: 0; }
.tut-nav a { display: block; padding: 0.3rem 0.65rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.tut-nav a:hover { background: #fff; color: var(--red); }
.tut-nav a[aria-current="page"] { background: var(--ink); color: #fff; font-weight: 600; }
.tut-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.tut-group { background: #fff; border-radius: var(--r-lg); padding: 1.5rem 1.75rem 1.25rem; box-shadow: var(--shadow); border: 1px solid rgba(23, 34, 56, 0.05); }
.tut-group h2 { font-size: var(--step-1); display: flex; align-items: center; gap: 0.6rem; }
.tut-group h2::before { content: ""; width: 0.9rem; height: 0.9rem; border-radius: 0 100% 0 100%; background: var(--coral); flex: none; }
.tut-group:nth-child(4n+2) h2::before { background: var(--amber); }
.tut-group:nth-child(4n+3) h2::before { background: var(--blue); }
.tut-group:nth-child(4n+4) h2::before { background: var(--sky); }
.tut-group ul { list-style: none; padding: 0; margin: 0; }
.tut-group li { padding: 0.75rem 0; border-top: 1px solid var(--line); }
.tut-group a { font-weight: 700; text-decoration: none; color: var(--ink); }
.tut-group a:hover { color: var(--red); text-decoration: underline; }
.tut-group p { margin: 0.15rem 0 0; font-size: 0.95rem; color: var(--ink-2); }
.who { display: inline-block; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 1rem; background: var(--sand); padding: 0.3rem 0.85rem; border-radius: 999px; }
.tip { background: #eaf5fb; border-radius: var(--r); padding: 1rem 1.25rem; margin: 1.5rem 0; border-inline-start: 4px solid var(--sky); }
.tip p:last-child { margin: 0; }
.tut-figure { margin: 1.75rem 0 2.25rem; }
.tut-figure img { border-radius: var(--r); box-shadow: 0 0 0 1px rgba(23, 34, 56, 0.08), 0 20px 40px -26px rgba(23, 34, 56, 0.5); background: #fff; }
.tut-figure.phone-shot img { max-width: 320px; border-radius: 26px; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; max-width: 48%; font-weight: 700; }
.pager span { display: block; font-size: 0.85rem; color: var(--ink-2); font-weight: 400; }

/* Search (FAQ and tutorials) */
.search { display: flex; gap: 0.5rem; max-width: 34rem; margin-top: 1.75rem; }
.search input { flex: 1; font: inherit; padding: 0.85rem 1.25rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.search input:focus { border-color: var(--orange); outline: none; }
.search-empty { display: none; }

/* FAQ */
.faq-group { margin-top: 2.75rem; }
.faq-group h2 { font-size: var(--step-2); }
details.qa { background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); margin-bottom: 0.6rem; }
details.qa[open] { box-shadow: var(--shadow); }
details.qa summary { cursor: pointer; list-style: none; padding: 1.05rem 3.2rem 1.05rem 1.3rem; position: relative; font-weight: 700; font-size: 1.05rem; border-radius: var(--r); }
:lang(ar) details.qa summary, :lang(fa) details.qa summary { padding: 1.05rem 1.3rem 1.05rem 3.2rem; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--red); font-size: 1.25rem; font-weight: 600; line-height: 1; }
details.qa[open] summary::after { content: "−"; background: var(--red); color: #fff; }
details.qa .answer { padding: 0 1.3rem 1.25rem; max-width: var(--measure); color: var(--ink-2); }
details.qa .answer p:last-child { margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1e2; padding-block: 4rem 2.5rem; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: #ffc768; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1rem; font-family: var(--sans); font-weight: 700; margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer .legal-line { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.88rem; }
.verse { font-style: italic; color: #ffd28a; margin-top: 1rem; max-width: 32ch; }
:lang(zh) .verse, :lang(ko) .verse, :lang(ar) .verse, :lang(fa) .verse { font-style: normal; }

/* CTA: a warm panel with the logo */
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; background: linear-gradient(120deg, #ffe9dc 0%, #fff4e0 55%, #e3f2fb 100%); border-radius: var(--r-lg); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 5vw, 3.5rem); padding-inline-start: clamp(1.75rem, 5vw, 3.5rem); }
.cta h2 { margin: 0 0 0.4rem; }
.cta .muted { margin: 0; max-width: 44ch; }
.cta::before { content: ""; width: clamp(4.5rem, 8vw, 7rem); aspect-ratio: 1; background: url(img/logo-336.webp) center / contain no-repeat; }
.cta > * { position: relative; }

@media (max-width: 1100px) {
  .week { grid-template-columns: 1fr 1fr; }
  .week li:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 0; padding-top: 6.25rem; }
  .week li:first-child::before { width: 3.75rem; height: 3.75rem; inset-inline-end: auto; inset-inline-start: 1.75rem; }
}
@media (max-width: 1000px) {
  .hero .wrap, .row, .split, .fgroup, .tut-layout, .cta { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-media { order: 0; }
  .window { justify-self: center; width: min(100%, 560px); }
  .principles, .tut-groups, .roles { grid-template-columns: 1fr 1fr; }
  .tut-nav { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; }
  .release .actions { justify-content: flex-start; }
  .fgroup h2 { flex-direction: row; align-items: center; }
  .fgroup h2::before { width: 1.6rem; height: 1.6rem; }
  .page-head::after { width: 7rem; inset-inline-end: 4%; opacity: 0.5; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 0.75rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 0.5rem 0 0; }
  .lang-switch ul { position: static; box-shadow: none; }
}
@media (max-width: 620px) {
  .principles, .tut-groups, .roles, .fgroup dl, .footer-grid { grid-template-columns: 1fr; }
  .week { grid-template-columns: 1fr; }
  .phone { width: 38%; inset-inline-start: -2%; }
  .page-head::after { display: none; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 2.9rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .bloom path { transform-box: view-box; transform-origin: 50% 50%; animation: open 1.1s cubic-bezier(.2,.8,.2,1) both; }
  .bloom path:nth-child(2) { animation-delay: 0.08s; }
  .bloom path:nth-child(3) { animation-delay: 0.16s; }
  .bloom path:nth-child(4) { animation-delay: 0.24s; }
  .window .arch { animation: rise 0.9s 0.15s cubic-bezier(.2,.7,.2,1) both; }
  .window .phone { animation: rise 0.9s 0.35s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes open { from { opacity: 0; transform: scale(0.6) rotate(-25deg); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media print {
  .site-header, .site-footer, .tut-nav, .actions, .pager, .search, .bloom { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  a { color: #000; }
  details.qa .answer { display: block; }
}

/* Script-specific heading tweaks */
:lang(ar) h1, :lang(fa) h1, :lang(ar) h2, :lang(fa) h2 { line-height: 1.4; }
:lang(zh) h1, :lang(ko) h1, :lang(zh) h2, :lang(ko) h2 { line-height: 1.25; }
:lang(zh) .hero h1, :lang(ko) .hero h1 { max-width: 13em; }
:lang(ko) { word-break: keep-all; }
