/* PhilTech company page (philtech.app/). Tokens, base type, buttons and the label swap, nav, hero shell, section spacing,
   WhatsApp icon and floating button, footer, reveals and the Hebrew font overrides are in common.css, loaded before this
   file; only this page's own rules live here. Layout: a text-led hero beside a chat mock, then two product cards, the
   principles as a ruled list, one dark proof band, and about + contact side by side. */

/* Chat mock: the one place a PhilTech tool meets its customer is a message with a link, so the hero shows exactly that.
   Pure CSS, in the page's language. Bubbles use logical margins, so in Hebrew the sent bubble sits on the left,
   as WhatsApp lays it out there. */
.chat-wrap { animation: rise 900ms 200ms var(--ease-out) both; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 18px 20px; max-width: 420px; margin-inline: auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 40px; height: 40px; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { color: var(--ink-3); font-size: 13px; }
.msgs { display: grid; gap: 10px; }
.msg { position: relative; max-width: 86%; padding: 10px 14px 22px; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: rise 600ms var(--ease-out) both; }
.msg.in { background: var(--paper); border: 1px solid var(--line); border-start-start-radius: 4px; margin-inline-end: auto; }
.msg.out { background: var(--teal-soft); border-start-end-radius: 4px; margin-inline-start: auto; }
.msg time { position: absolute; bottom: 6px; inset-inline-end: 12px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* The three bubbles arrive one after another, after the hero copy */
.msg:nth-child(1) { animation-delay: 500ms; }
.msg:nth-child(2) { animation-delay: 1100ms; }
.msg:nth-child(3) { animation-delay: 1700ms; }
/* The link preview inside a bubble: the address stands as a line of its own, the way a chat app shows a shared link */
.linkcard { display: block; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; }
.linkcard .url { display: block; font: 600 13px/1.3 var(--body); color: var(--teal); direction: ltr; text-align: start; unicode-bidi: isolate; word-break: break-all; }
.linkcard b { display: block; margin-top: 4px; font-size: 14px; }
.linkcard small { color: var(--ink-3); font-size: 12px; }
.msg .ok { color: var(--teal); font-weight: 700; }
.msg b.ok::before { content: "✓ "; }

/* Products: two cards a row (four products), each with a status tag that says what is true today (live, or next).
   One column below 960px rather than two, so no card is left alone on a row. */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr; } }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow 250ms ease, border-color 250ms ease; }
@media (hover: hover) and (pointer: fine) { .product:hover { box-shadow: var(--shadow-sm); } }
.product .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.product .ic svg { width: 24px; height: 24px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
/* "Next" keeps the page's ink on the soft accent (the accent itself is under 4.5:1 on it in both themes) */
.tag.next { background: var(--accent-soft); color: var(--ink); }
.product h3 { font-size: 30px; }
.product .kind { color: var(--ink-3); font-size: 15px; margin: -8px 0 0; }
.product p { margin: 0; color: var(--ink-2); }
.product ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.product li { padding-inline-start: 24px; position: relative; font-size: 15px; color: var(--ink-2); }
.product li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--teal); font-weight: 700; }
.product .act { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.product .act .btn { padding: 12px 18px; font-size: 15px; }

/* Principles: a ruled list, two columns on a computer. The rule between rows is the only ornament. */
.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.principles li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.principles .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--teal); display: grid; place-items: center; }
.principles .ic svg { width: 22px; height: 22px; }
.principles h3 { font-size: 24px; margin-bottom: 6px; }
.principles p { margin: 0; color: var(--ink-2); font-size: 16px; }
.principles .num { font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* Proof: one dark band with a single true sentence; the figure is the only thing in display type */
.field { background: var(--band-bg); color: var(--band-ink); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.field .big { font: var(--display-w) clamp(72px, 10vw, 128px)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.field .big small { display: block; font: 600 14px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; margin-top: 12px; }
.field p { margin: 0; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.4; max-width: 30ch; text-wrap: pretty; }
.field .eyebrow { color: var(--accent); margin-bottom: 12px; }
@media (max-width: 820px) { .field { grid-template-columns: 1fr; padding: 40px 24px; gap: 28px; } }

/* About + contact: two columns, the contact card carries the one action on the page */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; gap: 48px; } }
.about h2 { margin-bottom: 24px; }
.about p { color: var(--ink-2); margin: 0 0 16px; max-width: 52ch; }
.about p:last-child { margin-bottom: 0; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.contact-card h3 { font-size: 30px; }
.contact-card p { margin: 0; color: var(--ink-2); }
/* The contact form: posts to the PhilTech API (main.js). Fields match the product pages' forms. */
.contact-form { display: grid; gap: 12px; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .contact-form .two { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea {
  width: 100%; font: 400 16px var(--body); padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.contact-form [aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
/* The Hebrew email field: right-to-left while the Hebrew placeholder shows, left-to-right once an address is typed */
:lang(he) .contact-form input[type="email"]:not(:placeholder-shown) { direction: ltr; }
.contact-form button:disabled { opacity: .6; cursor: progress; }
.contact-card .form-status { min-height: 1.5em; font-size: 15px; color: var(--ink-2); }
.contact-card .form-status.ok { color: var(--teal); font-weight: 700; }
.contact-card .form-status.err { color: var(--accent-deep, var(--accent)); font-weight: 600; }
:root[data-theme="dark"] .contact-card .form-status.err { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-card .form-status.err { color: var(--accent); } }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Footer links (the product page and the other language); the footer itself is in common.css */

/* Reduced motion, this page's part: common.css already drops the shared movement */
@media (prefers-reduced-motion: reduce) {
  .chat-wrap, .msg { animation: none; }
}

/* Hebrew, this page's part (fonts and headings are in common.css) */
:lang(he) .tag, :lang(he) .field .big small { letter-spacing: .04em; }
