/* The Unstress Company. Agam's palette A (agam/apple-watch/Support.swift, enum Lake):
   deep #0D2630, mist #E4F0F1, reed #93BCC3, teal #8FD3CC, peach #F4A46E (help and emergency only).
   System fonts only: nothing is loaded from other sites. */
:root {
  --deep: #0D2630;
  --deep-2: #12323d;
  --mist: #E4F0F1;
  --reed: #93BCC3;
  --teal: #8FD3CC;
  --peach: #F4A46E;
  --line: rgba(143, 211, 204, 0.18);
  --serif: "New York", ui-serif, Georgia, "Frank Ruehl CLM", "David", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, "Noto Sans Hebrew", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, var(--deep-2) 0%, var(--deep) 60%) var(--deep);
  color: var(--mist);
  font: 17px/1.65 var(--sans);
}
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 42rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; padding-block: 1rem; }
.brand { font-family: var(--serif); font-size: 1.1rem; color: var(--mist); text-decoration: none; letter-spacing: .01em; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-size: .95rem; }
nav a { color: var(--reed); text-decoration: none; padding: .25rem 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--mist); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--teal); }
nav .lang { color: var(--teal); }

main { flex: 1; padding-block: 2.5rem 3rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0 0 .75rem; }
h2 { font-size: 1.3rem; color: var(--teal); margin: 2rem 0 .4rem; }
h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--mist); }
.muted { color: var(--reed); }

/* Home: the breathing lake (4 s rising, 6 s settling, like the app) */
.lake { width: 9rem; height: 9rem; margin: 0 auto 2rem; position: relative; }
.lake::before, .lake::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.lake::before { background: radial-gradient(circle, var(--teal) 0%, rgba(143, 211, 204, .25) 45%, transparent 70%); animation: breathe 10s ease-in-out infinite; }
.lake::after { border: 1px solid rgba(228, 240, 241, .18); transform: scale(1.15); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(.72); } 40% { transform: scale(1); } 100% { transform: scale(.72); } }
@media (prefers-reduced-motion: reduce) { .lake::before, .lake::after { animation: none; transform: scale(.86); } }
.hero { text-align: center; }
.agam-name { font-family: var(--serif); font-size: 1.5rem; color: var(--teal); margin: 2.5rem 0 .25rem; }
.points { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.points li { background: rgba(228, 240, 241, .04); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; }
.soon { display: inline-block; margin-top: .5rem; padding: .55rem 1.1rem; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); font-size: .95rem; }
.note { font-size: .92rem; color: var(--reed); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }

/* Emergency box: the only place peach is used */
.emergency { border: 1.5px solid var(--peach); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 0 0 2rem; background: rgba(244, 164, 110, .07); }
.emergency h2 { color: var(--peach); margin-top: 0; }
.emergency .call { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }
.emergency .call a { display: inline-block; padding: .6rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid var(--peach); color: var(--peach); }
.emergency .call a.first { background: var(--peach); color: var(--deep); }
.emergency p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; margin: 1rem 0 2rem; }
details { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1.1rem; background: rgba(228, 240, 241, .03); }
summary { cursor: pointer; font-weight: 600; color: var(--mist); }
summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
details p { margin: .6rem 0 0; color: var(--mist); }
.mail { font-size: 1.1rem; }

/* Privacy policy */
#policy section { border-top: 1px solid var(--line); }
#policy section:first-of-type { border-top: 0; }
#policy h2 { margin-top: 1.5rem; }

/* Footer */
footer { border-top: 1px solid var(--line); font-size: .9rem; color: var(--reed); }
footer .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: space-between; padding-block: 1.25rem; }
footer a { color: var(--reed); }

/* Latin brand names and numbers inside Hebrew keep their own direction */
.ltr { direction: ltr; unicode-bidi: isolate; }
